@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VpcDestinationConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
The configuration information for a virtual private cloud (VPC) destination.
Constructor and Description |
---|
VpcDestinationConfiguration() |
Modifier and Type | Method and Description |
---|---|
VpcDestinationConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getRoleArn()
The ARN of a role that has permission to create and attach to elastic network interfaces (ENIs).
|
List<String> |
getSecurityGroups()
The security groups of the VPC destination.
|
List<String> |
getSubnetIds()
The subnet IDs of the VPC destination.
|
String |
getVpcId()
The ID of the VPC.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setRoleArn(String roleArn)
The ARN of a role that has permission to create and attach to elastic network interfaces (ENIs).
|
void |
setSecurityGroups(Collection<String> securityGroups)
The security groups of the VPC destination.
|
void |
setSubnetIds(Collection<String> subnetIds)
The subnet IDs of the VPC destination.
|
void |
setVpcId(String vpcId)
The ID of the VPC.
|
String |
toString()
Returns a string representation of this object.
|
VpcDestinationConfiguration |
withRoleArn(String roleArn)
The ARN of a role that has permission to create and attach to elastic network interfaces (ENIs).
|
VpcDestinationConfiguration |
withSecurityGroups(Collection<String> securityGroups)
The security groups of the VPC destination.
|
VpcDestinationConfiguration |
withSecurityGroups(String... securityGroups)
The security groups of the VPC destination.
|
VpcDestinationConfiguration |
withSubnetIds(Collection<String> subnetIds)
The subnet IDs of the VPC destination.
|
VpcDestinationConfiguration |
withSubnetIds(String... subnetIds)
The subnet IDs of the VPC destination.
|
VpcDestinationConfiguration |
withVpcId(String vpcId)
The ID of the VPC.
|
public List<String> getSubnetIds()
The subnet IDs of the VPC destination.
public void setSubnetIds(Collection<String> subnetIds)
The subnet IDs of the VPC destination.
subnetIds
- The subnet IDs of the VPC destination.public VpcDestinationConfiguration withSubnetIds(String... subnetIds)
The subnet IDs of the VPC destination.
NOTE: This method appends the values to the existing list (if any). Use
setSubnetIds(java.util.Collection)
or withSubnetIds(java.util.Collection)
if you want to
override the existing values.
subnetIds
- The subnet IDs of the VPC destination.public VpcDestinationConfiguration withSubnetIds(Collection<String> subnetIds)
The subnet IDs of the VPC destination.
subnetIds
- The subnet IDs of the VPC destination.public List<String> getSecurityGroups()
The security groups of the VPC destination.
public void setSecurityGroups(Collection<String> securityGroups)
The security groups of the VPC destination.
securityGroups
- The security groups of the VPC destination.public VpcDestinationConfiguration withSecurityGroups(String... securityGroups)
The security groups of the VPC destination.
NOTE: This method appends the values to the existing list (if any). Use
setSecurityGroups(java.util.Collection)
or withSecurityGroups(java.util.Collection)
if you want
to override the existing values.
securityGroups
- The security groups of the VPC destination.public VpcDestinationConfiguration withSecurityGroups(Collection<String> securityGroups)
The security groups of the VPC destination.
securityGroups
- The security groups of the VPC destination.public void setVpcId(String vpcId)
The ID of the VPC.
vpcId
- The ID of the VPC.public String getVpcId()
The ID of the VPC.
public VpcDestinationConfiguration withVpcId(String vpcId)
The ID of the VPC.
vpcId
- The ID of the VPC.public void setRoleArn(String roleArn)
The ARN of a role that has permission to create and attach to elastic network interfaces (ENIs).
roleArn
- The ARN of a role that has permission to create and attach to elastic network interfaces (ENIs).public String getRoleArn()
The ARN of a role that has permission to create and attach to elastic network interfaces (ENIs).
public VpcDestinationConfiguration withRoleArn(String roleArn)
The ARN of a role that has permission to create and attach to elastic network interfaces (ENIs).
roleArn
- The ARN of a role that has permission to create and attach to elastic network interfaces (ENIs).public String toString()
toString
in class Object
Object.toString()
public VpcDestinationConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.