Interface CreateRestoreImageTaskRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateRestoreImageTaskRequest.Builder,CreateRestoreImageTaskRequest>
,Ec2Request.Builder
,SdkBuilder<CreateRestoreImageTaskRequest.Builder,CreateRestoreImageTaskRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- CreateRestoreImageTaskRequest
public static interface CreateRestoreImageTaskRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<CreateRestoreImageTaskRequest.Builder,CreateRestoreImageTaskRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateRestoreImageTaskRequest.Builder
bucket(String bucket)
The name of the Amazon S3 bucket that contains the stored AMI object.CreateRestoreImageTaskRequest.Builder
dryRun(Boolean dryRun)
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.CreateRestoreImageTaskRequest.Builder
name(String name)
The name for the restored AMI.CreateRestoreImageTaskRequest.Builder
objectKey(String objectKey)
The name of the stored AMI object in the bucket.CreateRestoreImageTaskRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
CreateRestoreImageTaskRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
CreateRestoreImageTaskRequest.Builder
tagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the AMI and snapshots on restoration.CreateRestoreImageTaskRequest.Builder
tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications)
The tags to apply to the AMI and snapshots on restoration.CreateRestoreImageTaskRequest.Builder
tagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the AMI and snapshots on restoration.-
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
-
bucket
CreateRestoreImageTaskRequest.Builder bucket(String bucket)
The name of the Amazon S3 bucket that contains the stored AMI object.
- Parameters:
bucket
- The name of the Amazon S3 bucket that contains the stored AMI object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
objectKey
CreateRestoreImageTaskRequest.Builder objectKey(String objectKey)
The name of the stored AMI object in the bucket.
- Parameters:
objectKey
- The name of the stored AMI object in the bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
CreateRestoreImageTaskRequest.Builder name(String name)
The name for the restored AMI. The name must be unique for AMIs in the Region for this account. If you do not provide a name, the new AMI gets the same name as the original AMI.
- Parameters:
name
- The name for the restored AMI. The name must be unique for AMIs in the Region for this account. If you do not provide a name, the new AMI gets the same name as the original AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
CreateRestoreImageTaskRequest.Builder tagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the AMI and snapshots on restoration. You can tag the AMI, the snapshots, or both.
-
To tag the AMI, the value for
ResourceType
must beimage
. -
To tag the snapshots, the value for
ResourceType
must besnapshot
. The same tag is applied to all of the snapshots that are created.
- Parameters:
tagSpecifications
- The tags to apply to the AMI and snapshots on restoration. You can tag the AMI, the snapshots, or both.-
To tag the AMI, the value for
ResourceType
must beimage
. -
To tag the snapshots, the value for
ResourceType
must besnapshot
. The same tag is applied to all of the snapshots that are created.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
tagSpecifications
CreateRestoreImageTaskRequest.Builder tagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the AMI and snapshots on restoration. You can tag the AMI, the snapshots, or both.
-
To tag the AMI, the value for
ResourceType
must beimage
. -
To tag the snapshots, the value for
ResourceType
must besnapshot
. The same tag is applied to all of the snapshots that are created.
- Parameters:
tagSpecifications
- The tags to apply to the AMI and snapshots on restoration. You can tag the AMI, the snapshots, or both.-
To tag the AMI, the value for
ResourceType
must beimage
. -
To tag the snapshots, the value for
ResourceType
must besnapshot
. The same tag is applied to all of the snapshots that are created.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
tagSpecifications
CreateRestoreImageTaskRequest.Builder tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications)
The tags to apply to the AMI and snapshots on restoration. You can tag the AMI, the snapshots, or both.
-
To tag the AMI, the value for
ResourceType
must beimage
. -
To tag the snapshots, the value for
ResourceType
must besnapshot
. The same tag is applied to all of the snapshots that are created.
TagSpecification.Builder
avoiding the need to create one manually viaTagSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#tagSpecifications(List
.) - Parameters:
tagSpecifications
- a consumer that will call methods onTagSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tagSpecifications(java.util.Collection
)
-
-
dryRun
CreateRestoreImageTaskRequest.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
CreateRestoreImageTaskRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
CreateRestoreImageTaskRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-