Share via


CommitmentPlanAccountAssociationInner Class

public final class CommitmentPlanAccountAssociationInner
extends ProxyResource

The commitment plan association.

Constructor Summary

Constructor Description
CommitmentPlanAccountAssociationInner()

Creates an instance of CommitmentPlanAccountAssociationInner class.

Method Summary

Modifier and Type Method and Description
String accountId()

Get the accountId property: The Azure resource id of the account.

String etag()

Get the etag property: Resource Etag.

static CommitmentPlanAccountAssociationInner fromJson(JsonReader jsonReader)

Reads an instance of CommitmentPlanAccountAssociationInner 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.

SystemData systemData()

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

Map<String,String> tags()

Get the tags property: Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

CommitmentPlanAccountAssociationInner withAccountId(String accountId)

Set the accountId property: The Azure resource id of the account.

CommitmentPlanAccountAssociationInner withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

CommitmentPlanAccountAssociationInner

public CommitmentPlanAccountAssociationInner()

Creates an instance of CommitmentPlanAccountAssociationInner class.

Method Details

accountId

public String accountId()

Get the accountId property: The Azure resource id of the account.

Returns:

the accountId value.

etag

public String etag()

Get the etag property: Resource Etag.

Returns:

the etag value.

fromJson

public static CommitmentPlanAccountAssociationInner fromJson(JsonReader jsonReader)

Reads an instance of CommitmentPlanAccountAssociationInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CommitmentPlanAccountAssociationInner 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:

CommitmentPlanAccountAssociationInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

CommitmentPlanAccountAssociationInner.name()

Returns:

the name value.

systemData

public SystemData systemData()

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

Returns:

the systemData value.

tags

public Map<String,String> tags()

Get the tags property: Resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

CommitmentPlanAccountAssociationInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

CommitmentPlanAccountAssociationInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withAccountId

public CommitmentPlanAccountAssociationInner withAccountId(String accountId)

Set the accountId property: The Azure resource id of the account.

Parameters:

accountId - the accountId value to set.

Returns:

the CommitmentPlanAccountAssociationInner object itself.

withTags

public CommitmentPlanAccountAssociationInner withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the CommitmentPlanAccountAssociationInner object itself.

Applies to