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 |
requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
Add an optional request override configuration.
|
BundleInstanceRequest.Builder |
requestOverrideConfig(Consumer<AwsRequestOverrideConfig.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
requestOverrideConfig
copy
apply, 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 requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
AwsRequest.Builder
requestOverrideConfig
in interface AwsRequest.Builder
awsRequestOverrideConfig
- The override configuration.BundleInstanceRequest.Builder requestOverrideConfig(Consumer<AwsRequestOverrideConfig.Builder> builderConsumer)
AwsRequest.Builder
requestOverrideConfig
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfig.Builder
will be given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.