Class ReservationOrderAliasRequestProperties

java.lang.Object
com.azure.resourcemanager.billingbenefits.fluent.models.ReservationOrderAliasRequestProperties

public final class ReservationOrderAliasRequestProperties extends Object
Reservation properties.
  • Constructor Details

    • ReservationOrderAliasRequestProperties

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

    • displayName

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

      public ReservationOrderAliasRequestProperties withDisplayName(String displayName)
      Set the displayName property: Display name.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the ReservationOrderAliasRequestProperties 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 ReservationOrderAliasRequestProperties 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 ReservationOrderAliasRequestProperties object itself.
    • term

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

      Set the term property: Represent benefit term in ISO 8601 format.
      Parameters:
      term - the term value to set.
      Returns:
      the ReservationOrderAliasRequestProperties 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 ReservationOrderAliasRequestProperties 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 ReservationOrderAliasRequestProperties object itself.
    • appliedScopeType

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

      public ReservationOrderAliasRequestProperties withAppliedScopeType(AppliedScopeType appliedScopeType)
      Set the appliedScopeType property: Type of the Applied Scope.
      Parameters:
      appliedScopeType - the appliedScopeType value to set.
      Returns:
      the ReservationOrderAliasRequestProperties 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 ReservationOrderAliasRequestProperties 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 ReservationOrderAliasRequestProperties 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 ReservationOrderAliasRequestProperties 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 ReservationOrderAliasRequestProperties 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

      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 ReservationOrderAliasRequestProperties 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 ReservationOrderAliasRequestProperties 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 ReservationOrderAliasRequestProperties 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 ReservationOrderAliasRequestProperties 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 ReservationOrderAliasRequestProperties 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 ReservationOrderAliasRequestProperties 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 ReservationOrderAliasRequestProperties object itself.
    • validate

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