SavingsPlanOrderModelInner Class

public final class SavingsPlanOrderModelInner
extends ProxyResourceWithTags

Savings plan order.

Constructor Summary

Constructor Description
SavingsPlanOrderModelInner()

Creates an instance of SavingsPlanOrderModelInner class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime benefitStartTime()

Get the benefitStartTime property: DateTime when the savings plan benefit started.

String billingAccountId()

Get the billingAccountId property: Fully-qualified identifier of the billing account where the savings plan is applied.

BillingPlan billingPlan()

Get the billingPlan property: Represents the billing plan in ISO 8601 format.

String billingProfileId()

Get the billingProfileId property: Fully-qualified identifier of the billing profile where the savings plan is applied.

String billingScopeId()

Get the billingScopeId property: Subscription that will be charged for purchasing SavingsPlan.

String customerId()

Get the customerId property: Fully-qualified identifier of the customer where the savings plan is applied.

String displayName()

Get the displayName property: Display name.

OffsetDateTime expiryDateTime()

Get the expiryDateTime property: DateTime when the savings plan will expire.

ExtendedStatusInfo extendedStatusInfo()

Get the extendedStatusInfo property: Extended status information.

static SavingsPlanOrderModelInner fromJson(JsonReader jsonReader)

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

BillingPlanInformation planInformation()

Get the planInformation property: Information describing the type of billing plan for this savings plan.

String productCode()

Get the productCode property: Represents UPN.

String provisioningState()

Get the provisioningState property: The provisioning state of the savings plan, e.g.

List<String> savingsPlans()

Get the savingsPlans property: The savingsPlans property.

Sku sku()

Get the sku property: Savings plan SKU.

SystemData systemData()

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

SavingsPlanTerm term()

Get the term property: Represents the Savings plan term in ISO 8601 format.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

SavingsPlanOrderModelInner withBillingPlan(BillingPlan billingPlan)

Set the billingPlan property: Represents the billing plan in ISO 8601 format.

SavingsPlanOrderModelInner withBillingScopeId(String billingScopeId)

Set the billingScopeId property: Subscription that will be charged for purchasing SavingsPlan.

SavingsPlanOrderModelInner withDisplayName(String displayName)

Set the displayName property: Display name.

SavingsPlanOrderModelInner withPlanInformation(BillingPlanInformation planInformation)

Set the planInformation property: Information describing the type of billing plan for this savings plan.

SavingsPlanOrderModelInner withProductCode(String productCode)

Set the productCode property: Represents UPN.

SavingsPlanOrderModelInner withSavingsPlans(List<String> savingsPlans)

Set the savingsPlans property: The savingsPlans property.

SavingsPlanOrderModelInner withSku(Sku sku)

Set the sku property: Savings plan SKU.

SavingsPlanOrderModelInner withTags(Map<String,String> tags)

Set the tags property: Dictionary of metadata associated with the resource.

SavingsPlanOrderModelInner withTerm(SavingsPlanTerm term)

Set the term property: Represents the Savings plan term in ISO 8601 format.

Methods inherited from ProxyResourceWithTags

Methods inherited from java.lang.Object

Constructor Details

SavingsPlanOrderModelInner

public SavingsPlanOrderModelInner()

Creates an instance of SavingsPlanOrderModelInner class.

Method Details

benefitStartTime

public OffsetDateTime benefitStartTime()

Get the benefitStartTime property: DateTime when the savings plan benefit started.

Returns:

the benefitStartTime value.

billingAccountId

public String billingAccountId()

Get the billingAccountId property: Fully-qualified identifier of the billing account where the savings plan is applied.

Returns:

the billingAccountId value.

billingPlan

public BillingPlan billingPlan()

Get the billingPlan property: Represents the billing plan in ISO 8601 format. Required only for monthly purchases.

Returns:

the billingPlan value.

billingProfileId

public String billingProfileId()

Get the billingProfileId property: Fully-qualified identifier of the billing profile where the savings plan is applied. Present only for Field-led or Customer-led customers.

Returns:

the billingProfileId value.

billingScopeId

public String billingScopeId()

Get the billingScopeId property: Subscription that will be charged for purchasing SavingsPlan.

Returns:

the billingScopeId value.

customerId

public String customerId()

Get the customerId property: Fully-qualified identifier of the customer where the savings plan is applied. Present only for Partner-led customers.

Returns:

the customerId value.

displayName

public String displayName()

Get the displayName property: Display name.

Returns:

the displayName value.

expiryDateTime

public OffsetDateTime expiryDateTime()

Get the expiryDateTime property: DateTime when the savings plan will expire.

Returns:

the expiryDateTime value.

extendedStatusInfo

public ExtendedStatusInfo extendedStatusInfo()

Get the extendedStatusInfo property: Extended status information.

Returns:

the extendedStatusInfo value.

fromJson

public static SavingsPlanOrderModelInner fromJson(JsonReader jsonReader)

Reads an instance of SavingsPlanOrderModelInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

SavingsPlanOrderModelInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

SavingsPlanOrderModelInner.name()

Returns:

the name value.

planInformation

public BillingPlanInformation planInformation()

Get the planInformation property: Information describing the type of billing plan for this savings plan.

Returns:

the planInformation value.

productCode

public String productCode()

Get the productCode property: Represents UPN.

Returns:

the productCode value.

provisioningState

public String provisioningState()

Get the provisioningState property: The provisioning state of the savings plan, e.g. Succeeded.

Returns:

the provisioningState value.

savingsPlans

public List<String> savingsPlans()

Get the savingsPlans property: The savingsPlans property.

Returns:

the savingsPlans value.

sku

public Sku sku()

Get the sku property: Savings plan SKU.

Returns:

the sku value.

systemData

public SystemData systemData()

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

Overrides:

SavingsPlanOrderModelInner.systemData()

Returns:

the systemData value.

term

public SavingsPlanTerm term()

Get the term property: Represents the Savings plan term in ISO 8601 format.

Returns:

the term value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

SavingsPlanOrderModelInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

SavingsPlanOrderModelInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

SavingsPlanOrderModelInner.validate()

withBillingPlan

public SavingsPlanOrderModelInner withBillingPlan(BillingPlan billingPlan)

Set the billingPlan property: Represents the billing plan in ISO 8601 format. Required only for monthly purchases.

Parameters:

billingPlan - the billingPlan value to set.

Returns:

the SavingsPlanOrderModelInner object itself.

withBillingScopeId

public SavingsPlanOrderModelInner withBillingScopeId(String billingScopeId)

Set the billingScopeId property: Subscription that will be charged for purchasing SavingsPlan.

Parameters:

billingScopeId - the billingScopeId value to set.

Returns:

the SavingsPlanOrderModelInner object itself.

withDisplayName

public SavingsPlanOrderModelInner withDisplayName(String displayName)

Set the displayName property: Display name.

Parameters:

displayName - the displayName value to set.

Returns:

the SavingsPlanOrderModelInner object itself.

withPlanInformation

public SavingsPlanOrderModelInner withPlanInformation(BillingPlanInformation planInformation)

Set the planInformation property: Information describing the type of billing plan for this savings plan.

Parameters:

planInformation - the planInformation value to set.

Returns:

the SavingsPlanOrderModelInner object itself.

withProductCode

public SavingsPlanOrderModelInner withProductCode(String productCode)

Set the productCode property: Represents UPN.

Parameters:

productCode - the productCode value to set.

Returns:

the SavingsPlanOrderModelInner object itself.

withSavingsPlans

public SavingsPlanOrderModelInner withSavingsPlans(List<String> savingsPlans)

Set the savingsPlans property: The savingsPlans property.

Parameters:

savingsPlans - the savingsPlans value to set.

Returns:

the SavingsPlanOrderModelInner object itself.

withSku

public SavingsPlanOrderModelInner withSku(Sku sku)

Set the sku property: Savings plan SKU.

Parameters:

sku - the sku value to set.

Returns:

the SavingsPlanOrderModelInner object itself.

withTags

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

Set the tags property: Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /.

Overrides:

SavingsPlanOrderModelInner.withTags(Map<String,String> tags)

Parameters:

tags

withTerm

public SavingsPlanOrderModelInner withTerm(SavingsPlanTerm term)

Set the term property: Represents the Savings plan term in ISO 8601 format.

Parameters:

term - the term value to set.

Returns:

the SavingsPlanOrderModelInner object itself.

Applies to