Class UpdateUserRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.workmail.model.WorkMailRequest
-
- software.amazon.awssdk.services.workmail.model.UpdateUserRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<UpdateUserRequest.Builder,UpdateUserRequest>
@Generated("software.amazon.awssdk:codegen") public final class UpdateUserRequest extends WorkMailRequest implements ToCopyableBuilder<UpdateUserRequest.Builder,UpdateUserRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUpdateUserRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UpdateUserRequest.Builderbuilder()Stringcity()Updates the user's city.Stringcompany()Updates the user's company.Stringcountry()Updates the user's country.Stringdepartment()Updates the user's department.StringdisplayName()Updates the display name of the user.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringfirstName()Updates the user's first name.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()BooleanhiddenFromGlobalAddressList()If enabled, the user is hidden from the global address list.Stringinitials()Updates the user's initials.StringjobTitle()Updates the user's job title.StringlastName()Updates the user's last name.Stringoffice()Updates the user's office.StringorganizationId()The identifier for the organization under which the user exists.UserRolerole()Updates the user role.StringroleAsString()Updates the user role.List<SdkField<?>>sdkFields()static Class<? extends UpdateUserRequest.Builder>serializableBuilderClass()Stringstreet()Updates the user's street address.Stringtelephone()Updates the user's contact details.UpdateUserRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringuserId()The identifier for the user to be updated.StringzipCode()Updates the user's zipcode.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
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
-
organizationId
public final String organizationId()
The identifier for the organization under which the user exists.
- Returns:
- The identifier for the organization under which the user exists.
-
userId
public final String userId()
The identifier for the user to be updated.
The identifier can be the UserId, Username, or email. The following identity formats are available:
-
User ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234
-
Email address: user@domain.tld
-
User name: user
- Returns:
- The identifier for the user to be updated.
The identifier can be the UserId, Username, or email. The following identity formats are available:
-
User ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234
-
Email address: user@domain.tld
-
User name: user
-
-
-
role
public final UserRole role()
Updates the user role.
You cannot pass SYSTEM_USER or RESOURCE.
If the service returns an enum value that is not available in the current SDK version,
rolewill returnUserRole.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromroleAsString().- Returns:
- Updates the user role.
You cannot pass SYSTEM_USER or RESOURCE.
- See Also:
UserRole
-
roleAsString
public final String roleAsString()
Updates the user role.
You cannot pass SYSTEM_USER or RESOURCE.
If the service returns an enum value that is not available in the current SDK version,
rolewill returnUserRole.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromroleAsString().- Returns:
- Updates the user role.
You cannot pass SYSTEM_USER or RESOURCE.
- See Also:
UserRole
-
displayName
public final String displayName()
Updates the display name of the user.
- Returns:
- Updates the display name of the user.
-
firstName
public final String firstName()
Updates the user's first name.
- Returns:
- Updates the user's first name.
-
lastName
public final String lastName()
Updates the user's last name.
- Returns:
- Updates the user's last name.
-
hiddenFromGlobalAddressList
public final Boolean hiddenFromGlobalAddressList()
If enabled, the user is hidden from the global address list.
- Returns:
- If enabled, the user is hidden from the global address list.
-
initials
public final String initials()
Updates the user's initials.
- Returns:
- Updates the user's initials.
-
telephone
public final String telephone()
Updates the user's contact details.
- Returns:
- Updates the user's contact details.
-
street
public final String street()
Updates the user's street address.
- Returns:
- Updates the user's street address.
-
jobTitle
public final String jobTitle()
Updates the user's job title.
- Returns:
- Updates the user's job title.
-
city
public final String city()
Updates the user's city.
- Returns:
- Updates the user's city.
-
company
public final String company()
Updates the user's company.
- Returns:
- Updates the user's company.
-
zipCode
public final String zipCode()
Updates the user's zipcode.
- Returns:
- Updates the user's zipcode.
-
department
public final String department()
Updates the user's department.
- Returns:
- Updates the user's department.
-
country
public final String country()
Updates the user's country.
- Returns:
- Updates the user's country.
-
office
public final String office()
Updates the user's office.
- Returns:
- Updates the user's office.
-
toBuilder
public UpdateUserRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<UpdateUserRequest.Builder,UpdateUserRequest>- Specified by:
toBuilderin classWorkMailRequest
-
builder
public static UpdateUserRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends UpdateUserRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-