@Generated(value="software.amazon.awssdk:codegen") public final class CreateRule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CreateRule.Builder,CreateRule>
Specifies when to create snapshots of EBS volumes.
You must specify either a Cron expression or an interval, interval unit, and start time. You cannot specify both.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateRule.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CreateRule.Builder |
builder() |
String |
cronExpression()
The schedule, as a Cron expression.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasTimes()
For responses, this returns true if the service returned a value for the Times property.
|
Integer |
interval()
The interval between snapshots.
|
IntervalUnitValues |
intervalUnit()
The interval unit.
|
String |
intervalUnitAsString()
The interval unit.
|
LocationValues |
location()
Specifies the destination for snapshots created by the policy.
|
String |
locationAsString()
Specifies the destination for snapshots created by the policy.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateRule.Builder> |
serializableBuilderClass() |
List<String> |
times()
The time, in UTC, to start the operation.
|
CreateRule.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final LocationValues 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 Amazon Web Services 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.
If the service returns an enum value that is not available in the current SDK version, location will
return LocationValues.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
locationAsString().
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 Amazon Web Services 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.
LocationValuespublic final String locationAsString()
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 Amazon Web Services 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.
If the service returns an enum value that is not available in the current SDK version, location will
return LocationValues.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
locationAsString().
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 Amazon Web Services 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.
LocationValuespublic final Integer interval()
The interval between snapshots. The supported values are 1, 2, 3, 4, 6, 8, 12, and 24.
public final IntervalUnitValues intervalUnit()
The interval unit.
If the service returns an enum value that is not available in the current SDK version, intervalUnit will
return IntervalUnitValues.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
intervalUnitAsString().
IntervalUnitValuespublic final String intervalUnitAsString()
The interval unit.
If the service returns an enum value that is not available in the current SDK version, intervalUnit will
return IntervalUnitValues.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
intervalUnitAsString().
IntervalUnitValuespublic final boolean hasTimes()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final List<String> 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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTimes() method.
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.
public final String 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.
public CreateRule.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateRule.Builder,CreateRule>public static CreateRule.Builder builder()
public static Class<? extends CreateRule.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.