@Generated(value="software.amazon.awssdk:codegen") public final class Principal extends Object implements StructuredPojo, ToCopyableBuilder<Principal.Builder,Principal>
Describes a resource.
Modifier and Type | Class and Description |
---|---|
static interface |
Principal.Builder |
Modifier and Type | Method and Description |
---|---|
static Principal.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The ID of the resource.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
List<PermissionInfo> |
roles()
The permission information for the resource.
|
static Class<? extends Principal.Builder> |
serializableBuilderClass() |
Principal.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 resource.
|
String |
typeAsString()
The type of resource.
|
copy
public String id()
The ID of the resource.
public PrincipalType type()
The type of resource.
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()
.
PrincipalType
public String typeAsString()
The type of resource.
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()
.
PrincipalType
public List<PermissionInfo> roles()
The permission information for the resource.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Principal.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Principal.Builder,Principal>
public static Principal.Builder builder()
public static Class<? extends Principal.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.