Class UnusedPermissionsRecommendedStep
- java.lang.Object
-
- software.amazon.awssdk.services.accessanalyzer.model.UnusedPermissionsRecommendedStep
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<UnusedPermissionsRecommendedStep.Builder,UnusedPermissionsRecommendedStep>
@Generated("software.amazon.awssdk:codegen") public final class UnusedPermissionsRecommendedStep extends Object implements SdkPojo, Serializable, ToCopyableBuilder<UnusedPermissionsRecommendedStep.Builder,UnusedPermissionsRecommendedStep>
Contains information about the action to take for a policy in an unused permissions finding.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUnusedPermissionsRecommendedStep.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UnusedPermissionsRecommendedStep.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringexistingPolicyId()If the recommended action for the unused permissions finding is to detach a policy, the ID of an existing policy to be detached.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()InstantpolicyUpdatedAt()The time at which the existing policy for the unused permissions finding was last updated.RecommendedRemediationActionrecommendedAction()A recommendation of whether to create or detach a policy for an unused permissions finding.StringrecommendedActionAsString()A recommendation of whether to create or detach a policy for an unused permissions finding.StringrecommendedPolicy()If the recommended action for the unused permissions finding is to replace the existing policy, the contents of the recommended policy to replace the policy specified in theexistingPolicyIdfield.List<SdkField<?>>sdkFields()static Class<? extends UnusedPermissionsRecommendedStep.Builder>serializableBuilderClass()UnusedPermissionsRecommendedStep.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
policyUpdatedAt
public final Instant policyUpdatedAt()
The time at which the existing policy for the unused permissions finding was last updated.
- Returns:
- The time at which the existing policy for the unused permissions finding was last updated.
-
recommendedAction
public final RecommendedRemediationAction recommendedAction()
A recommendation of whether to create or detach a policy for an unused permissions finding.
If the service returns an enum value that is not available in the current SDK version,
recommendedActionwill returnRecommendedRemediationAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrecommendedActionAsString().- Returns:
- A recommendation of whether to create or detach a policy for an unused permissions finding.
- See Also:
RecommendedRemediationAction
-
recommendedActionAsString
public final String recommendedActionAsString()
A recommendation of whether to create or detach a policy for an unused permissions finding.
If the service returns an enum value that is not available in the current SDK version,
recommendedActionwill returnRecommendedRemediationAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrecommendedActionAsString().- Returns:
- A recommendation of whether to create or detach a policy for an unused permissions finding.
- See Also:
RecommendedRemediationAction
-
recommendedPolicy
public final String recommendedPolicy()
If the recommended action for the unused permissions finding is to replace the existing policy, the contents of the recommended policy to replace the policy specified in the
existingPolicyIdfield.- Returns:
- If the recommended action for the unused permissions finding is to replace the existing policy, the
contents of the recommended policy to replace the policy specified in the
existingPolicyIdfield.
-
existingPolicyId
public final String existingPolicyId()
If the recommended action for the unused permissions finding is to detach a policy, the ID of an existing policy to be detached.
- Returns:
- If the recommended action for the unused permissions finding is to detach a policy, the ID of an existing policy to be detached.
-
toBuilder
public UnusedPermissionsRecommendedStep.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<UnusedPermissionsRecommendedStep.Builder,UnusedPermissionsRecommendedStep>
-
builder
public static UnusedPermissionsRecommendedStep.Builder builder()
-
serializableBuilderClass
public static Class<? extends UnusedPermissionsRecommendedStep.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-