public class Distribution
extends java.lang.Object
implements java.io.Serializable
Information about a traffic distribution.
| Constructor and Description |
|---|
Distribution() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getPercentage()
The percentage of the traffic that is distributed, in increments of 10.
|
java.lang.String |
getRegion()
The Amazon Web Services Region where the traffic is distributed.
|
int |
hashCode() |
void |
setPercentage(java.lang.Integer percentage)
The percentage of the traffic that is distributed, in increments of 10.
|
void |
setRegion(java.lang.String region)
The Amazon Web Services Region where the traffic is distributed.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Distribution |
withPercentage(java.lang.Integer percentage)
The percentage of the traffic that is distributed, in increments of 10.
|
Distribution |
withRegion(java.lang.String region)
The Amazon Web Services Region where the traffic is distributed.
|
public java.lang.String getRegion()
The Amazon Web Services Region where the traffic is distributed.
Constraints:
Length: 8 - 31
Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
The Amazon Web Services Region where the traffic is distributed.
public void setRegion(java.lang.String region)
The Amazon Web Services Region where the traffic is distributed.
Constraints:
Length: 8 - 31
Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
region - The Amazon Web Services Region where the traffic is distributed.
public Distribution withRegion(java.lang.String region)
The Amazon Web Services Region where the traffic is distributed.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 8 - 31
Pattern: [a-z]{2}(-[a-z]+){1,2}(-[0-9])?
region - The Amazon Web Services Region where the traffic is distributed.
public java.lang.Integer getPercentage()
The percentage of the traffic that is distributed, in increments of 10.
Constraints:
Range: 0 - 100
The percentage of the traffic that is distributed, in increments of 10.
public void setPercentage(java.lang.Integer percentage)
The percentage of the traffic that is distributed, in increments of 10.
Constraints:
Range: 0 - 100
percentage - The percentage of the traffic that is distributed, in increments of 10.
public Distribution withPercentage(java.lang.Integer percentage)
The percentage of the traffic that is distributed, in increments of 10.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 - 100
percentage - The percentage of the traffic that is distributed, in increments of 10.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object