Interface EnableSnapshotBlockPublicAccessRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<EnableSnapshotBlockPublicAccessRequest.Builder,EnableSnapshotBlockPublicAccessRequest>,Ec2Request.Builder,SdkBuilder<EnableSnapshotBlockPublicAccessRequest.Builder,EnableSnapshotBlockPublicAccessRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- EnableSnapshotBlockPublicAccessRequest
@Mutable @NotThreadSafe 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.BuilderdryRun(Boolean dryRun)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.EnableSnapshotBlockPublicAccessRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)EnableSnapshotBlockPublicAccessRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)EnableSnapshotBlockPublicAccessRequest.Builderstate(String state)The mode in which to enable block public access for snapshots for the Region.EnableSnapshotBlockPublicAccessRequest.Builderstate(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, sdkFieldNameToField, 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. -
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.
unblockedis 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. -
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.
unblockedis 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. -
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.
unblockedis 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. -
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.
unblockedis 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:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
EnableSnapshotBlockPublicAccessRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-