Interface EnableImageBlockPublicAccessRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<EnableImageBlockPublicAccessRequest.Builder,EnableImageBlockPublicAccessRequest>
,Ec2Request.Builder
,SdkBuilder<EnableImageBlockPublicAccessRequest.Builder,EnableImageBlockPublicAccessRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- EnableImageBlockPublicAccessRequest
public static interface EnableImageBlockPublicAccessRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<EnableImageBlockPublicAccessRequest.Builder,EnableImageBlockPublicAccessRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EnableImageBlockPublicAccessRequest.Builder
dryRun(Boolean dryRun)
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.EnableImageBlockPublicAccessRequest.Builder
imageBlockPublicAccessState(String imageBlockPublicAccessState)
Specifyblock-new-sharing
to enable block public access for AMIs at the account level in the specified Region.EnableImageBlockPublicAccessRequest.Builder
imageBlockPublicAccessState(ImageBlockPublicAccessEnabledState imageBlockPublicAccessState)
Specifyblock-new-sharing
to enable block public access for AMIs at the account level in the specified Region.EnableImageBlockPublicAccessRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
EnableImageBlockPublicAccessRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
-
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
-
imageBlockPublicAccessState
EnableImageBlockPublicAccessRequest.Builder imageBlockPublicAccessState(String imageBlockPublicAccessState)
Specify
block-new-sharing
to enable block public access for AMIs at the account level in the specified Region. This will block any attempt to publicly share your AMIs in the specified Region.- Parameters:
imageBlockPublicAccessState
- Specifyblock-new-sharing
to enable block public access for AMIs at the account level in the specified Region. This will block any attempt to publicly share your AMIs in the specified Region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ImageBlockPublicAccessEnabledState
,ImageBlockPublicAccessEnabledState
-
imageBlockPublicAccessState
EnableImageBlockPublicAccessRequest.Builder imageBlockPublicAccessState(ImageBlockPublicAccessEnabledState imageBlockPublicAccessState)
Specify
block-new-sharing
to enable block public access for AMIs at the account level in the specified Region. This will block any attempt to publicly share your AMIs in the specified Region.- Parameters:
imageBlockPublicAccessState
- Specifyblock-new-sharing
to enable block public access for AMIs at the account level in the specified Region. This will block any attempt to publicly share your AMIs in the specified Region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ImageBlockPublicAccessEnabledState
,ImageBlockPublicAccessEnabledState
-
dryRun
EnableImageBlockPublicAccessRequest.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
EnableImageBlockPublicAccessRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
EnableImageBlockPublicAccessRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-