@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 friendly name of the secret that the resource-based policy was retrieved for.
|
String |
resourcePolicy()
A JSON-formatted string that describes the permissions that are associated with the attached 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 String arn()
The ARN of the secret that the resource-based policy was retrieved for.
public String name()
The friendly name of the secret that the resource-based policy was retrieved for.
public String resourcePolicy()
A JSON-formatted string that describes the permissions that are associated with the attached secret. These permissions are combined with any permissions that are associated with the user or role that attempts to access this secret. The combined permissions specify who can access the secret and what actions they can perform. For more information, see Authentication and Access Control for AWS Secrets Manager in the AWS Secrets Manager User Guide.
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 int hashCode()
hashCode
in class AwsResponse
public boolean equals(Object obj)
equals
in class AwsResponse
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField
in class SdkResponse
Copyright © 2020. All rights reserved.