@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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateRule.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CreateRule.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasTimes()
Returns true if the Times property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
Integer |
interval()
The interval between snapshots.
|
IntervalUnitValues |
intervalUnit()
The interval unit.
|
String |
intervalUnitAsString()
The interval unit.
|
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 Integer interval()
The interval between snapshots. The supported values are 2, 3, 4, 6, 8, 12, and 24.
public 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 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 boolean hasTimes()
public 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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTimes() to see if a value was sent in this field.
The operation occurs within a one-hour window following the specified time.
public CreateRule.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateRule.Builder,CreateRule>public static CreateRule.Builder builder()
public static Class<? extends CreateRule.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.