@Generated(value="software.amazon.awssdk:codegen") public final class GetRolePolicyResponse extends IamResponse implements ToCopyableBuilder<GetRolePolicyResponse.Builder,GetRolePolicyResponse>
Contains the response to a successful GetRolePolicy request.
| Modifier and Type | Class and Description |
|---|---|
static interface |
GetRolePolicyResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
static GetRolePolicyResponse.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.
|
String |
roleName()
The role the policy is associated with.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends GetRolePolicyResponse.Builder> |
serializableBuilderClass() |
GetRolePolicyResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String roleName()
The role the policy is associated with.
public final String policyName()
The name of the policy.
public final String 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.
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.
public GetRolePolicyResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<GetRolePolicyResponse.Builder,GetRolePolicyResponse>toBuilder in class AwsResponsepublic static GetRolePolicyResponse.Builder builder()
public static Class<? extends GetRolePolicyResponse.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsResponsepublic final boolean equals(Object obj)
equals in class AwsResponsepublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkResponseCopyright © 2022. All rights reserved.