@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, setSdkResponseMetadata
public 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.SnapshotBlockPublicAccessState
public 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.SnapshotBlockPublicAccessState
public 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.SnapshotBlockPublicAccessState
public 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.SnapshotBlockPublicAccessState
public String toString()
toString
in class Object
Object.toString()
public EnableSnapshotBlockPublicAccessResult clone()