Class ReservationOrderAliasRequest

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.billingbenefits.models.ReservationOrderAliasRequest

public final class ReservationOrderAliasRequest extends com.azure.core.management.ProxyResource
Reservation order alias.
  • Constructor Details

    • ReservationOrderAliasRequest

      public ReservationOrderAliasRequest()
      Creates an instance of ReservationOrderAliasRequest class.
  • Method Details

    • sku

      public Sku sku()
      Get the sku property: Reservation order SKU.
      Returns:
      the sku value.
    • withSku

      public ReservationOrderAliasRequest withSku(Sku sku)
      Set the sku property: Reservation order SKU.
      Parameters:
      sku - the sku value to set.
      Returns:
      the ReservationOrderAliasRequest object itself.
    • location

      public String location()
      Get the location property: The Azure Region where the reservation benefits are applied to.
      Returns:
      the location value.
    • withLocation

      public ReservationOrderAliasRequest withLocation(String location)
      Set the location property: The Azure Region where the reservation benefits are applied to.
      Parameters:
      location - the location value to set.
      Returns:
      the ReservationOrderAliasRequest object itself.
    • systemData

      public com.azure.core.management.SystemData systemData()
      Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
      Returns:
      the systemData value.
    • displayName

      public String displayName()
      Get the displayName property: Display name.
      Returns:
      the displayName value.
    • withDisplayName

      public ReservationOrderAliasRequest withDisplayName(String displayName)
      Set the displayName property: Display name.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the ReservationOrderAliasRequest object itself.
    • billingScopeId

      public String billingScopeId()
      Get the billingScopeId property: Subscription that will be charged for purchasing the benefit.
      Returns:
      the billingScopeId value.
    • withBillingScopeId

      public ReservationOrderAliasRequest withBillingScopeId(String billingScopeId)
      Set the billingScopeId property: Subscription that will be charged for purchasing the benefit.
      Parameters:
      billingScopeId - the billingScopeId value to set.
      Returns:
      the ReservationOrderAliasRequest object itself.
    • term

      public Term term()
      Get the term property: Represent benefit term in ISO 8601 format.
      Returns:
      the term value.
    • withTerm

      public ReservationOrderAliasRequest withTerm(Term term)
      Set the term property: Represent benefit term in ISO 8601 format.
      Parameters:
      term - the term value to set.
      Returns:
      the ReservationOrderAliasRequest object itself.
    • billingPlan

      public BillingPlan billingPlan()
      Get the billingPlan property: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans.
      Returns:
      the billingPlan value.
    • withBillingPlan

      public ReservationOrderAliasRequest withBillingPlan(BillingPlan billingPlan)
      Set the billingPlan property: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans.
      Parameters:
      billingPlan - the billingPlan value to set.
      Returns:
      the ReservationOrderAliasRequest object itself.
    • appliedScopeType

      public AppliedScopeType appliedScopeType()
      Get the appliedScopeType property: Type of the Applied Scope.
      Returns:
      the appliedScopeType value.
    • withAppliedScopeType

      public ReservationOrderAliasRequest withAppliedScopeType(AppliedScopeType appliedScopeType)
      Set the appliedScopeType property: Type of the Applied Scope.
      Parameters:
      appliedScopeType - the appliedScopeType value to set.
      Returns:
      the ReservationOrderAliasRequest object itself.
    • appliedScopeProperties

      public AppliedScopeProperties appliedScopeProperties()
      Get the appliedScopeProperties property: Properties specific to applied scope type. Not required if not applicable.
      Returns:
      the appliedScopeProperties value.
    • withAppliedScopeProperties

      public ReservationOrderAliasRequest withAppliedScopeProperties(AppliedScopeProperties appliedScopeProperties)
      Set the appliedScopeProperties property: Properties specific to applied scope type. Not required if not applicable.
      Parameters:
      appliedScopeProperties - the appliedScopeProperties value to set.
      Returns:
      the ReservationOrderAliasRequest object itself.
    • quantity

      public Integer quantity()
      Get the quantity property: Total Quantity of the SKUs purchased in the Reservation.
      Returns:
      the quantity value.
    • withQuantity

      public ReservationOrderAliasRequest withQuantity(Integer quantity)
      Set the quantity property: Total Quantity of the SKUs purchased in the Reservation.
      Parameters:
      quantity - the quantity value to set.
      Returns:
      the ReservationOrderAliasRequest object itself.
    • renew

      public Boolean renew()
      Get the renew property: Setting this to true will automatically purchase a new benefit on the expiration date time.
      Returns:
      the renew value.
    • withRenew

      public ReservationOrderAliasRequest withRenew(Boolean renew)
      Set the renew property: Setting this to true will automatically purchase a new benefit on the expiration date time.
      Parameters:
      renew - the renew value to set.
      Returns:
      the ReservationOrderAliasRequest object itself.
    • reservedResourceType

      public ReservedResourceType reservedResourceType()
      Get the reservedResourceType property: The type of the resource that is being reserved.
      Returns:
      the reservedResourceType value.
    • withReservedResourceType

      public ReservationOrderAliasRequest withReservedResourceType(ReservedResourceType reservedResourceType)
      Set the reservedResourceType property: The type of the resource that is being reserved.
      Parameters:
      reservedResourceType - the reservedResourceType value to set.
      Returns:
      the ReservationOrderAliasRequest object itself.
    • reviewDateTime

      public OffsetDateTime reviewDateTime()
      Get the reviewDateTime property: This is the date-time when the Azure Hybrid Benefit needs to be reviewed.
      Returns:
      the reviewDateTime value.
    • withReviewDateTime

      public ReservationOrderAliasRequest withReviewDateTime(OffsetDateTime reviewDateTime)
      Set the reviewDateTime property: This is the date-time when the Azure Hybrid Benefit needs to be reviewed.
      Parameters:
      reviewDateTime - the reviewDateTime value to set.
      Returns:
      the ReservationOrderAliasRequest object itself.
    • reservedResourceProperties

      Get the reservedResourceProperties property: Properties specific to each reserved resource type. Not required if not applicable.
      Returns:
      the reservedResourceProperties value.
    • withReservedResourceProperties

      public ReservationOrderAliasRequest withReservedResourceProperties(ReservationOrderAliasRequestPropertiesReservedResourceProperties reservedResourceProperties)
      Set the reservedResourceProperties property: Properties specific to each reserved resource type. Not required if not applicable.
      Parameters:
      reservedResourceProperties - the reservedResourceProperties value to set.
      Returns:
      the ReservationOrderAliasRequest object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.