@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SourceIpConfig extends Object implements Serializable, Cloneable, StructuredPojo
A list of IP address ranges (CIDRs). Used to create an allow list of IP addresses for a private workforce. For more information, see .
Constructor and Description |
---|
SourceIpConfig() |
Modifier and Type | Method and Description |
---|---|
SourceIpConfig |
clone() |
boolean |
equals(Object obj) |
List<String> |
getCidrs()
A list of one to four Classless
Inter-Domain Routing (CIDR) values.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCidrs(Collection<String> cidrs)
A list of one to four Classless
Inter-Domain Routing (CIDR) values.
|
String |
toString()
Returns a string representation of this object.
|
SourceIpConfig |
withCidrs(Collection<String> cidrs)
A list of one to four Classless
Inter-Domain Routing (CIDR) values.
|
SourceIpConfig |
withCidrs(String... cidrs)
A list of one to four Classless
Inter-Domain Routing (CIDR) values.
|
public List<String> getCidrs()
A list of one to four Classless Inter-Domain Routing (CIDR) values.
Maximum: Four CIDR values
The following Length Constraints apply to individual CIDR values in the CIDR value list.
Maximum: Four CIDR values
The following Length Constraints apply to individual CIDR values in the CIDR value list.
public void setCidrs(Collection<String> cidrs)
A list of one to four Classless Inter-Domain Routing (CIDR) values.
Maximum: Four CIDR values
The following Length Constraints apply to individual CIDR values in the CIDR value list.
cidrs
- A list of one to four Classless Inter-Domain
Routing (CIDR) values.
Maximum: Four CIDR values
The following Length Constraints apply to individual CIDR values in the CIDR value list.
public SourceIpConfig withCidrs(String... cidrs)
A list of one to four Classless Inter-Domain Routing (CIDR) values.
Maximum: Four CIDR values
The following Length Constraints apply to individual CIDR values in the CIDR value list.
NOTE: This method appends the values to the existing list (if any). Use
setCidrs(java.util.Collection)
or withCidrs(java.util.Collection)
if you want to override the
existing values.
cidrs
- A list of one to four Classless Inter-Domain
Routing (CIDR) values.
Maximum: Four CIDR values
The following Length Constraints apply to individual CIDR values in the CIDR value list.
public SourceIpConfig withCidrs(Collection<String> cidrs)
A list of one to four Classless Inter-Domain Routing (CIDR) values.
Maximum: Four CIDR values
The following Length Constraints apply to individual CIDR values in the CIDR value list.
cidrs
- A list of one to four Classless Inter-Domain
Routing (CIDR) values.
Maximum: Four CIDR values
The following Length Constraints apply to individual CIDR values in the CIDR value list.
public String toString()
toString
in class Object
Object.toString()
public SourceIpConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.