@Generated(value="software.amazon.awssdk:codegen") public final class PutResourcePolicyResponse extends SsmResponse implements ToCopyableBuilder<PutResourcePolicyResponse.Builder,PutResourcePolicyResponse>
Modifier and Type | Class and Description |
---|---|
static interface |
PutResourcePolicyResponse.Builder |
Modifier and Type | Method and Description |
---|---|
static PutResourcePolicyResponse.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
policyHash()
ID of the current policy version.
|
String |
policyId()
The policy ID.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PutResourcePolicyResponse.Builder> |
serializableBuilderClass() |
PutResourcePolicyResponse.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 policyId()
The policy ID. To update a policy, you must specify PolicyId
and PolicyHash
.
PolicyId
and PolicyHash
.public final String policyHash()
ID of the current policy version. The hash helps to prevent a situation where multiple users attempt to overwrite a policy. You must provide this hash when updating or deleting a policy.
public PutResourcePolicyResponse.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<PutResourcePolicyResponse.Builder,PutResourcePolicyResponse>
toBuilder
in class AwsResponse
public static PutResourcePolicyResponse.Builder builder()
public static Class<? extends PutResourcePolicyResponse.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.