@Generated(value="software.amazon.awssdk:codegen") public final class PolicyDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PolicyDetails.Builder,PolicyDetails>
Specifies the configuration of a lifecycle policy.
| Modifier and Type | Class and Description |
|---|---|
static interface |
PolicyDetails.Builder |
| Modifier and Type | Method and Description |
|---|---|
static PolicyDetails.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Parameters |
parameters()
A set of optional parameters that can be provided by the policy.
|
PolicyTypeValues |
policyType()
This field determines the valid target resource types and actions a policy can manage.
|
String |
policyTypeAsString()
This field determines the valid target resource types and actions a policy can manage.
|
List<ResourceTypeValues> |
resourceTypes()
The resource type.
|
List<String> |
resourceTypesAsStrings()
The resource type.
|
List<Schedule> |
schedules()
The schedule of policy-defined actions.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PolicyDetails.Builder> |
serializableBuilderClass() |
List<Tag> |
targetTags()
The single tag that identifies targeted resources for this policy.
|
PolicyDetails.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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.
If the service returns an enum value that is not available in the current SDK version, policyType will
return PolicyTypeValues.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
policyTypeAsString().
PolicyTypeValuespublic String policyTypeAsString()
This field determines the valid target resource types and actions a policy can manage. This field defaults to EBS_SNAPSHOT_MANAGEMENT if not present.
If the service returns an enum value that is not available in the current SDK version, policyType will
return PolicyTypeValues.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
policyTypeAsString().
PolicyTypeValuespublic List<ResourceTypeValues> resourceTypes()
The resource type.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<String> resourceTypesAsStrings()
The resource type.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<Tag> targetTags()
The single tag that identifies targeted resources for this policy.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<Schedule> schedules()
The schedule of policy-defined actions.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Parameters parameters()
A set of optional parameters that can be provided by the policy.
public PolicyDetails.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PolicyDetails.Builder,PolicyDetails>public static PolicyDetails.Builder builder()
public static Class<? extends PolicyDetails.Builder> serializableBuilderClass()
public String toString()
Copyright © 2019. All rights reserved.