Share via


CommitmentPlanInner Class

public final class CommitmentPlanInner
extends ProxyResource

Cognitive Services account commitment plan.

Constructor Summary

Constructor Description
CommitmentPlanInner()

Creates an instance of CommitmentPlanInner class.

Method Summary

Modifier and Type Method and Description
String etag()

Get the etag property: Resource Etag.

static CommitmentPlanInner fromJson(JsonReader jsonReader)

Reads an instance of CommitmentPlanInner from the JsonReader.

String id()

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

String kind()

Get the kind property: The Kind of the resource.

String location()

Get the location property: The geo-location where the resource lives.

String name()

Get the name property: The name of the resource.

CommitmentPlanProperties properties()

Get the properties property: Properties of Cognitive Services account commitment plan.

Sku sku()

Get the sku property: The resource model definition representing SKU.

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.

CommitmentPlanInner withKind(String kind)

Set the kind property: The Kind of the resource.

CommitmentPlanInner withLocation(String location)

Set the location property: The geo-location where the resource lives.

CommitmentPlanInner withProperties(CommitmentPlanProperties properties)

Set the properties property: Properties of Cognitive Services account commitment plan.

CommitmentPlanInner withSku(Sku sku)

Set the sku property: The resource model definition representing SKU.

CommitmentPlanInner withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

CommitmentPlanInner

public CommitmentPlanInner()

Creates an instance of CommitmentPlanInner class.

Method Details

etag

public String etag()

Get the etag property: Resource Etag.

Returns:

the etag value.

fromJson

public static CommitmentPlanInner fromJson(JsonReader jsonReader)

Reads an instance of CommitmentPlanInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

CommitmentPlanInner.id()

Returns:

the id value.

kind

public String kind()

Get the kind property: The Kind of the resource.

Returns:

the kind value.

location

public String location()

Get the location property: The geo-location where the resource lives.

Returns:

the location value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

CommitmentPlanInner.name()

Returns:

the name value.

properties

public CommitmentPlanProperties properties()

Get the properties property: Properties of Cognitive Services account commitment plan.

Returns:

the properties value.

sku

public Sku sku()

Get the sku property: The resource model definition representing SKU.

Returns:

the sku 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:

CommitmentPlanInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

CommitmentPlanInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withKind

public CommitmentPlanInner withKind(String kind)

Set the kind property: The Kind of the resource.

Parameters:

kind - the kind value to set.

Returns:

the CommitmentPlanInner object itself.

withLocation

public CommitmentPlanInner withLocation(String location)

Set the location property: The geo-location where the resource lives.

Parameters:

location - the location value to set.

Returns:

the CommitmentPlanInner object itself.

withProperties

public CommitmentPlanInner withProperties(CommitmentPlanProperties properties)

Set the properties property: Properties of Cognitive Services account commitment plan.

Parameters:

properties - the properties value to set.

Returns:

the CommitmentPlanInner object itself.

withSku

public CommitmentPlanInner withSku(Sku sku)

Set the sku property: The resource model definition representing SKU.

Parameters:

sku - the sku value to set.

Returns:

the CommitmentPlanInner object itself.

withTags

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

Set the tags property: Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the CommitmentPlanInner object itself.

Applies to