@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EnableSnapshotBlockPublicAccessResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
| Constructor and Description |
|---|
EnableSnapshotBlockPublicAccessResult() |
| Modifier and Type | Method and Description |
|---|---|
EnableSnapshotBlockPublicAccessResult |
clone() |
boolean |
equals(Object obj) |
String |
getState()
The state of block public access for snapshots for the account and Region.
|
int |
hashCode() |
void |
setState(String state)
The state of block public access for snapshots for the account and Region.
|
String |
toString()
Returns a string representation of this object.
|
EnableSnapshotBlockPublicAccessResult |
withState(SnapshotBlockPublicAccessState state)
The state of block public access for snapshots for the account and Region.
|
EnableSnapshotBlockPublicAccessResult |
withState(String state)
The state of block public access for snapshots for the account and Region.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadatapublic EnableSnapshotBlockPublicAccessResult()
public void setState(String state)
The state of block public access for snapshots for the account and Region. Returns either
block-all-sharing or block-new-sharing if the request succeeds.
state - The state of block public access for snapshots for the account and Region. Returns either
block-all-sharing or block-new-sharing if the request succeeds.SnapshotBlockPublicAccessStatepublic String getState()
The state of block public access for snapshots for the account and Region. Returns either
block-all-sharing or block-new-sharing if the request succeeds.
block-all-sharing or block-new-sharing if the request succeeds.SnapshotBlockPublicAccessStatepublic EnableSnapshotBlockPublicAccessResult withState(String state)
The state of block public access for snapshots for the account and Region. Returns either
block-all-sharing or block-new-sharing if the request succeeds.
state - The state of block public access for snapshots for the account and Region. Returns either
block-all-sharing or block-new-sharing if the request succeeds.SnapshotBlockPublicAccessStatepublic EnableSnapshotBlockPublicAccessResult withState(SnapshotBlockPublicAccessState state)
The state of block public access for snapshots for the account and Region. Returns either
block-all-sharing or block-new-sharing if the request succeeds.
state - The state of block public access for snapshots for the account and Region. Returns either
block-all-sharing or block-new-sharing if the request succeeds.SnapshotBlockPublicAccessStatepublic String toString()
toString in class ObjectObject.toString()public EnableSnapshotBlockPublicAccessResult clone()