Class PolicyAttachment
- java.lang.Object
-
- software.amazon.awssdk.services.clouddirectory.model.PolicyAttachment
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PolicyAttachment.Builder,PolicyAttachment>
@Generated("software.amazon.awssdk:codegen") public final class PolicyAttachment extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PolicyAttachment.Builder,PolicyAttachment>
Contains the
PolicyType,PolicyId, and theObjectIdentifierto which it is attached. For more information, see Policies.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePolicyAttachment.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PolicyAttachment.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringobjectIdentifier()TheObjectIdentifierthat is associated withPolicyAttachment.StringpolicyId()The ID ofPolicyAttachment.StringpolicyType()The type of policy that can be associated withPolicyAttachment.List<SdkField<?>>sdkFields()static Class<? extends PolicyAttachment.Builder>serializableBuilderClass()PolicyAttachment.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
policyId
public final String policyId()
The ID of
PolicyAttachment.- Returns:
- The ID of
PolicyAttachment.
-
objectIdentifier
public final String objectIdentifier()
The
ObjectIdentifierthat is associated withPolicyAttachment.- Returns:
- The
ObjectIdentifierthat is associated withPolicyAttachment.
-
policyType
public final String policyType()
The type of policy that can be associated with
PolicyAttachment.- Returns:
- The type of policy that can be associated with
PolicyAttachment.
-
toBuilder
public PolicyAttachment.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PolicyAttachment.Builder,PolicyAttachment>
-
builder
public static PolicyAttachment.Builder builder()
-
serializableBuilderClass
public static Class<? extends PolicyAttachment.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-