Class GetUserPolicyResponse
java.lang.Object
software.amazon.awssdk.core.SdkResponse
software.amazon.awssdk.awscore.AwsResponse
software.amazon.awssdk.services.iam.model.IamResponse
software.amazon.awssdk.services.iam.model.GetUserPolicyResponse
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<GetUserPolicyResponse.Builder,GetUserPolicyResponse>
@Generated("software.amazon.awssdk:codegen")
public final class GetUserPolicyResponse
extends IamResponse
implements ToCopyableBuilder<GetUserPolicyResponse.Builder,GetUserPolicyResponse>
Contains the response to a successful GetUserPolicy request.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringThe policy document.final StringThe name of the policy.static Class<? extends GetUserPolicyResponse.Builder>final StringtoString()Returns a string representation of this object.final StringuserName()The user the policy is associated with.Methods inherited from class software.amazon.awssdk.services.iam.model.IamResponse
responseMetadataMethods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponseMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
userName
The user the policy is associated with.
- Returns:
- The user the policy is associated with.
-
policyName
The name of the policy.
- Returns:
- The name of the policy.
-
policyDocument
The policy document.
IAM stores policies in JSON format. However, resources that were created using CloudFormation templates can be formatted in YAML. CloudFormation always converts a YAML policy to JSON format before submitting it to IAM.
- Returns:
- The policy document.
IAM stores policies in JSON format. However, resources that were created using CloudFormation templates can be formatted in YAML. CloudFormation always converts a YAML policy to JSON format before submitting it to IAM.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<GetUserPolicyResponse.Builder,GetUserPolicyResponse> - Specified by:
toBuilderin classAwsResponse
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsResponse
-
equals
- Overrides:
equalsin classAwsResponse
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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. -
getValueForField
- Overrides:
getValueForFieldin classSdkResponse
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-