@Generated(value="software.amazon.awssdk:codegen") public final class GetResourcePolicyResponse extends SecretsManagerResponse implements ToCopyableBuilder<GetResourcePolicyResponse.Builder,GetResourcePolicyResponse>
Modifier and Type | Class and Description |
---|---|
static interface |
GetResourcePolicyResponse.Builder |
Modifier and Type | Method and Description |
---|---|
String |
arn()
The ARN of the secret that the resource-based policy was retrieved for.
|
static GetResourcePolicyResponse.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
name()
The name of the secret that the resource-based policy was retrieved for.
|
String |
resourcePolicy()
A JSON-formatted string that contains the permissions policy attached to the secret.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends GetResourcePolicyResponse.Builder> |
serializableBuilderClass() |
GetResourcePolicyResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
responseMetadata
sdkHttpResponse
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final String arn()
The ARN of the secret that the resource-based policy was retrieved for.
public final String name()
The name of the secret that the resource-based policy was retrieved for.
public final String resourcePolicy()
A JSON-formatted string that contains the permissions policy attached to the secret. For more information about permissions policies, see Authentication and access control for Secrets Manager.
public GetResourcePolicyResponse.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<GetResourcePolicyResponse.Builder,GetResourcePolicyResponse>
toBuilder
in class AwsResponse
public static GetResourcePolicyResponse.Builder builder()
public static Class<? extends GetResourcePolicyResponse.Builder> serializableBuilderClass()
public final int hashCode()
hashCode
in class AwsResponse
public final boolean equals(Object obj)
equals
in class AwsResponse
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField
in class SdkResponse
Copyright © 2022. All rights reserved.