@Generated(value="software.amazon.awssdk:codegen") public final class PolicyDefinitionItem extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PolicyDefinitionItem.Builder,PolicyDefinitionItem>
A structure that describes a PolicyDefinintion. It will always have either an StaticPolicy or a
TemplateLinkedPolicy element.
This data type is used as a response parameter for the CreatePolicy and ListPolicies operations.
| Modifier and Type | Class and Description |
|---|---|
static interface |
PolicyDefinitionItem.Builder |
static class |
PolicyDefinitionItem.Type |
| Modifier and Type | Method and Description |
|---|---|
static PolicyDefinitionItem.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
static PolicyDefinitionItem |
fromStaticValue(Consumer<StaticPolicyDefinitionItem.Builder> staticValue)
Create an instance of this class with
staticValue() initialized to the given value. |
static PolicyDefinitionItem |
fromStaticValue(StaticPolicyDefinitionItem staticValue)
Create an instance of this class with
staticValue() initialized to the given value. |
static PolicyDefinitionItem |
fromTemplateLinked(Consumer<TemplateLinkedPolicyDefinitionItem.Builder> templateLinked)
Create an instance of this class with
templateLinked() initialized to the given value. |
static PolicyDefinitionItem |
fromTemplateLinked(TemplateLinkedPolicyDefinitionItem templateLinked)
Create an instance of this class with
templateLinked() initialized to the given value. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends PolicyDefinitionItem.Builder> |
serializableBuilderClass() |
StaticPolicyDefinitionItem |
staticValue()
Information about a static policy that wasn't created with a policy template.
|
TemplateLinkedPolicyDefinitionItem |
templateLinked()
Information about a template-linked policy that was created by instantiating a policy template.
|
PolicyDefinitionItem.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
PolicyDefinitionItem.Type |
type()
Retrieve an enum value representing which member of this object is populated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final StaticPolicyDefinitionItem staticValue()
Information about a static policy that wasn't created with a policy template.
public final TemplateLinkedPolicyDefinitionItem templateLinked()
Information about a template-linked policy that was created by instantiating a policy template.
public PolicyDefinitionItem.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PolicyDefinitionItem.Builder,PolicyDefinitionItem>public static PolicyDefinitionItem.Builder builder()
public static Class<? extends PolicyDefinitionItem.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public static PolicyDefinitionItem fromStaticValue(StaticPolicyDefinitionItem staticValue)
staticValue() initialized to the given value.
Information about a static policy that wasn't created with a policy template.
staticValue - Information about a static policy that wasn't created with a policy template.public static PolicyDefinitionItem fromStaticValue(Consumer<StaticPolicyDefinitionItem.Builder> staticValue)
staticValue() initialized to the given value.
Information about a static policy that wasn't created with a policy template.
staticValue - Information about a static policy that wasn't created with a policy template.public static PolicyDefinitionItem fromTemplateLinked(TemplateLinkedPolicyDefinitionItem templateLinked)
templateLinked() initialized to the given value.
Information about a template-linked policy that was created by instantiating a policy template.
templateLinked - Information about a template-linked policy that was created by instantiating a policy template.public static PolicyDefinitionItem fromTemplateLinked(Consumer<TemplateLinkedPolicyDefinitionItem.Builder> templateLinked)
templateLinked() initialized to the given value.
Information about a template-linked policy that was created by instantiating a policy template.
templateLinked - Information about a template-linked policy that was created by instantiating a policy template.public PolicyDefinitionItem.Type type()
PolicyDefinitionItem.Type.UNKNOWN_TO_SDK_VERSION if the
service returned a member that is only known to a newer SDK version.
When this class is created directly in your code, this will be PolicyDefinitionItem.Type.UNKNOWN_TO_SDK_VERSION if zero
members are set, and null if more than one member is set.Copyright © 2023. All rights reserved.