JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.793

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.services.elasticmapreduce.model

Class OnDemandCapacityReservationOptions

    • Constructor Detail

      • OnDemandCapacityReservationOptions

        public OnDemandCapacityReservationOptions()
    • Method Detail

      • setUsageStrategy

        public void setUsageStrategy(String usageStrategy)

        Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity.

        If you specify use-capacity-reservations-first, the fleet uses unused Capacity Reservations to fulfill On-Demand capacity up to the target On-Demand capacity. If multiple instance pools have unused Capacity Reservations, the On-Demand allocation strategy (lowest-price) is applied. If the number of unused Capacity Reservations is less than the On-Demand target capacity, the remaining On-Demand target capacity is launched according to the On-Demand allocation strategy (lowest-price).

        If you do not specify a value, the fleet fulfills the On-Demand capacity according to the chosen On-Demand allocation strategy.

        Parameters:
        usageStrategy - Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity.

        If you specify use-capacity-reservations-first, the fleet uses unused Capacity Reservations to fulfill On-Demand capacity up to the target On-Demand capacity. If multiple instance pools have unused Capacity Reservations, the On-Demand allocation strategy (lowest-price) is applied. If the number of unused Capacity Reservations is less than the On-Demand target capacity, the remaining On-Demand target capacity is launched according to the On-Demand allocation strategy (lowest-price).

        If you do not specify a value, the fleet fulfills the On-Demand capacity according to the chosen On-Demand allocation strategy.

        See Also:
        OnDemandCapacityReservationUsageStrategy
      • getUsageStrategy

        public String getUsageStrategy()

        Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity.

        If you specify use-capacity-reservations-first, the fleet uses unused Capacity Reservations to fulfill On-Demand capacity up to the target On-Demand capacity. If multiple instance pools have unused Capacity Reservations, the On-Demand allocation strategy (lowest-price) is applied. If the number of unused Capacity Reservations is less than the On-Demand target capacity, the remaining On-Demand target capacity is launched according to the On-Demand allocation strategy (lowest-price).

        If you do not specify a value, the fleet fulfills the On-Demand capacity according to the chosen On-Demand allocation strategy.

        Returns:
        Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity.

        If you specify use-capacity-reservations-first, the fleet uses unused Capacity Reservations to fulfill On-Demand capacity up to the target On-Demand capacity. If multiple instance pools have unused Capacity Reservations, the On-Demand allocation strategy (lowest-price) is applied. If the number of unused Capacity Reservations is less than the On-Demand target capacity, the remaining On-Demand target capacity is launched according to the On-Demand allocation strategy ( lowest-price).

        If you do not specify a value, the fleet fulfills the On-Demand capacity according to the chosen On-Demand allocation strategy.

        See Also:
        OnDemandCapacityReservationUsageStrategy
      • withUsageStrategy

        public OnDemandCapacityReservationOptions withUsageStrategy(String usageStrategy)

        Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity.

        If you specify use-capacity-reservations-first, the fleet uses unused Capacity Reservations to fulfill On-Demand capacity up to the target On-Demand capacity. If multiple instance pools have unused Capacity Reservations, the On-Demand allocation strategy (lowest-price) is applied. If the number of unused Capacity Reservations is less than the On-Demand target capacity, the remaining On-Demand target capacity is launched according to the On-Demand allocation strategy (lowest-price).

        If you do not specify a value, the fleet fulfills the On-Demand capacity according to the chosen On-Demand allocation strategy.

        Parameters:
        usageStrategy - Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity.

        If you specify use-capacity-reservations-first, the fleet uses unused Capacity Reservations to fulfill On-Demand capacity up to the target On-Demand capacity. If multiple instance pools have unused Capacity Reservations, the On-Demand allocation strategy (lowest-price) is applied. If the number of unused Capacity Reservations is less than the On-Demand target capacity, the remaining On-Demand target capacity is launched according to the On-Demand allocation strategy (lowest-price).

        If you do not specify a value, the fleet fulfills the On-Demand capacity according to the chosen On-Demand allocation strategy.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        OnDemandCapacityReservationUsageStrategy
      • withUsageStrategy

        public OnDemandCapacityReservationOptions withUsageStrategy(OnDemandCapacityReservationUsageStrategy usageStrategy)

        Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity.

        If you specify use-capacity-reservations-first, the fleet uses unused Capacity Reservations to fulfill On-Demand capacity up to the target On-Demand capacity. If multiple instance pools have unused Capacity Reservations, the On-Demand allocation strategy (lowest-price) is applied. If the number of unused Capacity Reservations is less than the On-Demand target capacity, the remaining On-Demand target capacity is launched according to the On-Demand allocation strategy (lowest-price).

        If you do not specify a value, the fleet fulfills the On-Demand capacity according to the chosen On-Demand allocation strategy.

        Parameters:
        usageStrategy - Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity.

        If you specify use-capacity-reservations-first, the fleet uses unused Capacity Reservations to fulfill On-Demand capacity up to the target On-Demand capacity. If multiple instance pools have unused Capacity Reservations, the On-Demand allocation strategy (lowest-price) is applied. If the number of unused Capacity Reservations is less than the On-Demand target capacity, the remaining On-Demand target capacity is launched according to the On-Demand allocation strategy (lowest-price).

        If you do not specify a value, the fleet fulfills the On-Demand capacity according to the chosen On-Demand allocation strategy.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        OnDemandCapacityReservationUsageStrategy
      • setCapacityReservationPreference

        public void setCapacityReservationPreference(String capacityReservationPreference)

        Indicates the instance's Capacity Reservation preferences. Possible preferences include:

        • open - The instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).

        • none - The instance avoids running in a Capacity Reservation even if one is available. The instance runs as an On-Demand Instance.

        Parameters:
        capacityReservationPreference - Indicates the instance's Capacity Reservation preferences. Possible preferences include:

        • open - The instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).

        • none - The instance avoids running in a Capacity Reservation even if one is available. The instance runs as an On-Demand Instance.

        See Also:
        OnDemandCapacityReservationPreference
      • getCapacityReservationPreference

        public String getCapacityReservationPreference()

        Indicates the instance's Capacity Reservation preferences. Possible preferences include:

        • open - The instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).

        • none - The instance avoids running in a Capacity Reservation even if one is available. The instance runs as an On-Demand Instance.

        Returns:
        Indicates the instance's Capacity Reservation preferences. Possible preferences include:

        • open - The instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).

        • none - The instance avoids running in a Capacity Reservation even if one is available. The instance runs as an On-Demand Instance.

        See Also:
        OnDemandCapacityReservationPreference
      • withCapacityReservationPreference

        public OnDemandCapacityReservationOptions withCapacityReservationPreference(String capacityReservationPreference)

        Indicates the instance's Capacity Reservation preferences. Possible preferences include:

        • open - The instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).

        • none - The instance avoids running in a Capacity Reservation even if one is available. The instance runs as an On-Demand Instance.

        Parameters:
        capacityReservationPreference - Indicates the instance's Capacity Reservation preferences. Possible preferences include:

        • open - The instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).

        • none - The instance avoids running in a Capacity Reservation even if one is available. The instance runs as an On-Demand Instance.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        OnDemandCapacityReservationPreference
      • withCapacityReservationPreference

        public OnDemandCapacityReservationOptions withCapacityReservationPreference(OnDemandCapacityReservationPreference capacityReservationPreference)

        Indicates the instance's Capacity Reservation preferences. Possible preferences include:

        • open - The instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).

        • none - The instance avoids running in a Capacity Reservation even if one is available. The instance runs as an On-Demand Instance.

        Parameters:
        capacityReservationPreference - Indicates the instance's Capacity Reservation preferences. Possible preferences include:

        • open - The instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).

        • none - The instance avoids running in a Capacity Reservation even if one is available. The instance runs as an On-Demand Instance.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        OnDemandCapacityReservationPreference
      • setCapacityReservationResourceGroupArn

        public void setCapacityReservationResourceGroupArn(String capacityReservationResourceGroupArn)

        The ARN of the Capacity Reservation resource group in which to run the instance.

        Parameters:
        capacityReservationResourceGroupArn - The ARN of the Capacity Reservation resource group in which to run the instance.
      • getCapacityReservationResourceGroupArn

        public String getCapacityReservationResourceGroupArn()

        The ARN of the Capacity Reservation resource group in which to run the instance.

        Returns:
        The ARN of the Capacity Reservation resource group in which to run the instance.
      • withCapacityReservationResourceGroupArn

        public OnDemandCapacityReservationOptions withCapacityReservationResourceGroupArn(String capacityReservationResourceGroupArn)

        The ARN of the Capacity Reservation resource group in which to run the instance.

        Parameters:
        capacityReservationResourceGroupArn - The ARN of the Capacity Reservation resource group in which to run the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public 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
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /