JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.795

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 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)

        If specified, indicates that the instance group uses Spot Instances. This is the maximum price you are willing to pay for Spot Instances. Specify OnDemandPrice to set the amount equal to the On-Demand price, or specify an amount in USD.

        Parameters:
        bidPrice - If specified, indicates that the instance group uses Spot Instances. This is the maximum price you are willing to pay for Spot Instances. Specify OnDemandPrice to set the amount equal to the On-Demand price, or specify an amount in USD.
      • getBidPrice

        public String getBidPrice()

        If specified, indicates that the instance group uses Spot Instances. This is the maximum price you are willing to pay for Spot Instances. Specify OnDemandPrice to set the amount equal to the On-Demand price, or specify an amount in USD.

        Returns:
        If specified, indicates that the instance group uses Spot Instances. This is the maximum price you are willing to pay for Spot Instances. Specify OnDemandPrice to set the amount equal to the On-Demand price, or specify an amount in USD.
      • withBidPrice

        public InstanceGroup withBidPrice(String bidPrice)

        If specified, indicates that the instance group uses Spot Instances. This is the maximum price you are willing to pay for Spot Instances. Specify OnDemandPrice to set the amount equal to the On-Demand price, or specify an amount in USD.

        Parameters:
        bidPrice - If specified, indicates that the instance group uses Spot Instances. This is the maximum price you are willing to pay for Spot Instances. Specify OnDemandPrice to set the amount equal to the On-Demand price, or specify an amount in USD.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setInstanceType

        public void setInstanceType(String instanceType)

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

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

        public String getInstanceType()

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

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

        public InstanceGroup withInstanceType(String instanceType)

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

        Parameters:
        instanceType - The Amazon 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 Amazon 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.

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

      • setConfigurations

        public void setConfigurations(Collection<Configuration> configurations)

        Amazon EMR releases 4.x or later.

        The list of configurations supplied for an Amazon 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.

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

      • withConfigurations

        public InstanceGroup withConfigurations(Configuration... configurations)

        Amazon EMR releases 4.x or later.

        The list of configurations supplied for an Amazon 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.

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

        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 Amazon 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.

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

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

        public void setConfigurationsVersion(Long configurationsVersion)

        The version number of the requested configuration specification for this instance group.

        Parameters:
        configurationsVersion - The version number of the requested configuration specification for this instance group.
      • getConfigurationsVersion

        public Long getConfigurationsVersion()

        The version number of the requested configuration specification for this instance group.

        Returns:
        The version number of the requested configuration specification for this instance group.
      • withConfigurationsVersion

        public InstanceGroup withConfigurationsVersion(Long configurationsVersion)

        The version number of the requested configuration specification for this instance group.

        Parameters:
        configurationsVersion - The version number of the requested configuration specification for this instance group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getLastSuccessfullyAppliedConfigurations

        public List<Configuration> getLastSuccessfullyAppliedConfigurations()

        A list of configurations that were successfully applied for an instance group last time.

        Returns:
        A list of configurations that were successfully applied for an instance group last time.
      • setLastSuccessfullyAppliedConfigurations

        public void setLastSuccessfullyAppliedConfigurations(Collection<Configuration> lastSuccessfullyAppliedConfigurations)

        A list of configurations that were successfully applied for an instance group last time.

        Parameters:
        lastSuccessfullyAppliedConfigurations - A list of configurations that were successfully applied for an instance group last time.
      • withLastSuccessfullyAppliedConfigurations

        public InstanceGroup withLastSuccessfullyAppliedConfigurations(Collection<Configuration> lastSuccessfullyAppliedConfigurations)

        A list of configurations that were successfully applied for an instance group last time.

        Parameters:
        lastSuccessfullyAppliedConfigurations - A list of configurations that were successfully applied for an instance group last time.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setLastSuccessfullyAppliedConfigurationsVersion

        public void setLastSuccessfullyAppliedConfigurationsVersion(Long lastSuccessfullyAppliedConfigurationsVersion)

        The version number of a configuration specification that was successfully applied for an instance group last time.

        Parameters:
        lastSuccessfullyAppliedConfigurationsVersion - The version number of a configuration specification that was successfully applied for an instance group last time.
      • getLastSuccessfullyAppliedConfigurationsVersion

        public Long getLastSuccessfullyAppliedConfigurationsVersion()

        The version number of a configuration specification that was successfully applied for an instance group last time.

        Returns:
        The version number of a configuration specification that was successfully applied for an instance group last time.
      • withLastSuccessfullyAppliedConfigurationsVersion

        public InstanceGroup withLastSuccessfullyAppliedConfigurationsVersion(Long lastSuccessfullyAppliedConfigurationsVersion)

        The version number of a configuration specification that was successfully applied for an instance group last time.

        Parameters:
        lastSuccessfullyAppliedConfigurationsVersion - The version number of a configuration specification that was successfully applied for an instance group last time.
        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.
      • setAutoScalingPolicy

        public void setAutoScalingPolicy(AutoScalingPolicyDescription autoScalingPolicy)

        An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The automatic scaling policy defines how an instance group dynamically adds and terminates Amazon EC2 instances in response to the value of a CloudWatch metric. See PutAutoScalingPolicy.

        Parameters:
        autoScalingPolicy - An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The automatic scaling policy defines how an instance group dynamically adds and terminates Amazon EC2 instances in response to the value of a CloudWatch metric. See PutAutoScalingPolicy.
      • getAutoScalingPolicy

        public AutoScalingPolicyDescription getAutoScalingPolicy()

        An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The automatic scaling policy defines how an instance group dynamically adds and terminates Amazon EC2 instances in response to the value of a CloudWatch metric. See PutAutoScalingPolicy.

        Returns:
        An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The automatic scaling policy defines how an instance group dynamically adds and terminates Amazon EC2 instances in response to the value of a CloudWatch metric. See PutAutoScalingPolicy.
      • withAutoScalingPolicy

        public InstanceGroup withAutoScalingPolicy(AutoScalingPolicyDescription autoScalingPolicy)

        An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The automatic scaling policy defines how an instance group dynamically adds and terminates Amazon EC2 instances in response to the value of a CloudWatch metric. See PutAutoScalingPolicy.

        Parameters:
        autoScalingPolicy - An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The automatic scaling policy defines how an instance group dynamically adds and terminates Amazon EC2 instances in response to the value of a CloudWatch metric. See PutAutoScalingPolicy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setCustomAmiId

        public void setCustomAmiId(String customAmiId)

        The custom AMI ID to use for the provisioned instance group.

        Parameters:
        customAmiId - The custom AMI ID to use for the provisioned instance group.
      • getCustomAmiId

        public String getCustomAmiId()

        The custom AMI ID to use for the provisioned instance group.

        Returns:
        The custom AMI ID to use for the provisioned instance group.
      • withCustomAmiId

        public InstanceGroup withCustomAmiId(String customAmiId)

        The custom AMI ID to use for the provisioned instance group.

        Parameters:
        customAmiId - The custom AMI ID to use for the provisioned instance group.
        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 によって変換されたページ (->オリジナル) /