Class Principal
- java.lang.Object
-
- software.amazon.awssdk.services.kendra.model.Principal
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Principal.Builder,Principal>
@Generated("software.amazon.awssdk:codegen") public final class Principal extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Principal.Builder,Principal>
Provides user and group information for user context filtering.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePrincipal.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ReadAccessTypeaccess()Whether to allow or deny document access to the principal.StringaccessAsString()Whether to allow or deny document access to the principal.static Principal.Builderbuilder()StringdataSourceId()The identifier of the data source the principal should access documents from.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringname()The name of the user or group.List<SdkField<?>>sdkFields()static Class<? extends Principal.Builder>serializableBuilderClass()Principal.BuildertoBuilder()StringtoString()Returns a string representation of this object.PrincipalTypetype()The type of principal.StringtypeAsString()The type of principal.-
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
-
name
public final String name()
The name of the user or group.
- Returns:
- The name of the user or group.
-
type
public final PrincipalType type()
The type of principal.
If the service returns an enum value that is not available in the current SDK version,
typewill returnPrincipalType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of principal.
- See Also:
PrincipalType
-
typeAsString
public final String typeAsString()
The type of principal.
If the service returns an enum value that is not available in the current SDK version,
typewill returnPrincipalType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of principal.
- See Also:
PrincipalType
-
access
public final ReadAccessType access()
Whether to allow or deny document access to the principal.
If the service returns an enum value that is not available in the current SDK version,
accesswill returnReadAccessType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromaccessAsString().- Returns:
- Whether to allow or deny document access to the principal.
- See Also:
ReadAccessType
-
accessAsString
public final String accessAsString()
Whether to allow or deny document access to the principal.
If the service returns an enum value that is not available in the current SDK version,
accesswill returnReadAccessType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromaccessAsString().- Returns:
- Whether to allow or deny document access to the principal.
- See Also:
ReadAccessType
-
dataSourceId
public final String dataSourceId()
The identifier of the data source the principal should access documents from.
- Returns:
- The identifier of the data source the principal should access documents from.
-
toBuilder
public Principal.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Principal.Builder,Principal>
-
builder
public static Principal.Builder builder()
-
serializableBuilderClass
public static Class<? extends Principal.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.
-
-