Interface CapacityBlockOffering.Builder

  • Method Details

    • capacityBlockOfferingId

      CapacityBlockOffering.Builder capacityBlockOfferingId(String capacityBlockOfferingId)

      The ID of the Capacity Block offering.

      Parameters:
      capacityBlockOfferingId - The ID of the Capacity Block offering.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceType

      CapacityBlockOffering.Builder instanceType(String instanceType)

      The instance type of the Capacity Block offering.

      Parameters:
      instanceType - The instance type of the Capacity Block offering.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • availabilityZone

      CapacityBlockOffering.Builder availabilityZone(String availabilityZone)

      The Availability Zone of the Capacity Block offering.

      Parameters:
      availabilityZone - The Availability Zone of the Capacity Block offering.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceCount

      CapacityBlockOffering.Builder instanceCount(Integer instanceCount)

      The number of instances in the Capacity Block offering.

      Parameters:
      instanceCount - The number of instances in the Capacity Block offering.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • startDate

      CapacityBlockOffering.Builder startDate(Instant startDate)

      The start date of the Capacity Block offering.

      Parameters:
      startDate - The start date of the Capacity Block offering.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • endDate

      The end date of the Capacity Block offering.

      Parameters:
      endDate - The end date of the Capacity Block offering.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • capacityBlockDurationHours

      CapacityBlockOffering.Builder capacityBlockDurationHours(Integer capacityBlockDurationHours)

      The number of hours (in addition to capacityBlockDurationMinutes) for the duration of the Capacity Block reservation. For example, if a Capacity Block starts at 04:55 and ends at 11:30, the hours field would be 6.

      Parameters:
      capacityBlockDurationHours - The number of hours (in addition to capacityBlockDurationMinutes) for the duration of the Capacity Block reservation. For example, if a Capacity Block starts at 04:55 and ends at 11:30, the hours field would be 6.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • upfrontFee

      CapacityBlockOffering.Builder upfrontFee(String upfrontFee)

      The total price to be paid up front.

      Parameters:
      upfrontFee - The total price to be paid up front.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • currencyCode

      CapacityBlockOffering.Builder currencyCode(String currencyCode)

      The currency of the payment for the Capacity Block.

      Parameters:
      currencyCode - The currency of the payment for the Capacity Block.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tenancy

      The tenancy of the Capacity Block.

      Parameters:
      tenancy - The tenancy of the Capacity Block.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • tenancy

      The tenancy of the Capacity Block.

      Parameters:
      tenancy - The tenancy of the Capacity Block.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • ultraserverType

      CapacityBlockOffering.Builder ultraserverType(String ultraserverType)

      The EC2 UltraServer type of the Capacity Block offering.

      Parameters:
      ultraserverType - The EC2 UltraServer type of the Capacity Block offering.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ultraserverCount

      CapacityBlockOffering.Builder ultraserverCount(Integer ultraserverCount)

      The number of EC2 UltraServers in the offering.

      Parameters:
      ultraserverCount - The number of EC2 UltraServers in the offering.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • capacityBlockDurationMinutes

      CapacityBlockOffering.Builder capacityBlockDurationMinutes(Integer capacityBlockDurationMinutes)

      The number of minutes (in addition to capacityBlockDurationHours) for the duration of the Capacity Block reservation. For example, if a Capacity Block starts at 08:55 and ends at 11:30, the minutes field would be 35.

      Parameters:
      capacityBlockDurationMinutes - The number of minutes (in addition to capacityBlockDurationHours) for the duration of the Capacity Block reservation. For example, if a Capacity Block starts at 08:55 and ends at 11:30, the minutes field would be 35.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • zoneType

      The type of zone where the Capacity Block offering is available.

      Parameters:
      zoneType - The type of zone where the Capacity Block offering is available.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • capacityBlockOfferingSegments

      CapacityBlockOffering.Builder capacityBlockOfferingSegments(Collection<CapacityBlockOfferingSegment> capacityBlockOfferingSegments)

      The individual segments that compose the Capacity Block offering. Each segment describes a distinct block of capacity with its own Availability Zone, instance type, schedule, and pricing.

      Parameters:
      capacityBlockOfferingSegments - The individual segments that compose the Capacity Block offering. Each segment describes a distinct block of capacity with its own Availability Zone, instance type, schedule, and pricing.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • capacityBlockOfferingSegments

      CapacityBlockOffering.Builder capacityBlockOfferingSegments(CapacityBlockOfferingSegment... capacityBlockOfferingSegments)

      The individual segments that compose the Capacity Block offering. Each segment describes a distinct block of capacity with its own Availability Zone, instance type, schedule, and pricing.

      Parameters:
      capacityBlockOfferingSegments - The individual segments that compose the Capacity Block offering. Each segment describes a distinct block of capacity with its own Availability Zone, instance type, schedule, and pricing.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • capacityBlockOfferingSegments

      CapacityBlockOffering.Builder capacityBlockOfferingSegments(Consumer<CapacityBlockOfferingSegment.Builder>... capacityBlockOfferingSegments)

      The individual segments that compose the Capacity Block offering. Each segment describes a distinct block of capacity with its own Availability Zone, instance type, schedule, and pricing.

      This is a convenience method that creates an instance of the CapacityBlockOfferingSegment.Builder avoiding the need to create one manually via CapacityBlockOfferingSegment.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to capacityBlockOfferingSegments(List<CapacityBlockOfferingSegment>).

      Parameters:
      capacityBlockOfferingSegments - a consumer that will call methods on CapacityBlockOfferingSegment.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: