Interface CreateStoreImageTaskRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateStoreImageTaskRequest.Builder,,CreateStoreImageTaskRequest> Ec2Request.Builder,SdkBuilder<CreateStoreImageTaskRequest.Builder,,CreateStoreImageTaskRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateStoreImageTaskRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the Amazon S3 bucket in which the AMI object will be stored.Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.The ID of the AMI.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.s3ObjectTags(Collection<S3ObjectTag> s3ObjectTags) The tags to apply to the AMI object that will be stored in the Amazon S3 bucket.s3ObjectTags(Consumer<S3ObjectTag.Builder>... s3ObjectTags) The tags to apply to the AMI object that will be stored in the Amazon S3 bucket.s3ObjectTags(S3ObjectTag... s3ObjectTags) The tags to apply to the AMI object that will be stored in the Amazon S3 bucket.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
imageId
The ID of the AMI.
- Parameters:
imageId- The ID of the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bucket
The name of the Amazon S3 bucket in which the AMI object will be stored. The bucket must be in the Region in which the request is being made. The AMI object appears in the bucket only after the upload task has completed.
- Parameters:
bucket- The name of the Amazon S3 bucket in which the AMI object will be stored. The bucket must be in the Region in which the request is being made. The AMI object appears in the bucket only after the upload task has completed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
s3ObjectTags
The tags to apply to the AMI object that will be stored in the Amazon S3 bucket.
- Parameters:
s3ObjectTags- The tags to apply to the AMI object that will be stored in the Amazon S3 bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
s3ObjectTags
The tags to apply to the AMI object that will be stored in the Amazon S3 bucket.
- Parameters:
s3ObjectTags- The tags to apply to the AMI object that will be stored in the Amazon S3 bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
s3ObjectTags
The tags to apply to the AMI object that will be stored in the Amazon S3 bucket.
This is a convenience method that creates an instance of theS3ObjectTag.Builderavoiding the need to create one manually viaS3ObjectTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tos3ObjectTags(List<S3ObjectTag>).- Parameters:
s3ObjectTags- a consumer that will call methods onS3ObjectTag.Builder- 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 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
CreateStoreImageTaskRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateStoreImageTaskRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-