@Generated(value="software.amazon.awssdk:codegen") public final class SchemaDefinition extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SchemaDefinition.Builder,SchemaDefinition>
Contains a list of principal types, resource types, and actions that can be specified in policies stored in the same
policy store. If the validation mode for the policy store is set to STRICT, then policies that can't be
validated by this schema are rejected by Verified Permissions and can't be stored in the policy store.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SchemaDefinition.Builder |
static class |
SchemaDefinition.Type |
| Modifier and Type | Method and Description |
|---|---|
static SchemaDefinition.Builder |
builder() |
String |
cedarJson()
A JSON string representation of the schema supported by applications that use this policy store.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
static SchemaDefinition |
fromCedarJson(String cedarJson)
Create an instance of this class with
cedarJson() initialized to the given value. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends SchemaDefinition.Builder> |
serializableBuilderClass() |
SchemaDefinition.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
SchemaDefinition.Type |
type()
Retrieve an enum value representing which member of this object is populated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String cedarJson()
A JSON string representation of the schema supported by applications that use this policy store. For more information, see Policy store schema in the Amazon Verified Permissions User Guide.
public SchemaDefinition.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SchemaDefinition.Builder,SchemaDefinition>public static SchemaDefinition.Builder builder()
public static Class<? extends SchemaDefinition.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public static SchemaDefinition fromCedarJson(String cedarJson)
cedarJson() initialized to the given value.
A JSON string representation of the schema supported by applications that use this policy store. For more information, see Policy store schema in the Amazon Verified Permissions User Guide.
cedarJson - A JSON string representation of the schema supported by applications that use this policy store. For more
information, see Policy store
schema in the Amazon Verified Permissions User Guide.public SchemaDefinition.Type type()
SchemaDefinition.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 SchemaDefinition.Type.UNKNOWN_TO_SDK_VERSION if zero
members are set, and null if more than one member is set.Copyright © 2023. All rights reserved.