@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EnableSnapshotBlockPublicAccessRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<EnableSnapshotBlockPublicAccessRequest>
NOOP
Constructor and Description |
---|
EnableSnapshotBlockPublicAccessRequest() |
Modifier and Type | Method and Description |
---|---|
EnableSnapshotBlockPublicAccessRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Request<EnableSnapshotBlockPublicAccessRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getState()
The mode in which to enable block public access for snapshots for the Region.
|
int |
hashCode() |
void |
setState(String state)
The mode in which to enable block public access for snapshots for the Region.
|
String |
toString()
Returns a string representation of this object.
|
EnableSnapshotBlockPublicAccessRequest |
withState(SnapshotBlockPublicAccessState state)
The mode in which to enable block public access for snapshots for the Region.
|
EnableSnapshotBlockPublicAccessRequest |
withState(String state)
The mode in which to enable block public access for snapshots for the Region.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public EnableSnapshotBlockPublicAccessRequest()
public void setState(String state)
The mode in which to enable block public access for snapshots for the Region. Specify one of the following values:
block-all-sharing
- Prevents all public sharing of snapshots in the Region. Users in the account
will no longer be able to request new public sharing. Additionally, snapshots that are already publicly shared
are treated as private and they are no longer publicly available.
If you enable block public access for snapshots in block-all-sharing
mode, it does not change the
permissions for snapshots that are already publicly shared. Instead, it prevents these snapshots from be publicly
visible and publicly accessible. Therefore, the attributes for these snapshots still indicate that they are
publicly shared, even though they are not publicly available.
block-new-sharing
- Prevents only new public sharing of snapshots in the Region. Users in the
account will no longer be able to request new public sharing. However, snapshots that are already publicly
shared, remain publicly available.
unblocked
is not a valid value for EnableSnapshotBlockPublicAccess.
state
- The mode in which to enable block public access for snapshots for the Region. Specify one of the following
values:
block-all-sharing
- Prevents all public sharing of snapshots in the Region. Users in the
account will no longer be able to request new public sharing. Additionally, snapshots that are already
publicly shared are treated as private and they are no longer publicly available.
If you enable block public access for snapshots in block-all-sharing
mode, it does not change
the permissions for snapshots that are already publicly shared. Instead, it prevents these snapshots from
be publicly visible and publicly accessible. Therefore, the attributes for these snapshots still indicate
that they are publicly shared, even though they are not publicly available.
block-new-sharing
- Prevents only new public sharing of snapshots in the Region. Users in the
account will no longer be able to request new public sharing. However, snapshots that are already publicly
shared, remain publicly available.
unblocked
is not a valid value for EnableSnapshotBlockPublicAccess.
SnapshotBlockPublicAccessState
public String getState()
The mode in which to enable block public access for snapshots for the Region. Specify one of the following values:
block-all-sharing
- Prevents all public sharing of snapshots in the Region. Users in the account
will no longer be able to request new public sharing. Additionally, snapshots that are already publicly shared
are treated as private and they are no longer publicly available.
If you enable block public access for snapshots in block-all-sharing
mode, it does not change the
permissions for snapshots that are already publicly shared. Instead, it prevents these snapshots from be publicly
visible and publicly accessible. Therefore, the attributes for these snapshots still indicate that they are
publicly shared, even though they are not publicly available.
block-new-sharing
- Prevents only new public sharing of snapshots in the Region. Users in the
account will no longer be able to request new public sharing. However, snapshots that are already publicly
shared, remain publicly available.
unblocked
is not a valid value for EnableSnapshotBlockPublicAccess.
block-all-sharing
- Prevents all public sharing of snapshots in the Region. Users in the
account will no longer be able to request new public sharing. Additionally, snapshots that are already
publicly shared are treated as private and they are no longer publicly available.
If you enable block public access for snapshots in block-all-sharing
mode, it does not
change the permissions for snapshots that are already publicly shared. Instead, it prevents these
snapshots from be publicly visible and publicly accessible. Therefore, the attributes for these snapshots
still indicate that they are publicly shared, even though they are not publicly available.
block-new-sharing
- Prevents only new public sharing of snapshots in the Region. Users in
the account will no longer be able to request new public sharing. However, snapshots that are already
publicly shared, remain publicly available.
unblocked
is not a valid value for EnableSnapshotBlockPublicAccess.
SnapshotBlockPublicAccessState
public EnableSnapshotBlockPublicAccessRequest withState(String state)
The mode in which to enable block public access for snapshots for the Region. Specify one of the following values:
block-all-sharing
- Prevents all public sharing of snapshots in the Region. Users in the account
will no longer be able to request new public sharing. Additionally, snapshots that are already publicly shared
are treated as private and they are no longer publicly available.
If you enable block public access for snapshots in block-all-sharing
mode, it does not change the
permissions for snapshots that are already publicly shared. Instead, it prevents these snapshots from be publicly
visible and publicly accessible. Therefore, the attributes for these snapshots still indicate that they are
publicly shared, even though they are not publicly available.
block-new-sharing
- Prevents only new public sharing of snapshots in the Region. Users in the
account will no longer be able to request new public sharing. However, snapshots that are already publicly
shared, remain publicly available.
unblocked
is not a valid value for EnableSnapshotBlockPublicAccess.
state
- The mode in which to enable block public access for snapshots for the Region. Specify one of the following
values:
block-all-sharing
- Prevents all public sharing of snapshots in the Region. Users in the
account will no longer be able to request new public sharing. Additionally, snapshots that are already
publicly shared are treated as private and they are no longer publicly available.
If you enable block public access for snapshots in block-all-sharing
mode, it does not change
the permissions for snapshots that are already publicly shared. Instead, it prevents these snapshots from
be publicly visible and publicly accessible. Therefore, the attributes for these snapshots still indicate
that they are publicly shared, even though they are not publicly available.
block-new-sharing
- Prevents only new public sharing of snapshots in the Region. Users in the
account will no longer be able to request new public sharing. However, snapshots that are already publicly
shared, remain publicly available.
unblocked
is not a valid value for EnableSnapshotBlockPublicAccess.
SnapshotBlockPublicAccessState
public EnableSnapshotBlockPublicAccessRequest withState(SnapshotBlockPublicAccessState state)
The mode in which to enable block public access for snapshots for the Region. Specify one of the following values:
block-all-sharing
- Prevents all public sharing of snapshots in the Region. Users in the account
will no longer be able to request new public sharing. Additionally, snapshots that are already publicly shared
are treated as private and they are no longer publicly available.
If you enable block public access for snapshots in block-all-sharing
mode, it does not change the
permissions for snapshots that are already publicly shared. Instead, it prevents these snapshots from be publicly
visible and publicly accessible. Therefore, the attributes for these snapshots still indicate that they are
publicly shared, even though they are not publicly available.
block-new-sharing
- Prevents only new public sharing of snapshots in the Region. Users in the
account will no longer be able to request new public sharing. However, snapshots that are already publicly
shared, remain publicly available.
unblocked
is not a valid value for EnableSnapshotBlockPublicAccess.
state
- The mode in which to enable block public access for snapshots for the Region. Specify one of the following
values:
block-all-sharing
- Prevents all public sharing of snapshots in the Region. Users in the
account will no longer be able to request new public sharing. Additionally, snapshots that are already
publicly shared are treated as private and they are no longer publicly available.
If you enable block public access for snapshots in block-all-sharing
mode, it does not change
the permissions for snapshots that are already publicly shared. Instead, it prevents these snapshots from
be publicly visible and publicly accessible. Therefore, the attributes for these snapshots still indicate
that they are publicly shared, even though they are not publicly available.
block-new-sharing
- Prevents only new public sharing of snapshots in the Region. Users in the
account will no longer be able to request new public sharing. However, snapshots that are already publicly
shared, remain publicly available.
unblocked
is not a valid value for EnableSnapshotBlockPublicAccess.
SnapshotBlockPublicAccessState
public Request<EnableSnapshotBlockPublicAccessRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<EnableSnapshotBlockPublicAccessRequest>
public String toString()
toString
in class Object
Object.toString()
public EnableSnapshotBlockPublicAccessRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()