@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() |
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, copyBaseTo, 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, withSdkRequestTimeoutpublic 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.
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.
SnapshotBlockPublicAccessStatepublic 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.
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.
SnapshotBlockPublicAccessStatepublic 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.
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.
SnapshotBlockPublicAccessStatepublic 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.
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.
SnapshotBlockPublicAccessStatepublic Request<EnableSnapshotBlockPublicAccessRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<EnableSnapshotBlockPublicAccessRequest>public String toString()
toString in class ObjectObject.toString()public EnableSnapshotBlockPublicAccessRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2023. All rights reserved.