public static interface BundleInstanceRequest.Builder extends Ec2Request.Builder, CopyableBuilder<BundleInstanceRequest.Builder,BundleInstanceRequest>
Modifier and Type | Method and Description |
---|---|
BundleInstanceRequest.Builder |
instanceId(String instanceId)
The ID of the instance to bundle.
|
BundleInstanceRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
BundleInstanceRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
default BundleInstanceRequest.Builder |
storage(Consumer<Storage.Builder> storage)
The bucket in which to store the AMI.
|
BundleInstanceRequest.Builder |
storage(Storage storage)
The bucket in which to store the AMI.
|
build
overrideConfiguration
copy
applyMutation, build
BundleInstanceRequest.Builder instanceId(String instanceId)
The ID of the instance to bundle.
Type: String
Default: None
Required: Yes
instanceId
- The ID of the instance to bundle.
Type: String
Default: None
Required: Yes
BundleInstanceRequest.Builder storage(Storage storage)
The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.
storage
- The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket
that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon
EC2 returns an error.default BundleInstanceRequest.Builder storage(Consumer<Storage.Builder> storage)
The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.
This is a convenience that creates an instance of theStorage.Builder
avoiding the need to create one
manually via Storage.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to storage(Storage)
.storage
- a consumer that will call methods on Storage.Builder
storage(Storage)
BundleInstanceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.BundleInstanceRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.