@Generated(value="software.amazon.awssdk:codegen") public final class GetUserPolicyResponse extends IamResponse implements ToCopyableBuilder<GetUserPolicyResponse.Builder,GetUserPolicyResponse>
Contains the response to a successful GetUserPolicy request.
Modifier and Type | Class and Description |
---|---|
static interface |
GetUserPolicyResponse.Builder |
Modifier and Type | Method and Description |
---|---|
static GetUserPolicyResponse.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
policyDocument()
The policy document.
|
String |
policyName()
The name of the policy.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends GetUserPolicyResponse.Builder> |
serializableBuilderClass() |
GetUserPolicyResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
userName()
The user the policy is associated with.
|
responseMetadata
sdkHttpResponse
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public String userName()
The user the policy is associated with.
public String policyName()
The name of the policy.
public String policyDocument()
The policy document.
IAM stores policies in JSON format. However, resources that were created using AWS CloudFormation templates can be formatted in YAML. AWS CloudFormation always converts a YAML policy to JSON format before submitting it to IAM.
IAM stores policies in JSON format. However, resources that were created using AWS CloudFormation templates can be formatted in YAML. AWS CloudFormation always converts a YAML policy to JSON format before submitting it to IAM.
public GetUserPolicyResponse.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<GetUserPolicyResponse.Builder,GetUserPolicyResponse>
toBuilder
in class AwsResponse
public static GetUserPolicyResponse.Builder builder()
public static Class<? extends GetUserPolicyResponse.Builder> serializableBuilderClass()
public int hashCode()
hashCode
in class AwsResponse
public boolean equals(Object obj)
equals
in class AwsResponse
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField
in class SdkResponse
Copyright © 2019. All rights reserved.