Class Principal
- java.lang.Object
-
- software.amazon.awssdk.services.servicecatalog.model.Principal
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Principal.Builder,Principal>
@Generated("software.amazon.awssdk:codegen") public final class Principal extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Principal.Builder,Principal>
Information about a principal.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePrincipal.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Principal.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringprincipalARN()The ARN of the principal (user, role, or group).PrincipalTypeprincipalType()The principal type.StringprincipalTypeAsString()The principal type.List<SdkField<?>>sdkFields()static Class<? extends Principal.Builder>serializableBuilderClass()Principal.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
principalARN
public final String principalARN()
The ARN of the principal (user, role, or group). This field allows for an ARN with no
accountID, with or without wildcard characters if thePrincipalTypeis anIAM_PATTERN.For more information, review associate-principal-with-portfolio in the Amazon Web Services CLI Command Reference.
- Returns:
- The ARN of the principal (user, role, or group). This field allows for an ARN with no
accountID, with or without wildcard characters if thePrincipalTypeis anIAM_PATTERN.For more information, review associate-principal-with-portfolio in the Amazon Web Services CLI Command Reference.
-
principalType
public final PrincipalType principalType()
The principal type. The supported value is
IAMif you use a fully defined ARN, orIAM_PATTERNif you use an ARN with noaccountID, with or without wildcard characters.If the service returns an enum value that is not available in the current SDK version,
principalTypewill returnPrincipalType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprincipalTypeAsString().- Returns:
- The principal type. The supported value is
IAMif you use a fully defined ARN, orIAM_PATTERNif you use an ARN with noaccountID, with or without wildcard characters. - See Also:
PrincipalType
-
principalTypeAsString
public final String principalTypeAsString()
The principal type. The supported value is
IAMif you use a fully defined ARN, orIAM_PATTERNif you use an ARN with noaccountID, with or without wildcard characters.If the service returns an enum value that is not available in the current SDK version,
principalTypewill returnPrincipalType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprincipalTypeAsString().- Returns:
- The principal type. The supported value is
IAMif you use a fully defined ARN, orIAM_PATTERNif you use an ARN with noaccountID, with or without wildcard characters. - See Also:
PrincipalType
-
toBuilder
public Principal.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Principal.Builder,Principal>
-
builder
public static Principal.Builder builder()
-
serializableBuilderClass
public static Class<? extends Principal.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-