@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) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasResourceTypes()
Returns true if the ResourceTypes property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasSchedules()
Returns true if the Schedules property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
boolean |
hasTargetTags()
Returns true if the TargetTags property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
Parameters |
parameters()
A set of optional parameters for the policy.
|
PolicyTypeValues |
policyType()
The valid target resource types and actions a policy can manage.
|
String |
policyTypeAsString()
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()
The valid target resource types and actions a policy can manage. The default is EBS_SNAPSHOT_MANAGEMENT.
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()
The valid target resource types and actions a policy can manage. The default is EBS_SNAPSHOT_MANAGEMENT.
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.
You can use hasResourceTypes() to see if a value was sent in this field.
public boolean hasResourceTypes()
public List<String> resourceTypesAsStrings()
The resource type.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasResourceTypes() to see if a value was sent in this field.
public boolean hasTargetTags()
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.
You can use hasTargetTags() to see if a value was sent in this field.
public boolean hasSchedules()
public List<Schedule> schedules()
The schedule of policy-defined actions.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasSchedules() to see if a value was sent in this field.
public Parameters parameters()
A set of optional parameters for 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 boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.