@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.
|
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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 AwsResponsepublic static GetResourcePolicyResponse.Builder builder()
public static Class<? extends GetResourcePolicyResponse.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 © 2023. All rights reserved.