@Generated(value="software.amazon.awssdk:codegen") public final class AttachPolicyRequest extends IotRequest implements ToCopyableBuilder<AttachPolicyRequest.Builder,AttachPolicyRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
AttachPolicyRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static AttachPolicyRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
policyName()
The name of the policy to attach.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AttachPolicyRequest.Builder> |
serializableBuilderClass() |
String |
target()
The identity to which the
policy is attached.
|
AttachPolicyRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfiguration
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final String policyName()
The name of the policy to attach.
public final String target()
The identity to which the policy is attached. For example, a thing group or a certificate.
public AttachPolicyRequest.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<AttachPolicyRequest.Builder,AttachPolicyRequest>
toBuilder
in class IotRequest
public static AttachPolicyRequest.Builder builder()
public static Class<? extends AttachPolicyRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode
in class AwsRequest
public final boolean equals(Object obj)
equals
in class AwsRequest
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 SdkRequest
Copyright © 2023. All rights reserved.