@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class NetworkConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
The VPC networking components used to secure and enable network traffic between the AWS resources for your environment. To learn more, see About networking on Amazon MWAA.
Constructor and Description |
---|
NetworkConfiguration() |
Modifier and Type | Method and Description |
---|---|
NetworkConfiguration |
clone() |
boolean |
equals(Object obj) |
List<String> |
getSecurityGroupIds()
A list of 1 or more security group IDs.
|
List<String> |
getSubnetIds()
A list of 2 subnet IDs.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setSecurityGroupIds(Collection<String> securityGroupIds)
A list of 1 or more security group IDs.
|
void |
setSubnetIds(Collection<String> subnetIds)
A list of 2 subnet IDs.
|
String |
toString()
Returns a string representation of this object.
|
NetworkConfiguration |
withSecurityGroupIds(Collection<String> securityGroupIds)
A list of 1 or more security group IDs.
|
NetworkConfiguration |
withSecurityGroupIds(String... securityGroupIds)
A list of 1 or more security group IDs.
|
NetworkConfiguration |
withSubnetIds(Collection<String> subnetIds)
A list of 2 subnet IDs.
|
NetworkConfiguration |
withSubnetIds(String... subnetIds)
A list of 2 subnet IDs.
|
public List<String> getSecurityGroupIds()
A list of 1 or more security group IDs. Accepts up to 5 security group IDs. A security group must be attached to the same VPC as the subnets. To learn more, see Security in your VPC on Amazon MWAA.
public void setSecurityGroupIds(Collection<String> securityGroupIds)
A list of 1 or more security group IDs. Accepts up to 5 security group IDs. A security group must be attached to the same VPC as the subnets. To learn more, see Security in your VPC on Amazon MWAA.
securityGroupIds
- A list of 1 or more security group IDs. Accepts up to 5 security group IDs. A security group must be
attached to the same VPC as the subnets. To learn more, see Security in your VPC on Amazon
MWAA.public NetworkConfiguration withSecurityGroupIds(String... securityGroupIds)
A list of 1 or more security group IDs. Accepts up to 5 security group IDs. A security group must be attached to the same VPC as the subnets. To learn more, see Security in your VPC on Amazon MWAA.
NOTE: This method appends the values to the existing list (if any). Use
setSecurityGroupIds(java.util.Collection)
or withSecurityGroupIds(java.util.Collection)
if you
want to override the existing values.
securityGroupIds
- A list of 1 or more security group IDs. Accepts up to 5 security group IDs. A security group must be
attached to the same VPC as the subnets. To learn more, see Security in your VPC on Amazon
MWAA.public NetworkConfiguration withSecurityGroupIds(Collection<String> securityGroupIds)
A list of 1 or more security group IDs. Accepts up to 5 security group IDs. A security group must be attached to the same VPC as the subnets. To learn more, see Security in your VPC on Amazon MWAA.
securityGroupIds
- A list of 1 or more security group IDs. Accepts up to 5 security group IDs. A security group must be
attached to the same VPC as the subnets. To learn more, see Security in your VPC on Amazon
MWAA.public List<String> getSubnetIds()
A list of 2 subnet IDs. Required to create an environment. Must be private subnets in two different availability zones. A subnet must be attached to the same VPC as the security group.
public void setSubnetIds(Collection<String> subnetIds)
A list of 2 subnet IDs. Required to create an environment. Must be private subnets in two different availability zones. A subnet must be attached to the same VPC as the security group.
subnetIds
- A list of 2 subnet IDs. Required to create an environment. Must be private subnets in two different
availability zones. A subnet must be attached to the same VPC as the security group.public NetworkConfiguration withSubnetIds(String... subnetIds)
A list of 2 subnet IDs. Required to create an environment. Must be private subnets in two different availability zones. A subnet must be attached to the same VPC as the security group.
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
- A list of 2 subnet IDs. Required to create an environment. Must be private subnets in two different
availability zones. A subnet must be attached to the same VPC as the security group.public NetworkConfiguration withSubnetIds(Collection<String> subnetIds)
A list of 2 subnet IDs. Required to create an environment. Must be private subnets in two different availability zones. A subnet must be attached to the same VPC as the security group.
subnetIds
- A list of 2 subnet IDs. Required to create an environment. Must be private subnets in two different
availability zones. A subnet must be attached to the same VPC as the security group.public String toString()
toString
in class Object
Object.toString()
public NetworkConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.