ServiceAssociationLink Class

public final class ServiceAssociationLink
extends SubResource

ServiceAssociationLink resource.

Constructor Summary

Constructor Description
ServiceAssociationLink()

Creates an instance of ServiceAssociationLink class.

Method Summary

Modifier and Type Method and Description
Boolean allowDelete()

Get the allowDelete property: If true, the resource can be deleted.

String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

static ServiceAssociationLink fromJson(JsonReader jsonReader)

Reads an instance of ServiceAssociationLink from the JsonReader.

String link()

Get the link property: Link to the external resource.

String linkedResourceType()

Get the linkedResourceType property: Resource type of the linked resource.

List<String> locations()

Get the locations property: A list of locations.

String name()

Get the name property: Name of the resource that is unique within a resource group.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the service association link resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Resource type.

void validate()

Validates the instance.

ServiceAssociationLink withAllowDelete(Boolean allowDelete)

Set the allowDelete property: If true, the resource can be deleted.

ServiceAssociationLink withId(String id)
ServiceAssociationLink withLink(String link)

Set the link property: Link to the external resource.

ServiceAssociationLink withLinkedResourceType(String linkedResourceType)

Set the linkedResourceType property: Resource type of the linked resource.

ServiceAssociationLink withLocations(List<String> locations)

Set the locations property: A list of locations.

ServiceAssociationLink withName(String name)

Set the name property: Name of the resource that is unique within a resource group.

Methods inherited from SubResource

Methods inherited from java.lang.Object

Constructor Details

public ServiceAssociationLink()

Creates an instance of ServiceAssociationLink class.

Method Details

public Boolean allowDelete()

Get the allowDelete property: If true, the resource can be deleted.

Returns:

the allowDelete value.

public String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

Returns:

the etag value.

public static ServiceAssociationLink fromJson(JsonReader jsonReader)

Reads an instance of ServiceAssociationLink from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ServiceAssociationLink if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ServiceAssociationLink.

public String link()

Get the link property: Link to the external resource.

Returns:

the link value.

public String linkedResourceType()

Get the linkedResourceType property: Resource type of the linked resource.

Returns:

the linkedResourceType value.

public List locations()

Get the locations property: A list of locations.

Returns:

the locations value.

public String name()

Get the name property: Name of the resource that is unique within a resource group. This name can be used to access the resource.

Returns:

the name value.

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the service association link resource.

Returns:

the provisioningState value.

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ServiceAssociationLink.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

public String type()

Get the type property: Resource type.

Returns:

the type value.

public void validate()

Validates the instance.

public ServiceAssociationLink withAllowDelete(Boolean allowDelete)

Set the allowDelete property: If true, the resource can be deleted.

Parameters:

allowDelete - the allowDelete value to set.

Returns:

the ServiceAssociationLink object itself.

public ServiceAssociationLink withId(String id)

Overrides:

ServiceAssociationLink.withId(String id)

Parameters:

id

public ServiceAssociationLink withLink(String link)

Set the link property: Link to the external resource.

Parameters:

link - the link value to set.

Returns:

the ServiceAssociationLink object itself.

public ServiceAssociationLink withLinkedResourceType(String linkedResourceType)

Set the linkedResourceType property: Resource type of the linked resource.

Parameters:

linkedResourceType - the linkedResourceType value to set.

Returns:

the ServiceAssociationLink object itself.

public ServiceAssociationLink withLocations(List locations)

Set the locations property: A list of locations.

Parameters:

locations - the locations value to set.

Returns:

the ServiceAssociationLink object itself.

public ServiceAssociationLink withName(String name)

Set the name property: Name of the resource that is unique within a resource group. This name can be used to access the resource.

Parameters:

name - the name value to set.

Returns:

the ServiceAssociationLink object itself.

Applies to