Class UserIdentity
- java.lang.Object
-
- software.amazon.awssdk.services.codecatalyst.model.UserIdentity
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<UserIdentity.Builder,UserIdentity>
@Generated("software.amazon.awssdk:codegen") public final class UserIdentity extends Object implements SdkPojo, Serializable, ToCopyableBuilder<UserIdentity.Builder,UserIdentity>
Information about a user whose activity is recorded in an event for a space.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUserIdentity.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringawsAccountId()The Amazon Web Services account number of the user in Amazon Web Services, if any.static UserIdentity.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringprincipalId()The ID of the Amazon CodeCatalyst service principal.List<SdkField<?>>sdkFields()static Class<? extends UserIdentity.Builder>serializableBuilderClass()UserIdentity.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringuserName()The display name of the user in Amazon CodeCatalyst.UserTypeuserType()The role assigned to the user in a Amazon CodeCatalyst space or project when the event occurred.StringuserTypeAsString()The role assigned to the user in a Amazon CodeCatalyst space or project when the event occurred.-
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
-
userType
public final UserType userType()
The role assigned to the user in a Amazon CodeCatalyst space or project when the event occurred.
If the service returns an enum value that is not available in the current SDK version,
userTypewill returnUserType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromuserTypeAsString().- Returns:
- The role assigned to the user in a Amazon CodeCatalyst space or project when the event occurred.
- See Also:
UserType
-
userTypeAsString
public final String userTypeAsString()
The role assigned to the user in a Amazon CodeCatalyst space or project when the event occurred.
If the service returns an enum value that is not available in the current SDK version,
userTypewill returnUserType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromuserTypeAsString().- Returns:
- The role assigned to the user in a Amazon CodeCatalyst space or project when the event occurred.
- See Also:
UserType
-
principalId
public final String principalId()
The ID of the Amazon CodeCatalyst service principal.
- Returns:
- The ID of the Amazon CodeCatalyst service principal.
-
userName
public final String userName()
The display name of the user in Amazon CodeCatalyst.
- Returns:
- The display name of the user in Amazon CodeCatalyst.
-
awsAccountId
public final String awsAccountId()
The Amazon Web Services account number of the user in Amazon Web Services, if any.
- Returns:
- The Amazon Web Services account number of the user in Amazon Web Services, if any.
-
toBuilder
public UserIdentity.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<UserIdentity.Builder,UserIdentity>
-
builder
public static UserIdentity.Builder builder()
-
serializableBuilderClass
public static Class<? extends UserIdentity.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.
-
-