@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Ec2Config extends Object implements Serializable, Cloneable, StructuredPojo
The subnet and the security group that DataSync uses to access target EFS file system. The subnet must have at least one mount target for that file system. The security group that you provide needs to be able to communicate with the security group on the mount target in the subnet specified.
Constructor and Description |
---|
Ec2Config() |
Modifier and Type | Method and Description |
---|---|
Ec2Config |
clone() |
boolean |
equals(Object obj) |
List<String> |
getSecurityGroupArns()
The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.
|
String |
getSubnetArn()
The ARN of the subnet and the security group that DataSync uses to access the target EFS file system.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setSecurityGroupArns(Collection<String> securityGroupArns)
The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.
|
void |
setSubnetArn(String subnetArn)
The ARN of the subnet and the security group that DataSync uses to access the target EFS file system.
|
String |
toString()
Returns a string representation of this object.
|
Ec2Config |
withSecurityGroupArns(Collection<String> securityGroupArns)
The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.
|
Ec2Config |
withSecurityGroupArns(String... securityGroupArns)
The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.
|
Ec2Config |
withSubnetArn(String subnetArn)
The ARN of the subnet and the security group that DataSync uses to access the target EFS file system.
|
public void setSubnetArn(String subnetArn)
The ARN of the subnet and the security group that DataSync uses to access the target EFS file system.
subnetArn
- The ARN of the subnet and the security group that DataSync uses to access the target EFS file system.public String getSubnetArn()
The ARN of the subnet and the security group that DataSync uses to access the target EFS file system.
public Ec2Config withSubnetArn(String subnetArn)
The ARN of the subnet and the security group that DataSync uses to access the target EFS file system.
subnetArn
- The ARN of the subnet and the security group that DataSync uses to access the target EFS file system.public List<String> getSecurityGroupArns()
The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.
public void setSecurityGroupArns(Collection<String> securityGroupArns)
The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.
securityGroupArns
- The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.public Ec2Config withSecurityGroupArns(String... securityGroupArns)
The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.
NOTE: This method appends the values to the existing list (if any). Use
setSecurityGroupArns(java.util.Collection)
or withSecurityGroupArns(java.util.Collection)
if
you want to override the existing values.
securityGroupArns
- The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.public Ec2Config withSecurityGroupArns(Collection<String> securityGroupArns)
The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.
securityGroupArns
- The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.