@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PolicyDetails extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the configuration of a lifecycle policy.
Constructor and Description |
---|
PolicyDetails() |
Modifier and Type | Method and Description |
---|---|
PolicyDetails |
clone() |
boolean |
equals(Object obj) |
List<String> |
getResourceTypes()
The resource type.
|
List<Schedule> |
getSchedules()
The schedule of policy-defined actions.
|
List<Tag> |
getTargetTags()
The single tag that identifies targeted resources for this policy.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setResourceTypes(Collection<String> resourceTypes)
The resource type.
|
void |
setSchedules(Collection<Schedule> schedules)
The schedule of policy-defined actions.
|
void |
setTargetTags(Collection<Tag> targetTags)
The single tag that identifies targeted resources for this policy.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
PolicyDetails |
withResourceTypes(Collection<String> resourceTypes)
The resource type.
|
PolicyDetails |
withResourceTypes(ResourceTypeValues... resourceTypes)
The resource type.
|
PolicyDetails |
withResourceTypes(String... resourceTypes)
The resource type.
|
PolicyDetails |
withSchedules(Collection<Schedule> schedules)
The schedule of policy-defined actions.
|
PolicyDetails |
withSchedules(Schedule... schedules)
The schedule of policy-defined actions.
|
PolicyDetails |
withTargetTags(Collection<Tag> targetTags)
The single tag that identifies targeted resources for this policy.
|
PolicyDetails |
withTargetTags(Tag... targetTags)
The single tag that identifies targeted resources for this policy.
|
public List<String> getResourceTypes()
The resource type.
ResourceTypeValues
public void setResourceTypes(Collection<String> resourceTypes)
The resource type.
resourceTypes
- The resource type.ResourceTypeValues
public PolicyDetails withResourceTypes(String... resourceTypes)
The resource type.
NOTE: This method appends the values to the existing list (if any). Use
setResourceTypes(java.util.Collection)
or withResourceTypes(java.util.Collection)
if you want
to override the existing values.
resourceTypes
- The resource type.ResourceTypeValues
public PolicyDetails withResourceTypes(Collection<String> resourceTypes)
The resource type.
resourceTypes
- The resource type.ResourceTypeValues
public PolicyDetails withResourceTypes(ResourceTypeValues... resourceTypes)
The resource type.
resourceTypes
- The resource type.ResourceTypeValues
public List<Tag> getTargetTags()
The single tag that identifies targeted resources for this policy.
public void setTargetTags(Collection<Tag> targetTags)
The single tag that identifies targeted resources for this policy.
targetTags
- The single tag that identifies targeted resources for this policy.public PolicyDetails withTargetTags(Tag... targetTags)
The single tag that identifies targeted resources for this policy.
NOTE: This method appends the values to the existing list (if any). Use
setTargetTags(java.util.Collection)
or withTargetTags(java.util.Collection)
if you want to
override the existing values.
targetTags
- The single tag that identifies targeted resources for this policy.public PolicyDetails withTargetTags(Collection<Tag> targetTags)
The single tag that identifies targeted resources for this policy.
targetTags
- The single tag that identifies targeted resources for this policy.public List<Schedule> getSchedules()
The schedule of policy-defined actions.
public void setSchedules(Collection<Schedule> schedules)
The schedule of policy-defined actions.
schedules
- The schedule of policy-defined actions.public PolicyDetails withSchedules(Schedule... schedules)
The schedule of policy-defined actions.
NOTE: This method appends the values to the existing list (if any). Use
setSchedules(java.util.Collection)
or withSchedules(java.util.Collection)
if you want to
override the existing values.
schedules
- The schedule of policy-defined actions.public PolicyDetails withSchedules(Collection<Schedule> schedules)
The schedule of policy-defined actions.
schedules
- The schedule of policy-defined actions.public String toString()
toString
in class Object
Object.toString()
public PolicyDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.