Class InstanceGroup

    • Constructor Detail

      • InstanceGroup

        public InstanceGroup()
    • Method Detail

      • setId

        public void setId​(String id)

        The identifier of the instance group.

        Parameters:
        id - The identifier of the instance group.
      • getId

        public String getId()

        The identifier of the instance group.

        Returns:
        The identifier of the instance group.
      • withId

        public InstanceGroup withId​(String id)

        The identifier of the instance group.

        Parameters:
        id - The identifier of the instance group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setName

        public void setName​(String name)

        The name of the instance group.

        Parameters:
        name - The name of the instance group.
      • getName

        public String getName()

        The name of the instance group.

        Returns:
        The name of the instance group.
      • withName

        public InstanceGroup withName​(String name)

        The name of the instance group.

        Parameters:
        name - The name of the instance group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setMarket

        public void setMarket​(String market)

        The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.

        Parameters:
        market - The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.
        See Also:
        MarketType
      • getMarket

        public String getMarket()

        The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.

        Returns:
        The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.
        See Also:
        MarketType
      • withMarket

        public InstanceGroup withMarket​(String market)

        The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.

        Parameters:
        market - The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        MarketType
      • setMarket

        public void setMarket​(MarketType market)

        The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.

        Parameters:
        market - The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.
        See Also:
        MarketType
      • withMarket

        public InstanceGroup withMarket​(MarketType market)

        The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.

        Parameters:
        market - The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        MarketType
      • setInstanceGroupType

        public void setInstanceGroupType​(String instanceGroupType)

        The type of the instance group. Valid values are MASTER, CORE or TASK.

        Parameters:
        instanceGroupType - The type of the instance group. Valid values are MASTER, CORE or TASK.
        See Also:
        InstanceGroupType
      • getInstanceGroupType

        public String getInstanceGroupType()

        The type of the instance group. Valid values are MASTER, CORE or TASK.

        Returns:
        The type of the instance group. Valid values are MASTER, CORE or TASK.
        See Also:
        InstanceGroupType
      • withInstanceGroupType

        public InstanceGroup withInstanceGroupType​(String instanceGroupType)

        The type of the instance group. Valid values are MASTER, CORE or TASK.

        Parameters:
        instanceGroupType - The type of the instance group. Valid values are MASTER, CORE or TASK.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        InstanceGroupType
      • setInstanceGroupType

        public void setInstanceGroupType​(InstanceGroupType instanceGroupType)

        The type of the instance group. Valid values are MASTER, CORE or TASK.

        Parameters:
        instanceGroupType - The type of the instance group. Valid values are MASTER, CORE or TASK.
        See Also:
        InstanceGroupType
      • withInstanceGroupType

        public InstanceGroup withInstanceGroupType​(InstanceGroupType instanceGroupType)

        The type of the instance group. Valid values are MASTER, CORE or TASK.

        Parameters:
        instanceGroupType - The type of the instance group. Valid values are MASTER, CORE or TASK.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        InstanceGroupType
      • setBidPrice

        public void setBidPrice​(String bidPrice)

        The bid price for each EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.

        Parameters:
        bidPrice - The bid price for each EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.
      • getBidPrice

        public String getBidPrice()

        The bid price for each EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.

        Returns:
        The bid price for each EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.
      • withBidPrice

        public InstanceGroup withBidPrice​(String bidPrice)

        The bid price for each EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.

        Parameters:
        bidPrice - The bid price for each EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setInstanceType

        public void setInstanceType​(String instanceType)

        The EC2 instance type for all instances in the instance group.

        Parameters:
        instanceType - The EC2 instance type for all instances in the instance group.
      • getInstanceType

        public String getInstanceType()

        The EC2 instance type for all instances in the instance group.

        Returns:
        The EC2 instance type for all instances in the instance group.
      • withInstanceType

        public InstanceGroup withInstanceType​(String instanceType)

        The EC2 instance type for all instances in the instance group.

        Parameters:
        instanceType - The EC2 instance type for all instances in the instance group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setRequestedInstanceCount

        public void setRequestedInstanceCount​(Integer requestedInstanceCount)

        The target number of instances for the instance group.

        Parameters:
        requestedInstanceCount - The target number of instances for the instance group.
      • getRequestedInstanceCount

        public Integer getRequestedInstanceCount()

        The target number of instances for the instance group.

        Returns:
        The target number of instances for the instance group.
      • withRequestedInstanceCount

        public InstanceGroup withRequestedInstanceCount​(Integer requestedInstanceCount)

        The target number of instances for the instance group.

        Parameters:
        requestedInstanceCount - The target number of instances for the instance group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setRunningInstanceCount

        public void setRunningInstanceCount​(Integer runningInstanceCount)

        The number of instances currently running in this instance group.

        Parameters:
        runningInstanceCount - The number of instances currently running in this instance group.
      • getRunningInstanceCount

        public Integer getRunningInstanceCount()

        The number of instances currently running in this instance group.

        Returns:
        The number of instances currently running in this instance group.
      • withRunningInstanceCount

        public InstanceGroup withRunningInstanceCount​(Integer runningInstanceCount)

        The number of instances currently running in this instance group.

        Parameters:
        runningInstanceCount - The number of instances currently running in this instance group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setStatus

        public void setStatus​(InstanceGroupStatus status)

        The current status of the instance group.

        Parameters:
        status - The current status of the instance group.
      • getStatus

        public InstanceGroupStatus getStatus()

        The current status of the instance group.

        Returns:
        The current status of the instance group.
      • withStatus

        public InstanceGroup withStatus​(InstanceGroupStatus status)

        The current status of the instance group.

        Parameters:
        status - The current status of the instance group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getConfigurations

        public List<Configuration> getConfigurations()

        Amazon EMR releases 4.x or later.

        The list of configurations supplied for an EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).

        Returns:
        Amazon EMR releases 4.x or later.

      • setConfigurations

        public void setConfigurations​(Collection<Configuration> configurations)

        Amazon EMR releases 4.x or later.

        The list of configurations supplied for an EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).

        Parameters:
        configurations - Amazon EMR releases 4.x or later.

      • withConfigurations

        public InstanceGroup withConfigurations​(Configuration... configurations)

        Amazon EMR releases 4.x or later.

        The list of configurations supplied for an EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).

        NOTE: This method appends the values to the existing list (if any). Use setConfigurations(java.util.Collection) or withConfigurations(java.util.Collection) if you want to override the existing values.

        Parameters:
        configurations - Amazon EMR releases 4.x or later.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withConfigurations

        public InstanceGroup withConfigurations​(Collection<Configuration> configurations)

        Amazon EMR releases 4.x or later.

        The list of configurations supplied for an EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).

        Parameters:
        configurations - Amazon EMR releases 4.x or later.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getEbsBlockDevices

        public List<EbsBlockDevice> getEbsBlockDevices()

        The EBS block devices that are mapped to this instance group.

        Returns:
        The EBS block devices that are mapped to this instance group.
      • setEbsBlockDevices

        public void setEbsBlockDevices​(Collection<EbsBlockDevice> ebsBlockDevices)

        The EBS block devices that are mapped to this instance group.

        Parameters:
        ebsBlockDevices - The EBS block devices that are mapped to this instance group.
      • withEbsBlockDevices

        public InstanceGroup withEbsBlockDevices​(EbsBlockDevice... ebsBlockDevices)

        The EBS block devices that are mapped to this instance group.

        NOTE: This method appends the values to the existing list (if any). Use setEbsBlockDevices(java.util.Collection) or withEbsBlockDevices(java.util.Collection) if you want to override the existing values.

        Parameters:
        ebsBlockDevices - The EBS block devices that are mapped to this instance group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withEbsBlockDevices

        public InstanceGroup withEbsBlockDevices​(Collection<EbsBlockDevice> ebsBlockDevices)

        The EBS block devices that are mapped to this instance group.

        Parameters:
        ebsBlockDevices - The EBS block devices that are mapped to this instance group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setEbsOptimized

        public void setEbsOptimized​(Boolean ebsOptimized)

        If the instance group is EBS-optimized. An Amazon EBS–optimized instance uses an optimized configuration stack and provides additional, dedicated capacity for Amazon EBS I/O.

        Parameters:
        ebsOptimized - If the instance group is EBS-optimized. An Amazon EBS–optimized instance uses an optimized configuration stack and provides additional, dedicated capacity for Amazon EBS I/O.
      • getEbsOptimized

        public Boolean getEbsOptimized()

        If the instance group is EBS-optimized. An Amazon EBS–optimized instance uses an optimized configuration stack and provides additional, dedicated capacity for Amazon EBS I/O.

        Returns:
        If the instance group is EBS-optimized. An Amazon EBS–optimized instance uses an optimized configuration stack and provides additional, dedicated capacity for Amazon EBS I/O.
      • withEbsOptimized

        public InstanceGroup withEbsOptimized​(Boolean ebsOptimized)

        If the instance group is EBS-optimized. An Amazon EBS–optimized instance uses an optimized configuration stack and provides additional, dedicated capacity for Amazon EBS I/O.

        Parameters:
        ebsOptimized - If the instance group is EBS-optimized. An Amazon EBS–optimized instance uses an optimized configuration stack and provides additional, dedicated capacity for Amazon EBS I/O.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • isEbsOptimized

        public Boolean isEbsOptimized()

        If the instance group is EBS-optimized. An Amazon EBS–optimized instance uses an optimized configuration stack and provides additional, dedicated capacity for Amazon EBS I/O.

        Returns:
        If the instance group is EBS-optimized. An Amazon EBS–optimized instance uses an optimized configuration stack and provides additional, dedicated capacity for Amazon EBS I/O.
      • setShrinkPolicy

        public void setShrinkPolicy​(ShrinkPolicy shrinkPolicy)

        Policy for customizing shrink operations.

        Parameters:
        shrinkPolicy - Policy for customizing shrink operations.
      • getShrinkPolicy

        public ShrinkPolicy getShrinkPolicy()

        Policy for customizing shrink operations.

        Returns:
        Policy for customizing shrink operations.
      • withShrinkPolicy

        public InstanceGroup withShrinkPolicy​(ShrinkPolicy shrinkPolicy)

        Policy for customizing shrink operations.

        Parameters:
        shrinkPolicy - Policy for customizing shrink operations.
        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; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object