CommitmentPlanInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. cognitiveservices. fluent. models. CommitmentPlanInner
- com.
- com.
public final class CommitmentPlanInner
extends ProxyResource
Cognitive Services account commitment plan.
Constructor Summary
| Constructor | Description |
|---|---|
| CommitmentPlanInner() |
Creates an instance of Commitment |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
etag()
Get the etag property: Resource Etag. |
|
static
Commitment |
fromJson(JsonReader jsonReader)
Reads an instance of Commitment |
| 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. |
|
Commitment |
properties()
Get the properties property: Properties of Cognitive Services account commitment plan. |
| Sku |
sku()
Get the sku property: The resource model definition representing SKU. |
|
System |
systemData()
Get the system |
| Map<String,String> |
tags()
Get the tags property: Resource tags. |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| void |
validate()
Validates the instance. |
|
Commitment |
withKind(String kind)
Set the kind property: The Kind of the resource. |
|
Commitment |
withLocation(String location)
Set the location property: The geo-location where the resource lives. |
|
Commitment |
withProperties(CommitmentPlanProperties properties)
Set the properties property: Properties of Cognitive Services account commitment plan. |
|
Commitment |
withSku(Sku sku)
Set the sku property: The resource model definition representing SKU. |
|
Commitment |
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:
fromJson
public static CommitmentPlanInner fromJson(JsonReader jsonReader)
Reads an instance of CommitmentPlanInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
CommitmentPlanInner.id()Returns:
kind
public String kind()
Get the kind property: The Kind of the resource.
Returns:
location
public String location()
Get the location property: The geo-location where the resource lives.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
CommitmentPlanInner.name()Returns:
properties
public CommitmentPlanProperties properties()
Get the properties property: Properties of Cognitive Services account commitment plan.
Returns:
sku
public Sku sku()
Get the sku property: The resource model definition representing SKU.
Returns:
systemData
public SystemData systemData()
Get the systemData property: Metadata pertaining to creation and last modification of the resource.
Returns:
tags
public Map<String,String> tags()
Get the tags property: Resource tags.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
CommitmentPlanInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
CommitmentPlanInner.type()Returns:
validate
public void validate()
Validates the instance.
withKind
public CommitmentPlanInner withKind(String kind)
Set the kind property: The Kind of the resource.
Parameters:
Returns:
withLocation
public CommitmentPlanInner withLocation(String location)
Set the location property: The geo-location where the resource lives.
Parameters:
Returns:
withProperties
public CommitmentPlanInner withProperties(CommitmentPlanProperties properties)
Set the properties property: Properties of Cognitive Services account commitment plan.
Parameters:
Returns:
withSku
public CommitmentPlanInner withSku(Sku sku)
Set the sku property: The resource model definition representing SKU.
Parameters:
Returns:
withTags
public CommitmentPlanInner withTags(Map<String,String> tags)
Set the tags property: Resource tags.
Parameters:
Returns: