@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VpcOptions extends Object implements Serializable, Cloneable, StructuredPojo
Options that specify the subnets and security groups for an OpenSearch Ingestion VPC endpoint.
Constructor and Description |
---|
VpcOptions() |
Modifier and Type | Method and Description |
---|---|
VpcOptions |
clone() |
boolean |
equals(Object obj) |
List<String> |
getSecurityGroupIds()
A list of security groups associated with the VPC endpoint.
|
List<String> |
getSubnetIds()
A list of subnet IDs associated with the VPC endpoint.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setSecurityGroupIds(Collection<String> securityGroupIds)
A list of security groups associated with the VPC endpoint.
|
void |
setSubnetIds(Collection<String> subnetIds)
A list of subnet IDs associated with the VPC endpoint.
|
String |
toString()
Returns a string representation of this object.
|
VpcOptions |
withSecurityGroupIds(Collection<String> securityGroupIds)
A list of security groups associated with the VPC endpoint.
|
VpcOptions |
withSecurityGroupIds(String... securityGroupIds)
A list of security groups associated with the VPC endpoint.
|
VpcOptions |
withSubnetIds(Collection<String> subnetIds)
A list of subnet IDs associated with the VPC endpoint.
|
VpcOptions |
withSubnetIds(String... subnetIds)
A list of subnet IDs associated with the VPC endpoint.
|
public List<String> getSubnetIds()
A list of subnet IDs associated with the VPC endpoint.
public void setSubnetIds(Collection<String> subnetIds)
A list of subnet IDs associated with the VPC endpoint.
subnetIds
- A list of subnet IDs associated with the VPC endpoint.public VpcOptions withSubnetIds(String... subnetIds)
A list of subnet IDs associated with the VPC endpoint.
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 subnet IDs associated with the VPC endpoint.public VpcOptions withSubnetIds(Collection<String> subnetIds)
A list of subnet IDs associated with the VPC endpoint.
subnetIds
- A list of subnet IDs associated with the VPC endpoint.public List<String> getSecurityGroupIds()
A list of security groups associated with the VPC endpoint.
public void setSecurityGroupIds(Collection<String> securityGroupIds)
A list of security groups associated with the VPC endpoint.
securityGroupIds
- A list of security groups associated with the VPC endpoint.public VpcOptions withSecurityGroupIds(String... securityGroupIds)
A list of security groups associated with the VPC endpoint.
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 security groups associated with the VPC endpoint.public VpcOptions withSecurityGroupIds(Collection<String> securityGroupIds)
A list of security groups associated with the VPC endpoint.
securityGroupIds
- A list of security groups associated with the VPC endpoint.public String toString()
toString
in class Object
Object.toString()
public VpcOptions clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.