com.amazonaws.services.ec2.model
Class Region

java.lang.Object
  extended by com.amazonaws.services.ec2.model.Region
All Implemented Interfaces:
java.io.Serializable

public class Region
extends java.lang.Object
implements java.io.Serializable

Describes a region.

See Also:
Serialized Form

Constructor Summary
Region()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getEndpoint()
          The region service endpoint.
 java.lang.String getRegionName()
          The name of the region.
 int hashCode()
           
 void setEndpoint(java.lang.String endpoint)
          The region service endpoint.
 void setRegionName(java.lang.String regionName)
          The name of the region.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Region withEndpoint(java.lang.String endpoint)
          The region service endpoint.
 Region withRegionName(java.lang.String regionName)
          The name of the region.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Region

public Region()
Method Detail

getRegionName

public java.lang.String getRegionName()
The name of the region.

Returns:
The name of the region.

setRegionName

public void setRegionName(java.lang.String regionName)
The name of the region.

Parameters:
regionName - The name of the region.

withRegionName

public Region withRegionName(java.lang.String regionName)
The name of the region.

Returns a reference to this object so that method calls can be chained together.

Parameters:
regionName - The name of the region.
Returns:
A reference to this updated object so that method calls can be chained together.

getEndpoint

public java.lang.String getEndpoint()
The region service endpoint.

Returns:
The region service endpoint.

setEndpoint

public void setEndpoint(java.lang.String endpoint)
The region service endpoint.

Parameters:
endpoint - The region service endpoint.

withEndpoint

public Region withEndpoint(java.lang.String endpoint)
The region service endpoint.

Returns a reference to this object so that method calls can be chained together.

Parameters:
endpoint - The region service endpoint.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.