Class CapacityBlockExtensionOffering

    • Method Detail

      • capacityBlockExtensionOfferingId

        public final String capacityBlockExtensionOfferingId()

        The ID of the Capacity Block extension offering.

        Returns:
        The ID of the Capacity Block extension offering.
      • instanceType

        public final String instanceType()

        The instance type of the Capacity Block that will be extended.

        Returns:
        The instance type of the Capacity Block that will be extended.
      • instanceCount

        public final Integer instanceCount()

        The number of instances in the Capacity Block extension offering.

        Returns:
        The number of instances in the Capacity Block extension offering.
      • availabilityZone

        public final String availabilityZone()

        The Availability Zone of the Capacity Block that will be extended.

        Returns:
        The Availability Zone of the Capacity Block that will be extended.
      • availabilityZoneId

        public final String availabilityZoneId()

        The Availability Zone ID of the Capacity Block that will be extended.

        Returns:
        The Availability Zone ID of the Capacity Block that will be extended.
      • startDate

        public final Instant startDate()

        The start date of the Capacity Block that will be extended.

        Returns:
        The start date of the Capacity Block that will be extended.
      • capacityBlockExtensionStartDate

        public final Instant capacityBlockExtensionStartDate()

        The date and time at which the Capacity Block extension will start. This date is also the same as the end date of the Capacity Block that will be extended.

        Returns:
        The date and time at which the Capacity Block extension will start. This date is also the same as the end date of the Capacity Block that will be extended.
      • capacityBlockExtensionEndDate

        public final Instant capacityBlockExtensionEndDate()

        The date and time at which the Capacity Block extension expires. When a Capacity Block expires, the reserved capacity is released and you can no longer launch instances into it. The Capacity Block's state changes to expired when it reaches its end date

        Returns:
        The date and time at which the Capacity Block extension expires. When a Capacity Block expires, the reserved capacity is released and you can no longer launch instances into it. The Capacity Block's state changes to expired when it reaches its end date
      • capacityBlockExtensionDurationHours

        public final Integer capacityBlockExtensionDurationHours()

        The amount of time of the Capacity Block extension offering in hours.

        Returns:
        The amount of time of the Capacity Block extension offering in hours.
      • upfrontFee

        public final String upfrontFee()

        The total price of the Capacity Block extension offering, to be paid up front.

        Returns:
        The total price of the Capacity Block extension offering, to be paid up front.
      • currencyCode

        public final String currencyCode()

        The currency of the payment for the Capacity Block extension offering.

        Returns:
        The currency of the payment for the Capacity Block extension offering.
      • tenancy

        public final CapacityReservationTenancy tenancy()

        Indicates the tenancy of the Capacity Block extension offering. A Capacity Block can have one of the following tenancy settings:

        • default - The Capacity Block is created on hardware that is shared with other Amazon Web Services accounts.

        • dedicated - The Capacity Block is created on single-tenant hardware that is dedicated to a single Amazon Web Services account.

        If the service returns an enum value that is not available in the current SDK version, tenancy will return CapacityReservationTenancy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from tenancyAsString().

        Returns:
        Indicates the tenancy of the Capacity Block extension offering. A Capacity Block can have one of the following tenancy settings:

        • default - The Capacity Block is created on hardware that is shared with other Amazon Web Services accounts.

        • dedicated - The Capacity Block is created on single-tenant hardware that is dedicated to a single Amazon Web Services account.

        See Also:
        CapacityReservationTenancy
      • tenancyAsString

        public final String tenancyAsString()

        Indicates the tenancy of the Capacity Block extension offering. A Capacity Block can have one of the following tenancy settings:

        • default - The Capacity Block is created on hardware that is shared with other Amazon Web Services accounts.

        • dedicated - The Capacity Block is created on single-tenant hardware that is dedicated to a single Amazon Web Services account.

        If the service returns an enum value that is not available in the current SDK version, tenancy will return CapacityReservationTenancy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from tenancyAsString().

        Returns:
        Indicates the tenancy of the Capacity Block extension offering. A Capacity Block can have one of the following tenancy settings:

        • default - The Capacity Block is created on hardware that is shared with other Amazon Web Services accounts.

        • dedicated - The Capacity Block is created on single-tenant hardware that is dedicated to a single Amazon Web Services account.

        See Also:
        CapacityReservationTenancy
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)