@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SourceIpConditionConfig extends Object implements Serializable, Cloneable
Information about a source IP condition.
You can use this condition to route based on the IP address of the source that connects to the load balancer. If a client is behind a proxy, this is the IP address of the proxy not the IP address of the client.
Constructor and Description |
---|
SourceIpConditionConfig() |
Modifier and Type | Method and Description |
---|---|
SourceIpConditionConfig |
clone() |
boolean |
equals(Object obj) |
List<String> |
getValues()
One or more source IP addresses, in CIDR format.
|
int |
hashCode() |
void |
setValues(Collection<String> values)
One or more source IP addresses, in CIDR format.
|
String |
toString()
Returns a string representation of this object.
|
SourceIpConditionConfig |
withValues(Collection<String> values)
One or more source IP addresses, in CIDR format.
|
SourceIpConditionConfig |
withValues(String... values)
One or more source IP addresses, in CIDR format.
|
public List<String> getValues()
One or more source IP addresses, in CIDR format. You can use both IPv4 and IPv6 addresses. Wildcards are not supported.
If you specify multiple addresses, the condition is satisfied if the source IP address of the request matches one of the CIDR blocks. This condition is not satisfied by the addresses in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For header, use HttpHeaderConditionConfig.
If you specify multiple addresses, the condition is satisfied if the source IP address of the request matches one of the CIDR blocks. This condition is not satisfied by the addresses in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For header, use HttpHeaderConditionConfig.
public void setValues(Collection<String> values)
One or more source IP addresses, in CIDR format. You can use both IPv4 and IPv6 addresses. Wildcards are not supported.
If you specify multiple addresses, the condition is satisfied if the source IP address of the request matches one of the CIDR blocks. This condition is not satisfied by the addresses in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For header, use HttpHeaderConditionConfig.
values
- One or more source IP addresses, in CIDR format. You can use both IPv4 and IPv6 addresses. Wildcards are
not supported.
If you specify multiple addresses, the condition is satisfied if the source IP address of the request matches one of the CIDR blocks. This condition is not satisfied by the addresses in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For header, use HttpHeaderConditionConfig.
public SourceIpConditionConfig withValues(String... values)
One or more source IP addresses, in CIDR format. You can use both IPv4 and IPv6 addresses. Wildcards are not supported.
If you specify multiple addresses, the condition is satisfied if the source IP address of the request matches one of the CIDR blocks. This condition is not satisfied by the addresses in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For header, use HttpHeaderConditionConfig.
NOTE: This method appends the values to the existing list (if any). Use
setValues(java.util.Collection)
or withValues(java.util.Collection)
if you want to override the
existing values.
values
- One or more source IP addresses, in CIDR format. You can use both IPv4 and IPv6 addresses. Wildcards are
not supported.
If you specify multiple addresses, the condition is satisfied if the source IP address of the request matches one of the CIDR blocks. This condition is not satisfied by the addresses in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For header, use HttpHeaderConditionConfig.
public SourceIpConditionConfig withValues(Collection<String> values)
One or more source IP addresses, in CIDR format. You can use both IPv4 and IPv6 addresses. Wildcards are not supported.
If you specify multiple addresses, the condition is satisfied if the source IP address of the request matches one of the CIDR blocks. This condition is not satisfied by the addresses in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For header, use HttpHeaderConditionConfig.
values
- One or more source IP addresses, in CIDR format. You can use both IPv4 and IPv6 addresses. Wildcards are
not supported.
If you specify multiple addresses, the condition is satisfied if the source IP address of the request matches one of the CIDR blocks. This condition is not satisfied by the addresses in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For header, use HttpHeaderConditionConfig.
public String toString()
toString
in class Object
Object.toString()
public SourceIpConditionConfig clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.