Class GetRolePolicyResponse
- 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.GetRolePolicyResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<GetRolePolicyResponse.Builder,GetRolePolicyResponse>
@Generated("software.amazon.awssdk:codegen") public final class GetRolePolicyResponse extends IamResponse implements ToCopyableBuilder<GetRolePolicyResponse.Builder,GetRolePolicyResponse>
Contains the response to a successful GetRolePolicy request.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGetRolePolicyResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GetRolePolicyResponse.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringpolicyDocument()The policy document.StringpolicyName()The name of the policy.StringroleName()The role the policy is associated with.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends GetRolePolicyResponse.Builder>serializableBuilderClass()GetRolePolicyResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.services.iam.model.IamResponse
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
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
-
roleName
public final String roleName()
The role the policy is associated with.
- Returns:
- The role the policy is associated with.
-
policyName
public final String policyName()
The name of the policy.
- Returns:
- The name of the policy.
-
policyDocument
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.
- 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
public GetRolePolicyResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GetRolePolicyResponse.Builder,GetRolePolicyResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static GetRolePolicyResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends GetRolePolicyResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsResponse
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkResponse
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-