StructuredPojo
, ToCopyableBuilder<Principal.Builder,Principal>
@Generated("software.amazon.awssdk:codegen") public class Principal extends Object implements StructuredPojo, ToCopyableBuilder<Principal.Builder,Principal>
A principal's ARN and type.
Modifier and Type | Class | Description |
---|---|---|
static interface |
Principal.Builder |
Modifier and Type | Method | Description |
---|---|---|
static Principal.Builder |
builder() |
|
boolean |
equals(Object obj) |
|
int |
hashCode() |
|
void |
marshall(ProtocolMarshaller protocolMarshaller) |
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
principalARN() |
The ARN representing the principal (IAM user, role, or group).
|
String |
principalType() |
The principal type.
|
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() |
public String principalARN()
The ARN representing the principal (IAM user, role, or group).
public String principalType()
The principal type. Must be IAM
IAM
PrincipalType
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.