@Generated(value="software.amazon.awssdk:codegen") public class SharePrincipal extends Object implements StructuredPojo, 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) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The ID of the recipient.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
RoleType |
role()
The role of the recipient.
|
String |
roleAsString()
The role of the recipient.
|
static Class<? extends SharePrincipal.Builder> |
serializableBuilderClass() |
SharePrincipal.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
PrincipalType |
type()
The type of the recipient.
|
String |
typeAsString()
The type of the recipient.
|
copypublic String id()
The ID of the recipient.
public 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 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 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 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()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<SharePrincipal.Builder,SharePrincipal>public static SharePrincipal.Builder builder()
public static Class<? extends SharePrincipal.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.