public static interface CreateInstanceSnapshotRequest.Builder extends LightsailRequest.Builder, SdkPojo, CopyableBuilder<CreateInstanceSnapshotRequest.Builder,CreateInstanceSnapshotRequest>
Modifier and Type | Method and Description |
---|---|
CreateInstanceSnapshotRequest.Builder |
instanceName(String instanceName)
The Lightsail instance on which to base your snapshot.
|
CreateInstanceSnapshotRequest.Builder |
instanceSnapshotName(String instanceSnapshotName)
The name for your new snapshot.
|
CreateInstanceSnapshotRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
CreateInstanceSnapshotRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
CreateInstanceSnapshotRequest.Builder |
tags(Collection<Tag> tags)
The tag keys and optional values to add to the resource during create.
|
CreateInstanceSnapshotRequest.Builder |
tags(Consumer<Tag.Builder>... tags)
The tag keys and optional values to add to the resource during create.
|
CreateInstanceSnapshotRequest.Builder |
tags(Tag... tags)
The tag keys and optional values to add to the resource during create.
|
build
overrideConfiguration
copy
applyMutation, build
CreateInstanceSnapshotRequest.Builder instanceSnapshotName(String instanceSnapshotName)
The name for your new snapshot.
instanceSnapshotName
- The name for your new snapshot.CreateInstanceSnapshotRequest.Builder instanceName(String instanceName)
The Lightsail instance on which to base your snapshot.
instanceName
- The Lightsail instance on which to base your snapshot.CreateInstanceSnapshotRequest.Builder tags(Collection<Tag> tags)
The tag keys and optional values to add to the resource during create.
To tag a resource after it has been created, see the tag resource
operation.
tags
- The tag keys and optional values to add to the resource during create.
To tag a resource after it has been created, see the tag resource
operation.
CreateInstanceSnapshotRequest.Builder tags(Tag... tags)
The tag keys and optional values to add to the resource during create.
To tag a resource after it has been created, see the tag resource
operation.
tags
- The tag keys and optional values to add to the resource during create.
To tag a resource after it has been created, see the tag resource
operation.
CreateInstanceSnapshotRequest.Builder tags(Consumer<Tag.Builder>... tags)
The tag keys and optional values to add to the resource during create.
To tag a resource after it has been created, see the tag resource
operation.
List.Builder
avoiding the need to create
one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its result
is passed to #tags(List)
.tags
- a consumer that will call methods on List.Builder
#tags(List)
CreateInstanceSnapshotRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.CreateInstanceSnapshotRequest.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.