@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateRule extends Object implements Serializable, Cloneable, StructuredPojo
Specifies when to create snapshots of EBS volumes.
| Constructor and Description |
|---|
CreateRule() |
| Modifier and Type | Method and Description |
|---|---|
CreateRule |
clone() |
boolean |
equals(Object obj) |
Integer |
getInterval()
The interval.
|
String |
getIntervalUnit()
The interval unit.
|
List<String> |
getTimes()
The time, in UTC, to start the operation.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setInterval(Integer interval)
The interval.
|
void |
setIntervalUnit(String intervalUnit)
The interval unit.
|
void |
setTimes(Collection<String> times)
The time, in UTC, to start the operation.
|
String |
toString()
Returns a string representation of this object.
|
CreateRule |
withInterval(Integer interval)
The interval.
|
CreateRule |
withIntervalUnit(IntervalUnitValues intervalUnit)
The interval unit.
|
CreateRule |
withIntervalUnit(String intervalUnit)
The interval unit.
|
CreateRule |
withTimes(Collection<String> times)
The time, in UTC, to start the operation.
|
CreateRule |
withTimes(String... times)
The time, in UTC, to start the operation.
|
public void setInterval(Integer interval)
The interval. The supported values are 12 and 24.
interval - The interval. The supported values are 12 and 24.public Integer getInterval()
The interval. The supported values are 12 and 24.
public CreateRule withInterval(Integer interval)
The interval. The supported values are 12 and 24.
interval - The interval. The supported values are 12 and 24.public void setIntervalUnit(String intervalUnit)
The interval unit.
intervalUnit - The interval unit.IntervalUnitValuespublic String getIntervalUnit()
The interval unit.
IntervalUnitValuespublic CreateRule withIntervalUnit(String intervalUnit)
The interval unit.
intervalUnit - The interval unit.IntervalUnitValuespublic CreateRule withIntervalUnit(IntervalUnitValues intervalUnit)
The interval unit.
intervalUnit - The interval unit.IntervalUnitValuespublic List<String> getTimes()
The time, in UTC, to start the operation.
The operation occurs within a one-hour window following the specified time.
The operation occurs within a one-hour window following the specified time.
public void setTimes(Collection<String> times)
The time, in UTC, to start the operation.
The operation occurs within a one-hour window following the specified time.
times - The time, in UTC, to start the operation.
The operation occurs within a one-hour window following the specified time.
public CreateRule withTimes(String... times)
The time, in UTC, to start the operation.
The operation occurs within a one-hour window following the specified time.
NOTE: This method appends the values to the existing list (if any). Use
setTimes(java.util.Collection) or withTimes(java.util.Collection) if you want to override the
existing values.
times - The time, in UTC, to start the operation.
The operation occurs within a one-hour window following the specified time.
public CreateRule withTimes(Collection<String> times)
The time, in UTC, to start the operation.
The operation occurs within a one-hour window following the specified time.
times - The time, in UTC, to start the operation.
The operation occurs within a one-hour window following the specified time.
public String toString()
toString in class ObjectObject.toString()public CreateRule clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.