Class GetGroupPolicyResponse
- 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.GetGroupPolicyResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<GetGroupPolicyResponse.Builder,GetGroupPolicyResponse>
@Generated("software.amazon.awssdk:codegen") public final class GetGroupPolicyResponse extends IamResponse implements ToCopyableBuilder<GetGroupPolicyResponse.Builder,GetGroupPolicyResponse>
Contains the response to a successful GetGroupPolicy request.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGetGroupPolicyResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GetGroupPolicyResponse.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)StringgroupName()The group the policy is associated with.inthashCode()StringpolicyDocument()The policy document.StringpolicyName()The name of the policy.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends GetGroupPolicyResponse.Builder>serializableBuilderClass()GetGroupPolicyResponse.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
-
groupName
public final String groupName()
The group the policy is associated with.
- Returns:
- The group 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 GetGroupPolicyResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GetGroupPolicyResponse.Builder,GetGroupPolicyResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static GetGroupPolicyResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends GetGroupPolicyResponse.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
-
-