@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SelfManagedKafkaAccessConfigurationVpc extends Object implements Serializable, Cloneable, StructuredPojo
This structure specifies the VPC subnets and security groups for the stream, and whether a public IP address is to be used.
Constructor and Description |
---|
SelfManagedKafkaAccessConfigurationVpc() |
Modifier and Type | Method and Description |
---|---|
SelfManagedKafkaAccessConfigurationVpc |
clone() |
boolean |
equals(Object obj) |
List<String> |
getSecurityGroup()
Specifies the security groups associated with the stream.
|
List<String> |
getSubnets()
Specifies the subnets associated with the stream.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setSecurityGroup(Collection<String> securityGroup)
Specifies the security groups associated with the stream.
|
void |
setSubnets(Collection<String> subnets)
Specifies the subnets associated with the stream.
|
String |
toString()
Returns a string representation of this object.
|
SelfManagedKafkaAccessConfigurationVpc |
withSecurityGroup(Collection<String> securityGroup)
Specifies the security groups associated with the stream.
|
SelfManagedKafkaAccessConfigurationVpc |
withSecurityGroup(String... securityGroup)
Specifies the security groups associated with the stream.
|
SelfManagedKafkaAccessConfigurationVpc |
withSubnets(Collection<String> subnets)
Specifies the subnets associated with the stream.
|
SelfManagedKafkaAccessConfigurationVpc |
withSubnets(String... subnets)
Specifies the subnets associated with the stream.
|
public SelfManagedKafkaAccessConfigurationVpc()
public List<String> getSecurityGroup()
Specifies the security groups associated with the stream. These security groups must all be in the same VPC. You can specify as many as five security groups. If you do not specify a security group, the default security group for the VPC is used.
public void setSecurityGroup(Collection<String> securityGroup)
Specifies the security groups associated with the stream. These security groups must all be in the same VPC. You can specify as many as five security groups. If you do not specify a security group, the default security group for the VPC is used.
securityGroup
- Specifies the security groups associated with the stream. These security groups must all be in the same
VPC. You can specify as many as five security groups. If you do not specify a security group, the default
security group for the VPC is used.public SelfManagedKafkaAccessConfigurationVpc withSecurityGroup(String... securityGroup)
Specifies the security groups associated with the stream. These security groups must all be in the same VPC. You can specify as many as five security groups. If you do not specify a security group, the default security group for the VPC is used.
NOTE: This method appends the values to the existing list (if any). Use
setSecurityGroup(java.util.Collection)
or withSecurityGroup(java.util.Collection)
if you want
to override the existing values.
securityGroup
- Specifies the security groups associated with the stream. These security groups must all be in the same
VPC. You can specify as many as five security groups. If you do not specify a security group, the default
security group for the VPC is used.public SelfManagedKafkaAccessConfigurationVpc withSecurityGroup(Collection<String> securityGroup)
Specifies the security groups associated with the stream. These security groups must all be in the same VPC. You can specify as many as five security groups. If you do not specify a security group, the default security group for the VPC is used.
securityGroup
- Specifies the security groups associated with the stream. These security groups must all be in the same
VPC. You can specify as many as five security groups. If you do not specify a security group, the default
security group for the VPC is used.public List<String> getSubnets()
Specifies the subnets associated with the stream. These subnets must all be in the same VPC. You can specify as many as 16 subnets.
public void setSubnets(Collection<String> subnets)
Specifies the subnets associated with the stream. These subnets must all be in the same VPC. You can specify as many as 16 subnets.
subnets
- Specifies the subnets associated with the stream. These subnets must all be in the same VPC. You can
specify as many as 16 subnets.public SelfManagedKafkaAccessConfigurationVpc withSubnets(String... subnets)
Specifies the subnets associated with the stream. These subnets must all be in the same VPC. You can specify as many as 16 subnets.
NOTE: This method appends the values to the existing list (if any). Use
setSubnets(java.util.Collection)
or withSubnets(java.util.Collection)
if you want to override
the existing values.
subnets
- Specifies the subnets associated with the stream. These subnets must all be in the same VPC. You can
specify as many as 16 subnets.public SelfManagedKafkaAccessConfigurationVpc withSubnets(Collection<String> subnets)
Specifies the subnets associated with the stream. These subnets must all be in the same VPC. You can specify as many as 16 subnets.
subnets
- Specifies the subnets associated with the stream. These subnets must all be in the same VPC. You can
specify as many as 16 subnets.public String toString()
toString
in class Object
Object.toString()
public SelfManagedKafkaAccessConfigurationVpc clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.