StructuredPojo
, ToCopyableBuilder<Principal.Builder,Principal>
@Generated("software.amazon.awssdk:codegen") public class Principal extends Object implements StructuredPojo, ToCopyableBuilder<Principal.Builder,Principal>
Describes a resource.
Modifier and Type | Class | Description |
---|---|---|
static interface |
Principal.Builder |
Modifier and Type | Method | Description |
---|---|---|
static Principal.Builder |
builder() |
|
boolean |
equals(Object obj) |
|
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() |
|
String |
type() |
The type of resource.
|
public String id()
The ID of the resource.
public String type()
The type of resource.
PrincipalType
public List<PermissionInfo> roles()
The permission information for the resource.
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.