SavingsPlanModelInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. billing. models. ProxyResourceWithTags - com.
azure. resourcemanager. billing. fluent. models. SavingsPlanModelInner
- com.
- com.
- com.
public final class SavingsPlanModelInner
extends ProxyResourceWithTags
Savings plan.
Constructor Summary
| Constructor | Description |
|---|---|
| SavingsPlanModelInner() |
Creates an instance of Savings |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Applied |
appliedScopeProperties()
Get the applied |
|
Applied |
appliedScopeType()
Get the applied |
|
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 |
| Commitment |
commitment()
Get the commitment property: Commitment towards the benefit. |
| String |
customerId()
Get the customer |
| String |
displayName()
Get the display |
| String |
displayProvisioningState()
Get the display |
|
Offset |
effectiveDateTime()
Get the effective |
|
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. |
| String |
productCode()
Get the product |
|
Provisioning |
provisioningState()
Get the provisioning |
|
Offset |
purchaseDateTime()
Get the purchase |
| Boolean |
renew()
Get the renew property: Setting this to true will automatically purchase a new benefit on the expiration date time. |
| String |
renewDestination()
Get the renew |
|
Renew |
renewProperties()
Get the renew |
| String |
renewSource()
Get the renew |
| 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. |
| String |
userFriendlyAppliedScopeType()
Get the user |
| Utilization |
utilization()
Get the utilization property: Savings plan utilization. |
| void |
validate()
Validates the instance. |
|
Savings |
withAppliedScopeProperties(AppliedScopeProperties appliedScopeProperties)
Set the applied |
|
Savings |
withAppliedScopeType(AppliedScopeType appliedScopeType)
Set the applied |
|
Savings |
withBillingPlan(BillingPlan billingPlan)
Set the billing |
|
Savings |
withBillingScopeId(String billingScopeId)
Set the billing |
|
Savings |
withCommitment(Commitment commitment)
Set the commitment property: Commitment towards the benefit. |
|
Savings |
withDisplayName(String displayName)
Set the display |
|
Savings |
withProductCode(String productCode)
Set the product |
|
Savings |
withProvisioningState(ProvisioningState provisioningState)
Set the provisioning |
|
Savings |
withRenew(Boolean renew)
Set the renew property: Setting this to true will automatically purchase a new benefit on the expiration date time. |
|
Savings |
withRenewDestination(String renewDestination)
Set the renew |
|
Savings |
withRenewProperties(RenewProperties renewProperties)
Set the renew |
|
Savings |
withRenewSource(String renewSource)
Set the renew |
|
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
SavingsPlanModelInner
public SavingsPlanModelInner()
Creates an instance of SavingsPlanModelInner class.
Method Details
appliedScopeProperties
public AppliedScopeProperties appliedScopeProperties()
Get the appliedScopeProperties property: Properties specific to applied scope type. Not required if not applicable.
Returns:
appliedScopeType
public AppliedScopeType appliedScopeType()
Get the appliedScopeType property: Type of the Applied Scope.
Returns:
benefitStartTime
public OffsetDateTime benefitStartTime()
Get the benefitStartTime property: This is the DateTime when the savings plan benefit starts.
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:
commitment
public Commitment commitment()
Get the commitment property: Commitment towards the benefit.
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:
displayProvisioningState
public String displayProvisioningState()
Get the displayProvisioningState property: The provisioning state of the savings plan for display, e.g. Succeeded.
Returns:
effectiveDateTime
public OffsetDateTime effectiveDateTime()
Get the effectiveDateTime property: DateTime of the savings plan starting when this version is effective from.
Returns:
expiryDateTime
public OffsetDateTime expiryDateTime()
Get the expiryDateTime property: This is the date-time when the savings plan will expire.
Returns:
extendedStatusInfo
public ExtendedStatusInfo extendedStatusInfo()
Get the extendedStatusInfo property: Extended status information.
Returns:
fromJson
public static SavingsPlanModelInner fromJson(JsonReader jsonReader)
Reads an instance of SavingsPlanModelInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
SavingsPlanModelInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
SavingsPlanModelInner.name()Returns:
productCode
public String productCode()
Get the productCode property: Represents UPN.
Returns:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the resource during a long-running operation.
Returns:
purchaseDateTime
public OffsetDateTime purchaseDateTime()
Get the purchaseDateTime property: Date time when the savings plan was purchased.
Returns:
renew
public Boolean renew()
Get the renew property: Setting this to true will automatically purchase a new benefit on the expiration date time.
Returns:
renewDestination
public String renewDestination()
Get the renewDestination property: SavingsPlan Id of the SavingsPlan which is purchased because of renew.
Returns:
renewProperties
public RenewProperties renewProperties()
Get the renewProperties property: Properties specific to renew.
Returns:
renewSource
public String renewSource()
Get the renewSource property: SavingsPlan Id of the SavingsPlan from which this SavingsPlan is renewed.
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:
SavingsPlanModelInner.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:
SavingsPlanModelInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
SavingsPlanModelInner.type()Returns:
userFriendlyAppliedScopeType
public String userFriendlyAppliedScopeType()
Get the userFriendlyAppliedScopeType property: The applied scope type of the savings plan for display, e.g. Shared.
Returns:
utilization
public Utilization utilization()
Get the utilization property: Savings plan utilization.
Returns:
validate
public void validate()
Validates the instance.
Overrides:
SavingsPlanModelInner.validate()withAppliedScopeProperties
public SavingsPlanModelInner withAppliedScopeProperties(AppliedScopeProperties appliedScopeProperties)
Set the appliedScopeProperties property: Properties specific to applied scope type. Not required if not applicable.
Parameters:
Returns:
withAppliedScopeType
public SavingsPlanModelInner withAppliedScopeType(AppliedScopeType appliedScopeType)
Set the appliedScopeType property: Type of the Applied Scope.
Parameters:
Returns:
withBillingPlan
public SavingsPlanModelInner withBillingPlan(BillingPlan billingPlan)
Set the billingPlan property: Represents the billing plan in ISO 8601 format. Required only for monthly purchases.
Parameters:
Returns:
withBillingScopeId
public SavingsPlanModelInner withBillingScopeId(String billingScopeId)
Set the billingScopeId property: Subscription that will be charged for purchasing SavingsPlan.
Parameters:
Returns:
withCommitment
public SavingsPlanModelInner withCommitment(Commitment commitment)
Set the commitment property: Commitment towards the benefit.
Parameters:
Returns:
withDisplayName
public SavingsPlanModelInner withDisplayName(String displayName)
Set the displayName property: Display name.
Parameters:
Returns:
withProductCode
public SavingsPlanModelInner withProductCode(String productCode)
Set the productCode property: Represents UPN.
Parameters:
Returns:
withProvisioningState
public SavingsPlanModelInner withProvisioningState(ProvisioningState provisioningState)
Set the provisioningState property: The provisioning state of the resource during a long-running operation.
Parameters:
Returns:
withRenew
public SavingsPlanModelInner withRenew(Boolean renew)
Set the renew property: Setting this to true will automatically purchase a new benefit on the expiration date time.
Parameters:
Returns:
withRenewDestination
public SavingsPlanModelInner withRenewDestination(String renewDestination)
Set the renewDestination property: SavingsPlan Id of the SavingsPlan which is purchased because of renew.
Parameters:
Returns:
withRenewProperties
public SavingsPlanModelInner withRenewProperties(RenewProperties renewProperties)
Set the renewProperties property: Properties specific to renew.
Parameters:
Returns:
withRenewSource
public SavingsPlanModelInner withRenewSource(String renewSource)
Set the renewSource property: SavingsPlan Id of the SavingsPlan from which this SavingsPlan is renewed.
Parameters:
Returns:
withSku
public SavingsPlanModelInner withSku(Sku sku)
Set the sku property: Savings plan SKU.
Parameters:
Returns:
withTags
public SavingsPlanModelInner 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:
SavingsPlanModelInner.withTags(Map<String,String> tags)Parameters:
withTerm
public SavingsPlanModelInner withTerm(SavingsPlanTerm term)
Set the term property: Represents the Savings plan term in ISO 8601 format.
Parameters:
Returns: