共用方式為


CommitmentPlanProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.cognitiveservices.models.CommitmentPlanProperties

Implements

public final class CommitmentPlanProperties
implements JsonSerializable<CommitmentPlanProperties>

Properties of Cognitive Services account commitment plan.

Constructor Summary

Constructor Description
CommitmentPlanProperties()

Creates an instance of CommitmentPlanProperties class.

Method Summary

Modifier and Type Method and Description
Boolean autoRenew()

Get the autoRenew property: AutoRenew commitment plan.

String commitmentPlanGuid()

Get the commitmentPlanGuid property: Commitment plan guid.

CommitmentPeriod current()

Get the current property: Cognitive Services account commitment period.

static CommitmentPlanProperties fromJson(JsonReader jsonReader)

Reads an instance of CommitmentPlanProperties from the JsonReader.

HostingModel hostingModel()

Get the hostingModel property: Account hosting model.

CommitmentPeriod last()

Get the last property: Cognitive Services account commitment period.

CommitmentPeriod next()

Get the next property: Cognitive Services account commitment period.

String planType()

Get the planType property: Commitment plan type.

List<String> provisioningIssues()

Get the provisioningIssues property: The list of ProvisioningIssue.

CommitmentPlanProvisioningState provisioningState()

Get the provisioningState property: Gets the status of the resource at the time the operation was called.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CommitmentPlanProperties withAutoRenew(Boolean autoRenew)

Set the autoRenew property: AutoRenew commitment plan.

CommitmentPlanProperties withCommitmentPlanGuid(String commitmentPlanGuid)

Set the commitmentPlanGuid property: Commitment plan guid.

CommitmentPlanProperties withCurrent(CommitmentPeriod current)

Set the current property: Cognitive Services account commitment period.

CommitmentPlanProperties withHostingModel(HostingModel hostingModel)

Set the hostingModel property: Account hosting model.

CommitmentPlanProperties withNext(CommitmentPeriod next)

Set the next property: Cognitive Services account commitment period.

CommitmentPlanProperties withPlanType(String planType)

Set the planType property: Commitment plan type.

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:

the autoRenew value.

commitmentPlanGuid

public String commitmentPlanGuid()

Get the commitmentPlanGuid property: Commitment plan guid.

Returns:

the commitmentPlanGuid value.

current

public CommitmentPeriod current()

Get the current property: Cognitive Services account commitment period.

Returns:

the current value.

fromJson

public static CommitmentPlanProperties fromJson(JsonReader jsonReader)

Reads an instance of CommitmentPlanProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the CommitmentPlanProperties.

hostingModel

public HostingModel hostingModel()

Get the hostingModel property: Account hosting model.

Returns:

the hostingModel value.

last

public CommitmentPeriod last()

Get the last property: Cognitive Services account commitment period.

Returns:

the last value.

next

public CommitmentPeriod next()

Get the next property: Cognitive Services account commitment period.

Returns:

the next value.

planType

public String planType()

Get the planType property: Commitment plan type.

Returns:

the planType value.

provisioningIssues

public List<String> provisioningIssues()

Get the provisioningIssues property: The list of ProvisioningIssue.

Returns:

the provisioningIssues value.

provisioningState

public CommitmentPlanProvisioningState provisioningState()

Get the provisioningState property: Gets the status of the resource at the time the operation was called.

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAutoRenew

public CommitmentPlanProperties withAutoRenew(Boolean autoRenew)

Set the autoRenew property: AutoRenew commitment plan.

Parameters:

autoRenew - the autoRenew value to set.

Returns:

the CommitmentPlanProperties object itself.

withCommitmentPlanGuid

public CommitmentPlanProperties withCommitmentPlanGuid(String commitmentPlanGuid)

Set the commitmentPlanGuid property: Commitment plan guid.

Parameters:

commitmentPlanGuid - the commitmentPlanGuid value to set.

Returns:

the CommitmentPlanProperties object itself.

withCurrent

public CommitmentPlanProperties withCurrent(CommitmentPeriod current)

Set the current property: Cognitive Services account commitment period.

Parameters:

current - the current value to set.

Returns:

the CommitmentPlanProperties object itself.

withHostingModel

public CommitmentPlanProperties withHostingModel(HostingModel hostingModel)

Set the hostingModel property: Account hosting model.

Parameters:

hostingModel - the hostingModel value to set.

Returns:

the CommitmentPlanProperties object itself.

withNext

public CommitmentPlanProperties withNext(CommitmentPeriod next)

Set the next property: Cognitive Services account commitment period.

Parameters:

next - the next value to set.

Returns:

the CommitmentPlanProperties object itself.

withPlanType

public CommitmentPlanProperties withPlanType(String planType)

Set the planType property: Commitment plan type.

Parameters:

planType - the planType value to set.

Returns:

the CommitmentPlanProperties object itself.

Applies to