@Generated(value="software.amazon.awssdk:codegen") public final class Ec2InstanceAttributes extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Ec2InstanceAttributes.Builder,Ec2InstanceAttributes>
Provides information about the EC2 instances in a cluster grouped by category. For example, key name, subnet ID, IAM instance profile, and so on.
Modifier and Type | Class and Description |
---|---|
static interface |
Ec2InstanceAttributes.Builder |
Modifier and Type | Method and Description |
---|---|
List<String> |
additionalMasterSecurityGroups()
A list of additional Amazon EC2 security group IDs for the master node.
|
List<String> |
additionalSlaveSecurityGroups()
A list of additional Amazon EC2 security group IDs for the core and task nodes.
|
static Ec2InstanceAttributes.Builder |
builder() |
String |
ec2AvailabilityZone()
The Availability Zone in which the cluster will run.
|
String |
ec2KeyName()
The name of the Amazon EC2 key pair to use when connecting with SSH into the master node as a user named
"hadoop".
|
String |
ec2SubnetId()
Set this parameter to the identifier of the Amazon VPC subnet where you want the cluster to launch.
|
String |
emrManagedMasterSecurityGroup()
The identifier of the Amazon EC2 security group for the master node.
|
String |
emrManagedSlaveSecurityGroup()
The identifier of the Amazon EC2 security group for the core and task nodes.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAdditionalMasterSecurityGroups()
Returns true if the AdditionalMasterSecurityGroups property was specified by the sender (it may be empty), or
false if the sender did not specify the value (it will be empty).
|
boolean |
hasAdditionalSlaveSecurityGroups()
Returns true if the AdditionalSlaveSecurityGroups property was specified by the sender (it may be empty), or
false if the sender did not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasRequestedEc2AvailabilityZones()
Returns true if the RequestedEc2AvailabilityZones property was specified by the sender (it may be empty), or
false if the sender did not specify the value (it will be empty).
|
boolean |
hasRequestedEc2SubnetIds()
Returns true if the RequestedEc2SubnetIds property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
String |
iamInstanceProfile()
The IAM role that was specified when the cluster was launched.
|
List<String> |
requestedEc2AvailabilityZones()
Applies to clusters configured with the instance fleets option.
|
List<String> |
requestedEc2SubnetIds()
Applies to clusters configured with the instance fleets option.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Ec2InstanceAttributes.Builder> |
serializableBuilderClass() |
String |
serviceAccessSecurityGroup()
The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private
subnets.
|
Ec2InstanceAttributes.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
copy
public final String ec2KeyName()
The name of the Amazon EC2 key pair to use when connecting with SSH into the master node as a user named "hadoop".
public final String ec2SubnetId()
Set this parameter to the identifier of the Amazon VPC subnet where you want the cluster to launch. If you do not specify this value, and your account supports EC2-Classic, the cluster launches in EC2-Classic.
public final boolean hasRequestedEc2SubnetIds()
public final List<String> requestedEc2SubnetIds()
Applies to clusters configured with the instance fleets option. Specifies the unique identifier of one or more
Amazon EC2 subnets in which to launch EC2 cluster instances. Subnets must exist within the same VPC. Amazon EMR
chooses the EC2 subnet with the best fit from among the list of RequestedEc2SubnetIds
, and then
launches all cluster instances within that Subnet. If this value is not specified, and the account and Region
support EC2-Classic networks, the cluster launches instances in the EC2-Classic network and uses
RequestedEc2AvailabilityZones
instead of this setting. If EC2-Classic is not supported, and no
Subnet is specified, Amazon EMR chooses the subnet for you. RequestedEc2SubnetIDs
and
RequestedEc2AvailabilityZones
cannot be specified together.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasRequestedEc2SubnetIds()
to see if a value was sent in this field.
RequestedEc2SubnetIds
, and then launches all cluster instances within that Subnet. If this
value is not specified, and the account and Region support EC2-Classic networks, the cluster launches
instances in the EC2-Classic network and uses RequestedEc2AvailabilityZones
instead of this
setting. If EC2-Classic is not supported, and no Subnet is specified, Amazon EMR chooses the subnet for
you. RequestedEc2SubnetIDs
and RequestedEc2AvailabilityZones
cannot be
specified together.public final String ec2AvailabilityZone()
The Availability Zone in which the cluster will run.
public final boolean hasRequestedEc2AvailabilityZones()
public final List<String> requestedEc2AvailabilityZones()
Applies to clusters configured with the instance fleets option. Specifies one or more Availability Zones in which
to launch EC2 cluster instances when the EC2-Classic network configuration is supported. Amazon EMR chooses the
Availability Zone with the best fit from among the list of RequestedEc2AvailabilityZones
, and then
launches all cluster instances within that Availability Zone. If you do not specify this value, Amazon EMR
chooses the Availability Zone for you. RequestedEc2SubnetIDs
and
RequestedEc2AvailabilityZones
cannot be specified together.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasRequestedEc2AvailabilityZones()
to see if a value was sent in this field.
RequestedEc2AvailabilityZones
, and then launches all cluster instances within that
Availability Zone. If you do not specify this value, Amazon EMR chooses the Availability Zone for you.
RequestedEc2SubnetIDs
and RequestedEc2AvailabilityZones
cannot be specified
together.public final String iamInstanceProfile()
The IAM role that was specified when the cluster was launched. The EC2 instances of the cluster assume this role.
public final String emrManagedMasterSecurityGroup()
The identifier of the Amazon EC2 security group for the master node.
public final String emrManagedSlaveSecurityGroup()
The identifier of the Amazon EC2 security group for the core and task nodes.
public final String serviceAccessSecurityGroup()
The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.
public final boolean hasAdditionalMasterSecurityGroups()
public final List<String> additionalMasterSecurityGroups()
A list of additional Amazon EC2 security group IDs for the master node.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasAdditionalMasterSecurityGroups()
to see if a value was sent in this field.
public final boolean hasAdditionalSlaveSecurityGroups()
public final List<String> additionalSlaveSecurityGroups()
A list of additional Amazon EC2 security group IDs for the core and task nodes.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasAdditionalSlaveSecurityGroups()
to see if a value was sent in this field.
public Ec2InstanceAttributes.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Ec2InstanceAttributes.Builder,Ec2InstanceAttributes>
public static Ec2InstanceAttributes.Builder builder()
public static Class<? extends Ec2InstanceAttributes.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()