Interface CreateSnapshotScheduleActionParameters.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CreateSnapshotScheduleActionParameters.Builder,CreateSnapshotScheduleActionParameters>,SdkBuilder<CreateSnapshotScheduleActionParameters.Builder,CreateSnapshotScheduleActionParameters>,SdkPojo
- Enclosing class:
- CreateSnapshotScheduleActionParameters
public static interface CreateSnapshotScheduleActionParameters.Builder extends SdkPojo, CopyableBuilder<CreateSnapshotScheduleActionParameters.Builder,CreateSnapshotScheduleActionParameters>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateSnapshotScheduleActionParameters.BuildernamespaceName(String namespaceName)The name of the namespace for which you want to configure a scheduled action to create a snapshot.CreateSnapshotScheduleActionParameters.BuilderretentionPeriod(Integer retentionPeriod)The retention period of the snapshot created by the scheduled action.CreateSnapshotScheduleActionParameters.BuildersnapshotNamePrefix(String snapshotNamePrefix)A string prefix that is attached to the name of the snapshot created by the scheduled action.CreateSnapshotScheduleActionParameters.Buildertags(Collection<Tag> tags)An array of Tag objects to associate with the snapshot.CreateSnapshotScheduleActionParameters.Buildertags(Consumer<Tag.Builder>... tags)An array of Tag objects to associate with the snapshot.CreateSnapshotScheduleActionParameters.Buildertags(Tag... tags)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, sdkFields
-
-
-
-
Method Detail
-
namespaceName
CreateSnapshotScheduleActionParameters.Builder namespaceName(String 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
CreateSnapshotScheduleActionParameters.Builder retentionPeriod(Integer 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
CreateSnapshotScheduleActionParameters.Builder snapshotNamePrefix(String 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
CreateSnapshotScheduleActionParameters.Builder tags(Collection<Tag> 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
CreateSnapshotScheduleActionParameters.Builder tags(Tag... 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
CreateSnapshotScheduleActionParameters.Builder tags(Consumer<Tag.Builder>... tags)
An array of Tag objects to associate with the snapshot.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - 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:
#tags(java.util.Collection)
-
-