Class OnDemandProvisioningSpecification

    • Method Detail

      • allocationStrategy

        public final OnDemandProvisioningAllocationStrategy allocationStrategy()

        Specifies the strategy to use in launching On-Demand instance fleets. Available options are lowest-price and prioritized. lowest-price specifies to launch the instances with the lowest price first, and prioritized specifies that Amazon EMR should launch the instances with the highest priority first. The default is lowest-price.

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

        Returns:
        Specifies the strategy to use in launching On-Demand instance fleets. Available options are lowest-price and prioritized. lowest-price specifies to launch the instances with the lowest price first, and prioritized specifies that Amazon EMR should launch the instances with the highest priority first. The default is lowest-price.
        See Also:
        OnDemandProvisioningAllocationStrategy
      • allocationStrategyAsString

        public final String allocationStrategyAsString()

        Specifies the strategy to use in launching On-Demand instance fleets. Available options are lowest-price and prioritized. lowest-price specifies to launch the instances with the lowest price first, and prioritized specifies that Amazon EMR should launch the instances with the highest priority first. The default is lowest-price.

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

        Returns:
        Specifies the strategy to use in launching On-Demand instance fleets. Available options are lowest-price and prioritized. lowest-price specifies to launch the instances with the lowest price first, and prioritized specifies that Amazon EMR should launch the instances with the highest priority first. The default is lowest-price.
        See Also:
        OnDemandProvisioningAllocationStrategy
      • capacityReservationOptions

        public final OnDemandCapacityReservationOptions capacityReservationOptions()

        The launch specification for On-Demand instances in the instance fleet, which determines the allocation strategy.

        Returns:
        The launch specification for On-Demand instances in the instance fleet, which determines the allocation strategy.
      • 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)