CommitmentPlanProperties Class
- java.
lang. Object - com.
azure. resourcemanager. cognitiveservices. models. CommitmentPlanProperties
- com.
Implements
public final class CommitmentPlanProperties
implements JsonSerializable<CommitmentPlanProperties>
Properties of Cognitive Services account commitment plan.
Constructor Summary
| Constructor | Description |
|---|---|
| CommitmentPlanProperties() |
Creates an instance of Commitment |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Boolean |
autoRenew()
Get the auto |
| String |
commitmentPlanGuid()
Get the commitment |
|
Commitment |
current()
Get the current property: Cognitive Services account commitment period. |
|
static
Commitment |
fromJson(JsonReader jsonReader)
Reads an instance of Commitment |
|
Hosting |
hostingModel()
Get the hosting |
|
Commitment |
last()
Get the last property: Cognitive Services account commitment period. |
|
Commitment |
next()
Get the next property: Cognitive Services account commitment period. |
| String |
planType()
Get the plan |
| List<String> |
provisioningIssues()
Get the provisioning |
|
Commitment |
provisioningState()
Get the provisioning |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Commitment |
withAutoRenew(Boolean autoRenew)
Set the auto |
|
Commitment |
withCommitmentPlanGuid(String commitmentPlanGuid)
Set the commitment |
|
Commitment |
withCurrent(CommitmentPeriod current)
Set the current property: Cognitive Services account commitment period. |
|
Commitment |
withHostingModel(HostingModel hostingModel)
Set the hosting |
|
Commitment |
withNext(CommitmentPeriod next)
Set the next property: Cognitive Services account commitment period. |
|
Commitment |
withPlanType(String planType)
Set the plan |
Methods inherited from java.lang.Object
Constructor Details
CommitmentPlanProperties
public CommitmentPlanProperties()
Creates an instance of CommitmentPlanProperties class.
Method Details
autoRenew
public Boolean autoRenew()
Get the autoRenew property: AutoRenew commitment plan.
Returns:
commitmentPlanGuid
public String commitmentPlanGuid()
Get the commitmentPlanGuid property: Commitment plan guid.
Returns:
current
public CommitmentPeriod current()
Get the current property: Cognitive Services account commitment period.
Returns:
fromJson
public static CommitmentPlanProperties fromJson(JsonReader jsonReader)
Reads an instance of CommitmentPlanProperties from the JsonReader.
Parameters:
Returns:
Throws:
hostingModel
public HostingModel hostingModel()
Get the hostingModel property: Account hosting model.
Returns:
last
public CommitmentPeriod last()
Get the last property: Cognitive Services account commitment period.
Returns:
next
public CommitmentPeriod next()
Get the next property: Cognitive Services account commitment period.
Returns:
planType
public String planType()
Get the planType property: Commitment plan type.
Returns:
provisioningIssues
public List<String> provisioningIssues()
Get the provisioningIssues property: The list of ProvisioningIssue.
Returns:
provisioningState
public CommitmentPlanProvisioningState provisioningState()
Get the provisioningState property: Gets the status of the resource at the time the operation was called.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAutoRenew
public CommitmentPlanProperties withAutoRenew(Boolean autoRenew)
Set the autoRenew property: AutoRenew commitment plan.
Parameters:
Returns:
withCommitmentPlanGuid
public CommitmentPlanProperties withCommitmentPlanGuid(String commitmentPlanGuid)
Set the commitmentPlanGuid property: Commitment plan guid.
Parameters:
Returns:
withCurrent
public CommitmentPlanProperties withCurrent(CommitmentPeriod current)
Set the current property: Cognitive Services account commitment period.
Parameters:
Returns:
withHostingModel
public CommitmentPlanProperties withHostingModel(HostingModel hostingModel)
Set the hostingModel property: Account hosting model.
Parameters:
Returns:
withNext
public CommitmentPlanProperties withNext(CommitmentPeriod next)
Set the next property: Cognitive Services account commitment period.
Parameters:
Returns:
withPlanType
public CommitmentPlanProperties withPlanType(String planType)
Set the planType property: Commitment plan type.
Parameters:
Returns: