public static final class CfnLifecyclePolicy.CreateRuleProperty.Builder
extends java.lang.Object
CfnLifecyclePolicy.CreateRuleProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnLifecyclePolicy.CreateRuleProperty |
build()
Builds the configured instance.
|
CfnLifecyclePolicy.CreateRuleProperty.Builder |
cronExpression(java.lang.String cronExpression)
Sets the value of
CfnLifecyclePolicy.CreateRuleProperty.getCronExpression() |
CfnLifecyclePolicy.CreateRuleProperty.Builder |
interval(java.lang.Number interval)
Sets the value of
CfnLifecyclePolicy.CreateRuleProperty.getInterval() |
CfnLifecyclePolicy.CreateRuleProperty.Builder |
intervalUnit(java.lang.String intervalUnit)
Sets the value of
CfnLifecyclePolicy.CreateRuleProperty.getIntervalUnit() |
CfnLifecyclePolicy.CreateRuleProperty.Builder |
location(java.lang.String location)
Sets the value of
CfnLifecyclePolicy.CreateRuleProperty.getLocation() |
CfnLifecyclePolicy.CreateRuleProperty.Builder |
times(java.util.List<java.lang.String> times)
Sets the value of
CfnLifecyclePolicy.CreateRuleProperty.getTimes() |
public CfnLifecyclePolicy.CreateRuleProperty.Builder cronExpression(java.lang.String cronExpression)
CfnLifecyclePolicy.CreateRuleProperty.getCronExpression()
cronExpression
- The schedule, as a Cron expression.
The schedule interval must be between 1 hour and 1 year. For more information, see Cron expressions in the Amazon CloudWatch User Guide .this
public CfnLifecyclePolicy.CreateRuleProperty.Builder interval(java.lang.Number interval)
CfnLifecyclePolicy.CreateRuleProperty.getInterval()
interval
- The interval between snapshots.
The supported values are 1, 2, 3, 4, 6, 8, 12, and 24.this
public CfnLifecyclePolicy.CreateRuleProperty.Builder intervalUnit(java.lang.String intervalUnit)
CfnLifecyclePolicy.CreateRuleProperty.getIntervalUnit()
intervalUnit
- The interval unit.this
public CfnLifecyclePolicy.CreateRuleProperty.Builder location(java.lang.String location)
CfnLifecyclePolicy.CreateRuleProperty.getLocation()
location
- Specifies the destination for snapshots created by the policy.
To create snapshots in the same Region as the source resource, specify CLOUD
. To create snapshots on the same Outpost as the source resource, specify OUTPOST_LOCAL
. If you omit this parameter, CLOUD
is used by default.
If the policy targets resources in an AWS Region , then you must create snapshots in the same Region as the source resource.
If the policy targets resources on an Outpost, then you can create snapshots on the same Outpost as the source resource, or in the Region of that Outpost.
this
public CfnLifecyclePolicy.CreateRuleProperty.Builder times(java.util.List<java.lang.String> times)
CfnLifecyclePolicy.CreateRuleProperty.getTimes()
times
- The time, in UTC, to start the operation. The supported format is hh:mm.
The operation occurs within a one-hour window following the specified time. If you do not specify a time, Amazon DLM selects a time within the next 24 hours.this
public CfnLifecyclePolicy.CreateRuleProperty build()
CfnLifecyclePolicy.CreateRuleProperty
java.lang.NullPointerException
- if any required attribute was not provided