@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Region extends Object implements Serializable, Cloneable, StructuredPojo
This is a structure that expresses the Region for a given account, consisting of a name and opt-in status.
Constructor and Description |
---|
Region() |
Modifier and Type | Method and Description |
---|---|
Region |
clone() |
boolean |
equals(Object obj) |
String |
getRegionName()
The Region code of a given Region (for example,
us-east-1 ). |
String |
getRegionOptStatus()
One of potential statuses a Region can undergo (Enabled, Enabling, Disabled, Disabling, Enabled_By_Default).
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setRegionName(String regionName)
The Region code of a given Region (for example,
us-east-1 ). |
void |
setRegionOptStatus(String regionOptStatus)
One of potential statuses a Region can undergo (Enabled, Enabling, Disabled, Disabling, Enabled_By_Default).
|
String |
toString()
Returns a string representation of this object.
|
Region |
withRegionName(String regionName)
The Region code of a given Region (for example,
us-east-1 ). |
Region |
withRegionOptStatus(RegionOptStatus regionOptStatus)
One of potential statuses a Region can undergo (Enabled, Enabling, Disabled, Disabling, Enabled_By_Default).
|
Region |
withRegionOptStatus(String regionOptStatus)
One of potential statuses a Region can undergo (Enabled, Enabling, Disabled, Disabling, Enabled_By_Default).
|
public void setRegionName(String regionName)
The Region code of a given Region (for example, us-east-1
).
regionName
- The Region code of a given Region (for example, us-east-1
).public String getRegionName()
The Region code of a given Region (for example, us-east-1
).
us-east-1
).public Region withRegionName(String regionName)
The Region code of a given Region (for example, us-east-1
).
regionName
- The Region code of a given Region (for example, us-east-1
).public void setRegionOptStatus(String regionOptStatus)
One of potential statuses a Region can undergo (Enabled, Enabling, Disabled, Disabling, Enabled_By_Default).
regionOptStatus
- One of potential statuses a Region can undergo (Enabled, Enabling, Disabled, Disabling,
Enabled_By_Default).RegionOptStatus
public String getRegionOptStatus()
One of potential statuses a Region can undergo (Enabled, Enabling, Disabled, Disabling, Enabled_By_Default).
RegionOptStatus
public Region withRegionOptStatus(String regionOptStatus)
One of potential statuses a Region can undergo (Enabled, Enabling, Disabled, Disabling, Enabled_By_Default).
regionOptStatus
- One of potential statuses a Region can undergo (Enabled, Enabling, Disabled, Disabling,
Enabled_By_Default).RegionOptStatus
public Region withRegionOptStatus(RegionOptStatus regionOptStatus)
One of potential statuses a Region can undergo (Enabled, Enabling, Disabled, Disabling, Enabled_By_Default).
regionOptStatus
- One of potential statuses a Region can undergo (Enabled, Enabling, Disabled, Disabling,
Enabled_By_Default).RegionOptStatus
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.