Package com.amazonaws.services.ec2.model
Class Region
- java.lang.Object
-
- com.amazonaws.services.ec2.model.Region
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Region extends Object implements Serializable, Cloneable
Describes a region.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Region()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Region
clone()
boolean
equals(Object obj)
String
getEndpoint()
The region service endpoint.String
getRegionName()
The name of the region.int
hashCode()
void
setEndpoint(String endpoint)
The region service endpoint.void
setRegionName(String regionName)
The name of the region.String
toString()
Returns a string representation of this object; useful for testing and debugging.Region
withEndpoint(String endpoint)
The region service endpoint.Region
withRegionName(String regionName)
The name of the region.
-
-
-
Method Detail
-
setRegionName
public void setRegionName(String regionName)
The name of the region.
- Parameters:
regionName
- The name of the region.
-
getRegionName
public String getRegionName()
The name of the region.
- Returns:
- The name of the region.
-
withRegionName
public Region withRegionName(String regionName)
The name of the region.
- Parameters:
regionName
- The name of the region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEndpoint
public void setEndpoint(String endpoint)
The region service endpoint.
- Parameters:
endpoint
- The region service endpoint.
-
getEndpoint
public String getEndpoint()
The region service endpoint.
- Returns:
- The region service endpoint.
-
withEndpoint
public Region withEndpoint(String endpoint)
The region service endpoint.
- Parameters:
endpoint
- The region service endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-