Class UnusedPermissionsRecommendationStep
java.lang.Object
software.amazon.awssdk.services.securityhub.model.UnusedPermissionsRecommendationStep
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<UnusedPermissionsRecommendationStep.Builder,UnusedPermissionsRecommendationStep>
@Generated("software.amazon.awssdk:codegen")
public final class UnusedPermissionsRecommendationStep
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<UnusedPermissionsRecommendationStep.Builder,UnusedPermissionsRecommendationStep>
Contains information about the action to take for a policy in an unused permissions finding.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final StringThe contents of the existing policy identified byExistingPolicyIdwhich needs to be replaced, when theRecommendedActionisCREATE_POLICY.final StringThe ID of an existing policy to be replaced or detached.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final InstantThe time at which the existing policy for the unused permissions finding was last updated.final StringA recommendation of whether to create or detach a policy for an unused permissions finding.final StringThe contents of the least-privileged recommended replacement forExistingPolicyId, when theRecommendedActionisCREATE_POLICY.static Class<? extends UnusedPermissionsRecommendationStep.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
recommendedAction
A recommendation of whether to create or detach a policy for an unused permissions finding.
- Returns:
- A recommendation of whether to create or detach a policy for an unused permissions finding.
-
existingPolicy
The contents of the existing policy identified by
ExistingPolicyIdwhich needs to be replaced, when theRecommendedActionisCREATE_POLICY.- Returns:
- The contents of the existing policy identified by
ExistingPolicyIdwhich needs to be replaced, when theRecommendedActionisCREATE_POLICY.
-
existingPolicyId
The ID of an existing policy to be replaced or detached.
- Returns:
- The ID of an existing policy to be replaced or detached.
-
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.
-
recommendedPolicy
The contents of the least-privileged recommended replacement for
ExistingPolicyId, when theRecommendedActionisCREATE_POLICY.- Returns:
- The contents of the least-privileged recommended replacement for
ExistingPolicyId, when theRecommendedActionisCREATE_POLICY.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<UnusedPermissionsRecommendationStep.Builder,UnusedPermissionsRecommendationStep> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
public static Class<? extends UnusedPermissionsRecommendationStep.Builder> serializableBuilderClass() -
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-