Interface GetRolePolicyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetRolePolicyResponse.Builder,
,GetRolePolicyResponse> IamResponse.Builder
,SdkBuilder<GetRolePolicyResponse.Builder,
,GetRolePolicyResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetRolePolicyResponse
public static interface GetRolePolicyResponse.Builder
extends IamResponse.Builder, SdkPojo, CopyableBuilder<GetRolePolicyResponse.Builder,GetRolePolicyResponse>
-
Method Summary
Modifier and TypeMethodDescriptionpolicyDocument
(String policyDocument) The policy document.policyName
(String policyName) The name of the policy.The role the policy is associated with.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.iam.model.IamResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
roleName
The role the policy is associated with.
- Parameters:
roleName
- The role the policy is associated with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyName
The name of the policy.
- Parameters:
policyName
- The name of the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-