@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 for the policy.
|
String |
getPolicyType()
The valid target resource types and actions a policy can manage.
|
List<String> |
getResourceTypes()
The resource type.
|
List<Schedule> |
getSchedules()
The schedules of policy-defined actions.
|
List<Tag> |
getTargetTags()
The single tag that identifies targeted resources for this policy.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setParameters(Parameters parameters)
A set of optional parameters for the policy.
|
void |
setPolicyType(String policyType)
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 schedules 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 for the policy.
|
PolicyDetails |
withPolicyType(PolicyTypeValues policyType)
The valid target resource types and actions a policy can manage.
|
PolicyDetails |
withPolicyType(String policyType)
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 schedules of policy-defined actions.
|
PolicyDetails |
withSchedules(Schedule... schedules)
The schedules 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)
The valid target resource types and actions a policy can manage. The default is EBS_SNAPSHOT_MANAGEMENT.
policyType - The valid target resource types and actions a policy can manage. The default is EBS_SNAPSHOT_MANAGEMENT.PolicyTypeValuespublic String getPolicyType()
The valid target resource types and actions a policy can manage. The default is EBS_SNAPSHOT_MANAGEMENT.
PolicyTypeValuespublic PolicyDetails withPolicyType(String policyType)
The valid target resource types and actions a policy can manage. The default is EBS_SNAPSHOT_MANAGEMENT.
policyType - The valid target resource types and actions a policy can manage. The default is EBS_SNAPSHOT_MANAGEMENT.PolicyTypeValuespublic PolicyDetails withPolicyType(PolicyTypeValues policyType)
The valid target resource types and actions a policy can manage. The default is EBS_SNAPSHOT_MANAGEMENT.
policyType - The valid target resource types and actions a policy can manage. The default is EBS_SNAPSHOT_MANAGEMENT.PolicyTypeValuespublic List<String> getResourceTypes()
The resource type. Use VOLUME to create snapshots of individual volumes or use INSTANCE to create multi-volume snapshots from the volumes for an instance.
ResourceTypeValuespublic void setResourceTypes(Collection<String> resourceTypes)
The resource type. Use VOLUME to create snapshots of individual volumes or use INSTANCE to create multi-volume snapshots from the volumes for an instance.
resourceTypes - The resource type. Use VOLUME to create snapshots of individual volumes or use INSTANCE to create
multi-volume snapshots from the volumes for an instance.ResourceTypeValuespublic PolicyDetails withResourceTypes(String... resourceTypes)
The resource type. Use VOLUME to create snapshots of individual volumes or use INSTANCE to create multi-volume snapshots from the volumes for an instance.
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. Use VOLUME to create snapshots of individual volumes or use INSTANCE to create
multi-volume snapshots from the volumes for an instance.ResourceTypeValuespublic PolicyDetails withResourceTypes(Collection<String> resourceTypes)
The resource type. Use VOLUME to create snapshots of individual volumes or use INSTANCE to create multi-volume snapshots from the volumes for an instance.
resourceTypes - The resource type. Use VOLUME to create snapshots of individual volumes or use INSTANCE to create
multi-volume snapshots from the volumes for an instance.ResourceTypeValuespublic PolicyDetails withResourceTypes(ResourceTypeValues... resourceTypes)
The resource type. Use VOLUME to create snapshots of individual volumes or use INSTANCE to create multi-volume snapshots from the volumes for an instance.
resourceTypes - The resource type. Use VOLUME to create snapshots of individual volumes or use INSTANCE to create
multi-volume snapshots from the volumes for an instance.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 schedules of policy-defined actions. A policy can have up to four schedules - one mandatory schedule and up to three optional schedules.
public void setSchedules(Collection<Schedule> schedules)
The schedules of policy-defined actions. A policy can have up to four schedules - one mandatory schedule and up to three optional schedules.
schedules - The schedules of policy-defined actions. A policy can have up to four schedules - one mandatory schedule
and up to three optional schedules.public PolicyDetails withSchedules(Schedule... schedules)
The schedules of policy-defined actions. A policy can have up to four schedules - one mandatory schedule and up to three optional schedules.
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 schedules of policy-defined actions. A policy can have up to four schedules - one mandatory schedule
and up to three optional schedules.public PolicyDetails withSchedules(Collection<Schedule> schedules)
The schedules of policy-defined actions. A policy can have up to four schedules - one mandatory schedule and up to three optional schedules.
schedules - The schedules of policy-defined actions. A policy can have up to four schedules - one mandatory schedule
and up to three optional schedules.public void setParameters(Parameters parameters)
A set of optional parameters for the policy.
parameters - A set of optional parameters for the policy.public Parameters getParameters()
A set of optional parameters for the policy.
public PolicyDetails withParameters(Parameters parameters)
A set of optional parameters for the policy.
parameters - A set of optional parameters for the policy.public String toString()
toString in class ObjectObject.toString()public PolicyDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2020. All rights reserved.