Interface CreateSnapshotScheduleActionParameters.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CreateSnapshotScheduleActionParameters.Builder,
,CreateSnapshotScheduleActionParameters> SdkBuilder<CreateSnapshotScheduleActionParameters.Builder,
,CreateSnapshotScheduleActionParameters> SdkPojo
- Enclosing class:
CreateSnapshotScheduleActionParameters
@Mutable
@NotThreadSafe
public static interface CreateSnapshotScheduleActionParameters.Builder
extends SdkPojo, CopyableBuilder<CreateSnapshotScheduleActionParameters.Builder,CreateSnapshotScheduleActionParameters>
-
Method Summary
Modifier and TypeMethodDescriptionnamespaceName
(String namespaceName) The name of the namespace for which you want to configure a scheduled action to create a snapshot.retentionPeriod
(Integer retentionPeriod) The retention period of the snapshot created by the scheduled action.snapshotNamePrefix
(String snapshotNamePrefix) A string prefix that is attached to the name of the snapshot created by the scheduled action.tags
(Collection<Tag> tags) An array of Tag objects to associate with the snapshot.tags
(Consumer<Tag.Builder>... tags) An array of Tag objects to associate with the snapshot.An array of Tag objects to associate with the snapshot.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
namespaceName
The name of the namespace for which you want to configure a scheduled action to create a snapshot.
- Parameters:
namespaceName
- The name of the namespace for which you want to configure a scheduled action to create a snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retentionPeriod
The retention period of the snapshot created by the scheduled action.
- Parameters:
retentionPeriod
- The retention period of the snapshot created by the scheduled action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotNamePrefix
A string prefix that is attached to the name of the snapshot created by the scheduled action. The final name of the snapshot is the string prefix appended by the date and time of when the snapshot was created.
- Parameters:
snapshotNamePrefix
- A string prefix that is attached to the name of the snapshot created by the scheduled action. The final name of the snapshot is the string prefix appended by the date and time of when the snapshot was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
An array of Tag objects to associate with the snapshot.
- Parameters:
tags
- An array of Tag objects to associate with the snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
An array of Tag objects to associate with the snapshot.
- Parameters:
tags
- An array of Tag objects to associate with the snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
An array of Tag objects to associate with the snapshot.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-