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 Regionclone()booleanequals(Object obj)StringgetEndpoint()The region service endpoint.StringgetRegionName()The name of the region.inthashCode()voidsetEndpoint(String endpoint)The region service endpoint.voidsetRegionName(String regionName)The name of the region.StringtoString()Returns a string representation of this object; useful for testing and debugging.RegionwithEndpoint(String endpoint)The region service endpoint.RegionwithRegionName(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-