@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateSnapshotScheduleActionParameters extends Object implements Serializable, Cloneable, StructuredPojo
The parameters that you can use to configure a scheduled action to create a snapshot. For more information about creating a scheduled action, see CreateScheduledAction.
Constructor and Description |
---|
CreateSnapshotScheduleActionParameters() |
Modifier and Type | Method and Description |
---|---|
CreateSnapshotScheduleActionParameters |
clone() |
boolean |
equals(Object obj) |
String |
getNamespaceName()
The name of the namespace for which you want to configure a scheduled action to create a snapshot.
|
Integer |
getRetentionPeriod()
The retention period of the snapshot created by the scheduled action.
|
String |
getSnapshotNamePrefix()
A string prefix that is attached to the name of the snapshot created by the scheduled action.
|
List<Tag> |
getTags()
An array of Tag
objects to associate with the snapshot.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setNamespaceName(String namespaceName)
The name of the namespace for which you want to configure a scheduled action to create a snapshot.
|
void |
setRetentionPeriod(Integer retentionPeriod)
The retention period of the snapshot created by the scheduled action.
|
void |
setSnapshotNamePrefix(String snapshotNamePrefix)
A string prefix that is attached to the name of the snapshot created by the scheduled action.
|
void |
setTags(Collection<Tag> tags)
An array of Tag
objects to associate with the snapshot.
|
String |
toString()
Returns a string representation of this object.
|
CreateSnapshotScheduleActionParameters |
withNamespaceName(String namespaceName)
The name of the namespace for which you want to configure a scheduled action to create a snapshot.
|
CreateSnapshotScheduleActionParameters |
withRetentionPeriod(Integer retentionPeriod)
The retention period of the snapshot created by the scheduled action.
|
CreateSnapshotScheduleActionParameters |
withSnapshotNamePrefix(String snapshotNamePrefix)
A string prefix that is attached to the name of the snapshot created by the scheduled action.
|
CreateSnapshotScheduleActionParameters |
withTags(Collection<Tag> tags)
An array of Tag
objects to associate with the snapshot.
|
CreateSnapshotScheduleActionParameters |
withTags(Tag... tags)
An array of Tag
objects to associate with the snapshot.
|
public CreateSnapshotScheduleActionParameters()
public void setNamespaceName(String namespaceName)
The name of the namespace for which you want to configure a scheduled action to create a snapshot.
namespaceName
- The name of the namespace for which you want to configure a scheduled action to create a snapshot.public String getNamespaceName()
The name of the namespace for which you want to configure a scheduled action to create a snapshot.
public CreateSnapshotScheduleActionParameters withNamespaceName(String namespaceName)
The name of the namespace for which you want to configure a scheduled action to create a snapshot.
namespaceName
- The name of the namespace for which you want to configure a scheduled action to create a snapshot.public void setRetentionPeriod(Integer retentionPeriod)
The retention period of the snapshot created by the scheduled action.
retentionPeriod
- The retention period of the snapshot created by the scheduled action.public Integer getRetentionPeriod()
The retention period of the snapshot created by the scheduled action.
public CreateSnapshotScheduleActionParameters withRetentionPeriod(Integer retentionPeriod)
The retention period of the snapshot created by the scheduled action.
retentionPeriod
- The retention period of the snapshot created by the scheduled action.public void setSnapshotNamePrefix(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.
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.public String getSnapshotNamePrefix()
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.
public CreateSnapshotScheduleActionParameters withSnapshotNamePrefix(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.
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.public List<Tag> getTags()
An array of Tag objects to associate with the snapshot.
public void setTags(Collection<Tag> tags)
An array of Tag objects to associate with the snapshot.
tags
- An array of Tag
objects to associate with the snapshot.public CreateSnapshotScheduleActionParameters withTags(Tag... tags)
An array of Tag objects to associate with the snapshot.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- An array of Tag
objects to associate with the snapshot.public CreateSnapshotScheduleActionParameters withTags(Collection<Tag> tags)
An array of Tag objects to associate with the snapshot.
tags
- An array of Tag
objects to associate with the snapshot.public String toString()
toString
in class Object
Object.toString()
public CreateSnapshotScheduleActionParameters clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.