@Generated(value="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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SharePrincipal.Builder |
| Modifier and Type | Method and Description |
|---|---|
static SharePrincipal.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The ID of the recipient.
|
RoleType |
role()
The role of the recipient.
|
String |
roleAsString()
The role of the recipient.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends SharePrincipal.Builder> |
serializableBuilderClass() |
SharePrincipal.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
PrincipalType |
type()
The type of the recipient.
|
String |
typeAsString()
The type of the recipient.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String id()
The ID of the recipient.
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, type will return
PrincipalType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
PrincipalTypepublic final String typeAsString()
The type of the recipient.
If the service returns an enum value that is not available in the current SDK version, type will return
PrincipalType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
PrincipalTypepublic final RoleType role()
The role of the recipient.
If the service returns an enum value that is not available in the current SDK version, role will return
RoleType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
roleAsString().
RoleTypepublic final String roleAsString()
The role of the recipient.
If the service returns an enum value that is not available in the current SDK version, role will return
RoleType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
roleAsString().
RoleTypepublic SharePrincipal.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SharePrincipal.Builder,SharePrincipal>public static SharePrincipal.Builder builder()
public static Class<? extends SharePrincipal.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.