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 Details

    • 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:
    • 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:
    • 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 is UnauthorizedOperation.

      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 is DryRunOperation. Otherwise, it is UnauthorizedOperation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.