public class Region extends Object implements Serializable
Represents an Amazon EC2 region. EC2 regions are completely isolated from each other.
| Constructor and Description |
|---|
Region() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getEndpoint()
Region service endpoint.
|
String |
getRegionName()
Name of the region.
|
int |
hashCode() |
void |
setEndpoint(String endpoint)
Region service endpoint.
|
void |
setRegionName(String regionName)
Name of the region.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Region |
withEndpoint(String endpoint)
Region service endpoint.
|
Region |
withRegionName(String regionName)
Name of the region.
|
public String getRegionName()
public void setRegionName(String regionName)
regionName - Name of the region.public Region withRegionName(String regionName)
Returns a reference to this object so that method calls can be chained together.
regionName - Name of the region.public String getEndpoint()
public void setEndpoint(String endpoint)
endpoint - Region service endpoint.public Region withEndpoint(String endpoint)
Returns a reference to this object so that method calls can be chained together.
endpoint - Region service endpoint.public String toString()
toString in class ObjectObject.toString()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.