Interface EnableSnapshotBlockPublicAccessRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<EnableSnapshotBlockPublicAccessRequest.Builder,EnableSnapshotBlockPublicAccessRequest>
,Ec2Request.Builder
,SdkBuilder<EnableSnapshotBlockPublicAccessRequest.Builder,EnableSnapshotBlockPublicAccessRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- EnableSnapshotBlockPublicAccessRequest
public static interface EnableSnapshotBlockPublicAccessRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<EnableSnapshotBlockPublicAccessRequest.Builder,EnableSnapshotBlockPublicAccessRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EnableSnapshotBlockPublicAccessRequest.Builder
dryRun(Boolean dryRun)
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.EnableSnapshotBlockPublicAccessRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
EnableSnapshotBlockPublicAccessRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
EnableSnapshotBlockPublicAccessRequest.Builder
state(String state)
The mode in which to enable block public access for snapshots for the Region.EnableSnapshotBlockPublicAccessRequest.Builder
state(SnapshotBlockPublicAccessState state)
The mode in which to enable block public access for snapshots for the Region.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
state
EnableSnapshotBlockPublicAccessRequest.Builder state(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.- Parameters:
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.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SnapshotBlockPublicAccessState
,SnapshotBlockPublicAccessState
-
-
state
EnableSnapshotBlockPublicAccessRequest.Builder state(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.- Parameters:
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.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SnapshotBlockPublicAccessState
,SnapshotBlockPublicAccessState
-
-
dryRun
EnableSnapshotBlockPublicAccessRequest.Builder dryRun(Boolean dryRun)
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Parameters:
dryRun
- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
EnableSnapshotBlockPublicAccessRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
EnableSnapshotBlockPublicAccessRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-