Class SharePrincipal
- java.lang.Object
-
- software.amazon.awssdk.services.workdocs.model.SharePrincipal
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SharePrincipal.Builder,SharePrincipal>
@Generated("software.amazon.awssdk:codegen") public final class SharePrincipal extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SharePrincipal.Builder,SharePrincipal>
Describes the recipient type and ID, if available.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSharePrincipal.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SharePrincipal.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringid()The ID of the recipient.RoleTyperole()The role of the recipient.StringroleAsString()The role of the recipient.List<SdkField<?>>sdkFields()static Class<? extends SharePrincipal.Builder>serializableBuilderClass()SharePrincipal.BuildertoBuilder()StringtoString()Returns a string representation of this object.PrincipalTypetype()The type of the recipient.StringtypeAsString()The type of the recipient.-
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
-
id
public final String id()
The ID of the recipient.
- Returns:
- The ID of the recipient.
-
type
public final PrincipalType type()
The type of the recipient.
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 the recipient.
- See Also:
PrincipalType
-
typeAsString
public final String typeAsString()
The type of the recipient.
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 the recipient.
- See Also:
PrincipalType
-
role
public final RoleType role()
The role of the recipient.
If the service returns an enum value that is not available in the current SDK version,
rolewill returnRoleType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromroleAsString().- Returns:
- The role of the recipient.
- See Also:
RoleType
-
roleAsString
public final String roleAsString()
The role of the recipient.
If the service returns an enum value that is not available in the current SDK version,
rolewill returnRoleType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromroleAsString().- Returns:
- The role of the recipient.
- See Also:
RoleType
-
toBuilder
public SharePrincipal.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SharePrincipal.Builder,SharePrincipal>
-
builder
public static SharePrincipal.Builder builder()
-
serializableBuilderClass
public static Class<? extends SharePrincipal.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.
-
-