Aracılığıyla paylaş


RelationInner Class

public final class RelationInner
extends ResourceWithEtag

Represents a relation between two resources.

Constructor Summary

Constructor Description
RelationInner()

Creates an instance of RelationInner class.

Method Summary

Modifier and Type Method and Description
static RelationInner fromJson(JsonReader jsonReader)

Reads an instance of RelationInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

String relatedResourceId()

Get the relatedResourceId property: The resource ID of the related resource.

String relatedResourceKind()

Get the relatedResourceKind property: The resource kind of the related resource.

String relatedResourceName()

Get the relatedResourceName property: The name of the related resource.

String relatedResourceType()

Get the relatedResourceType property: The resource type of the related resource.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

RelationInner withEtag(String etag)

Set the etag property: Etag of the azure resource.

RelationInner withRelatedResourceId(String relatedResourceId)

Set the relatedResourceId property: The resource ID of the related resource.

Methods inherited from ResourceWithEtag

Methods inherited from java.lang.Object

Constructor Details

RelationInner

public RelationInner()

Creates an instance of RelationInner class.

Method Details

fromJson

public static RelationInner fromJson(JsonReader jsonReader)

Reads an instance of RelationInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

RelationInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

RelationInner.name()

Returns:

the name value.

relatedResourceId

public String relatedResourceId()

Get the relatedResourceId property: The resource ID of the related resource.

Returns:

the relatedResourceId value.

relatedResourceKind

public String relatedResourceKind()

Get the relatedResourceKind property: The resource kind of the related resource.

Returns:

the relatedResourceKind value.

relatedResourceName

public String relatedResourceName()

Get the relatedResourceName property: The name of the related resource.

Returns:

the relatedResourceName value.

relatedResourceType

public String relatedResourceType()

Get the relatedResourceType property: The resource type of the related resource.

Returns:

the relatedResourceType value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Overrides:

RelationInner.systemData()

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

RelationInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

RelationInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

RelationInner.validate()

withEtag

public RelationInner withEtag(String etag)

Set the etag property: Etag of the azure resource.

Overrides:

RelationInner.withEtag(String etag)

Parameters:

etag

withRelatedResourceId

public RelationInner withRelatedResourceId(String relatedResourceId)

Set the relatedResourceId property: The resource ID of the related resource.

Parameters:

relatedResourceId - the relatedResourceId value to set.

Returns:

the RelationInner object itself.

Applies to