Interface GetAutoSnapshotsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetAutoSnapshotsResponse.Builder,
,GetAutoSnapshotsResponse> LightsailResponse.Builder
,SdkBuilder<GetAutoSnapshotsResponse.Builder,
,GetAutoSnapshotsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetAutoSnapshotsResponse
public static interface GetAutoSnapshotsResponse.Builder
extends LightsailResponse.Builder, SdkPojo, CopyableBuilder<GetAutoSnapshotsResponse.Builder,GetAutoSnapshotsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionautoSnapshots
(Collection<AutoSnapshotDetails> autoSnapshots) An array of objects that describe the automatic snapshots that are available for the specified source instance or disk.autoSnapshots
(Consumer<AutoSnapshotDetails.Builder>... autoSnapshots) An array of objects that describe the automatic snapshots that are available for the specified source instance or disk.autoSnapshots
(AutoSnapshotDetails... autoSnapshots) An array of objects that describe the automatic snapshots that are available for the specified source instance or disk.resourceName
(String resourceName) The name of the source instance or disk for the automatic snapshots.resourceType
(String resourceType) The resource type (e.g.,Instance
orDisk
).resourceType
(ResourceType resourceType) The resource type (e.g.,Instance
orDisk
).Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.lightsail.model.LightsailResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
resourceName
The name of the source instance or disk for the automatic snapshots.
- Parameters:
resourceName
- The name of the source instance or disk for the automatic snapshots.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceType
The resource type (e.g.,
Instance
orDisk
).- Parameters:
resourceType
- The resource type (e.g.,Instance
orDisk
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceType
The resource type (e.g.,
Instance
orDisk
).- Parameters:
resourceType
- The resource type (e.g.,Instance
orDisk
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
autoSnapshots
An array of objects that describe the automatic snapshots that are available for the specified source instance or disk.
- Parameters:
autoSnapshots
- An array of objects that describe the automatic snapshots that are available for the specified source instance or disk.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoSnapshots
An array of objects that describe the automatic snapshots that are available for the specified source instance or disk.
- Parameters:
autoSnapshots
- An array of objects that describe the automatic snapshots that are available for the specified source instance or disk.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoSnapshots
GetAutoSnapshotsResponse.Builder autoSnapshots(Consumer<AutoSnapshotDetails.Builder>... autoSnapshots) An array of objects that describe the automatic snapshots that are available for the specified source instance or disk.
This is a convenience method that creates an instance of theAutoSnapshotDetails.Builder
avoiding the need to create one manually viaAutoSnapshotDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toautoSnapshots(List<AutoSnapshotDetails>)
.- Parameters:
autoSnapshots
- a consumer that will call methods onAutoSnapshotDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-