@Generated(value="software.amazon.awssdk:codegen") public final class AllowedPrincipal extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AllowedPrincipal.Builder,AllowedPrincipal>
Describes a principal.
Modifier and Type | Class and Description |
---|---|
static interface |
AllowedPrincipal.Builder |
Modifier and Type | Method and Description |
---|---|
static AllowedPrincipal.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
principal()
The Amazon Resource Name (ARN) of the principal.
|
PrincipalType |
principalType()
The type of principal.
|
String |
principalTypeAsString()
The type of principal.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AllowedPrincipal.Builder> |
serializableBuilderClass() |
AllowedPrincipal.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public PrincipalType principalType()
The type of principal.
If the service returns an enum value that is not available in the current SDK version, principalType
will return PrincipalType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
principalTypeAsString()
.
PrincipalType
public String principalTypeAsString()
The type of principal.
If the service returns an enum value that is not available in the current SDK version, principalType
will return PrincipalType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
principalTypeAsString()
.
PrincipalType
public String principal()
The Amazon Resource Name (ARN) of the principal.
public AllowedPrincipal.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<AllowedPrincipal.Builder,AllowedPrincipal>
public static AllowedPrincipal.Builder builder()
public static Class<? extends AllowedPrincipal.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.