SavingsPlanOrderModelInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. billing. models. ProxyResourceWithTags - com.
azure. resourcemanager. billing. fluent. models. SavingsPlanOrderModelInner
- com.
- com.
- com.
public final class SavingsPlanOrderModelInner
extends ProxyResourceWithTags
Savings plan order.
Constructor Summary
| Constructor | Description |
|---|---|
| SavingsPlanOrderModelInner() |
Creates an instance of Savings |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Offset |
benefitStartTime()
Get the benefit |
| String |
billingAccountId()
Get the billing |
|
Billing |
billingPlan()
Get the billing |
| String |
billingProfileId()
Get the billing |
| String |
billingScopeId()
Get the billing |
| String |
customerId()
Get the customer |
| String |
displayName()
Get the display |
|
Offset |
expiryDateTime()
Get the expiry |
|
Extended |
extendedStatusInfo()
Get the extended |
|
static
Savings |
fromJson(JsonReader jsonReader)
Reads an instance of Savings |
| String |
id()
Get the id property: Fully qualified resource Id for the resource. |
| String |
name()
Get the name property: The name of the resource. |
|
Billing |
planInformation()
Get the plan |
| String |
productCode()
Get the product |
| String |
provisioningState()
Get the provisioning |
| List<String> |
savingsPlans()
Get the savings |
| Sku |
sku()
Get the sku property: Savings plan SKU. |
|
System |
systemData()
Get the system |
|
Savings |
term()
Get the term property: Represents the Savings plan term in ISO 8601 format. |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| void |
validate()
Validates the instance. |
|
Savings |
withBillingPlan(BillingPlan billingPlan)
Set the billing |
|
Savings |
withBillingScopeId(String billingScopeId)
Set the billing |
|
Savings |
withDisplayName(String displayName)
Set the display |
|
Savings |
withPlanInformation(BillingPlanInformation planInformation)
Set the plan |
|
Savings |
withProductCode(String productCode)
Set the product |
|
Savings |
withSavingsPlans(List<String> savingsPlans)
Set the savings |
|
Savings |
withSku(Sku sku)
Set the sku property: Savings plan SKU. |
|
Savings |
withTags(Map<String,String> tags)
Set the tags property: Dictionary of metadata associated with the resource. |
|
Savings |
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:
billingAccountId
public String billingAccountId()
Get the billingAccountId property: Fully-qualified identifier of the billing account where the savings plan is applied.
Returns:
billingPlan
public BillingPlan billingPlan()
Get the billingPlan property: Represents the billing plan in ISO 8601 format. Required only for monthly purchases.
Returns:
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:
billingScopeId
public String billingScopeId()
Get the billingScopeId property: Subscription that will be charged for purchasing SavingsPlan.
Returns:
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:
displayName
public String displayName()
Get the displayName property: Display name.
Returns:
expiryDateTime
public OffsetDateTime expiryDateTime()
Get the expiryDateTime property: DateTime when the savings plan will expire.
Returns:
extendedStatusInfo
public ExtendedStatusInfo extendedStatusInfo()
Get the extendedStatusInfo property: Extended status information.
Returns:
fromJson
public static SavingsPlanOrderModelInner fromJson(JsonReader jsonReader)
Reads an instance of SavingsPlanOrderModelInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
SavingsPlanOrderModelInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
SavingsPlanOrderModelInner.name()Returns:
planInformation
public BillingPlanInformation planInformation()
Get the planInformation property: Information describing the type of billing plan for this savings plan.
Returns:
productCode
public String productCode()
Get the productCode property: Represents UPN.
Returns:
provisioningState
public String provisioningState()
Get the provisioningState property: The provisioning state of the savings plan, e.g. Succeeded.
Returns:
savingsPlans
public List<String> savingsPlans()
Get the savingsPlans property: The savingsPlans property.
Returns:
sku
public Sku sku()
Get the sku property: Savings plan SKU.
Returns:
systemData
public SystemData systemData()
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
Overrides:
SavingsPlanOrderModelInner.systemData()Returns:
term
public SavingsPlanTerm term()
Get the term property: Represents the Savings plan term in ISO 8601 format.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
SavingsPlanOrderModelInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
SavingsPlanOrderModelInner.type()Returns:
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:
Returns:
withBillingScopeId
public SavingsPlanOrderModelInner withBillingScopeId(String billingScopeId)
Set the billingScopeId property: Subscription that will be charged for purchasing SavingsPlan.
Parameters:
Returns:
withDisplayName
public SavingsPlanOrderModelInner withDisplayName(String displayName)
Set the displayName property: Display name.
Parameters:
Returns:
withPlanInformation
public SavingsPlanOrderModelInner withPlanInformation(BillingPlanInformation planInformation)
Set the planInformation property: Information describing the type of billing plan for this savings plan.
Parameters:
Returns:
withProductCode
public SavingsPlanOrderModelInner withProductCode(String productCode)
Set the productCode property: Represents UPN.
Parameters:
Returns:
withSavingsPlans
public SavingsPlanOrderModelInner withSavingsPlans(List<String> savingsPlans)
Set the savingsPlans property: The savingsPlans property.
Parameters:
Returns:
withSku
public SavingsPlanOrderModelInner withSku(Sku sku)
Set the sku property: Savings plan SKU.
Parameters:
Returns:
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:
withTerm
public SavingsPlanOrderModelInner withTerm(SavingsPlanTerm term)
Set the term property: Represents the Savings plan term in ISO 8601 format.
Parameters:
Returns: