@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) |
Parameters |
getParameters()
A set of optional parameters that can be provided by the policy.
|
String |
getPolicyType()
This field determines the valid target resource types and actions a policy can manage.
|
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 |
setParameters(Parameters parameters)
A set of optional parameters that can be provided by the policy.
|
void |
setPolicyType(String policyType)
This field determines the valid target resource types and actions a policy can manage.
|
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.
|
PolicyDetails |
withParameters(Parameters parameters)
A set of optional parameters that can be provided by the policy.
|
PolicyDetails |
withPolicyType(PolicyTypeValues policyType)
This field determines the valid target resource types and actions a policy can manage.
|
PolicyDetails |
withPolicyType(String policyType)
This field determines the valid target resource types and actions a policy can manage.
|
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 void setPolicyType(String policyType)
This field determines the valid target resource types and actions a policy can manage. This field defaults to EBS_SNAPSHOT_MANAGEMENT if not present.
policyType
- This field determines the valid target resource types and actions a policy can manage. This field defaults
to EBS_SNAPSHOT_MANAGEMENT if not present.PolicyTypeValues
public String getPolicyType()
This field determines the valid target resource types and actions a policy can manage. This field defaults to EBS_SNAPSHOT_MANAGEMENT if not present.
PolicyTypeValues
public PolicyDetails withPolicyType(String policyType)
This field determines the valid target resource types and actions a policy can manage. This field defaults to EBS_SNAPSHOT_MANAGEMENT if not present.
policyType
- This field determines the valid target resource types and actions a policy can manage. This field defaults
to EBS_SNAPSHOT_MANAGEMENT if not present.PolicyTypeValues
public PolicyDetails withPolicyType(PolicyTypeValues policyType)
This field determines the valid target resource types and actions a policy can manage. This field defaults to EBS_SNAPSHOT_MANAGEMENT if not present.
policyType
- This field determines the valid target resource types and actions a policy can manage. This field defaults
to EBS_SNAPSHOT_MANAGEMENT if not present.PolicyTypeValues
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 void setParameters(Parameters parameters)
A set of optional parameters that can be provided by the policy.
parameters
- A set of optional parameters that can be provided by the policy.public Parameters getParameters()
A set of optional parameters that can be provided by the policy.
public PolicyDetails withParameters(Parameters parameters)
A set of optional parameters that can be provided by the policy.
parameters
- A set of optional parameters that can be provided by the policy.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.