@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) |
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.
ResourceTypeValuespublic void setResourceTypes(Collection<String> resourceTypes)
The resource type.
resourceTypes - The resource type.ResourceTypeValuespublic 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.ResourceTypeValuespublic PolicyDetails withResourceTypes(Collection<String> resourceTypes)
The resource type.
resourceTypes - The resource type.ResourceTypeValuespublic PolicyDetails withResourceTypes(ResourceTypeValues... resourceTypes)
The resource type.
resourceTypes - The resource type.ResourceTypeValuespublic 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 ObjectObject.toString()public PolicyDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2018. All rights reserved.