All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.workdocs.model.UpdateUserRequest Maven / Gradle / Ivy

/*
 * Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.workdocs.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class UpdateUserRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in * accessing the API using AWS credentials. *

*/ private String authenticationToken; /** *

* The ID of the user. *

*/ private String userId; /** *

* The given name of the user. *

*/ private String givenName; /** *

* The surname of the user. *

*/ private String surname; /** *

* The type of the user. *

*/ private String type; /** *

* The amount of storage for the user. *

*/ private StorageRuleType storageRule; /** *

* The time zone ID of the user. *

*/ private String timeZoneId; /** *

* The locale of the user. *

*/ private String locale; /** *

* Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in * accessing the API using AWS credentials. *

* * @param authenticationToken * Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, * as in accessing the API using AWS credentials. */ public void setAuthenticationToken(String authenticationToken) { this.authenticationToken = authenticationToken; } /** *

* Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in * accessing the API using AWS credentials. *

* * @return Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, * as in accessing the API using AWS credentials. */ public String getAuthenticationToken() { return this.authenticationToken; } /** *

* Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in * accessing the API using AWS credentials. *

* * @param authenticationToken * Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, * as in accessing the API using AWS credentials. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateUserRequest withAuthenticationToken(String authenticationToken) { setAuthenticationToken(authenticationToken); return this; } /** *

* The ID of the user. *

* * @param userId * The ID of the user. */ public void setUserId(String userId) { this.userId = userId; } /** *

* The ID of the user. *

* * @return The ID of the user. */ public String getUserId() { return this.userId; } /** *

* The ID of the user. *

* * @param userId * The ID of the user. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateUserRequest withUserId(String userId) { setUserId(userId); return this; } /** *

* The given name of the user. *

* * @param givenName * The given name of the user. */ public void setGivenName(String givenName) { this.givenName = givenName; } /** *

* The given name of the user. *

* * @return The given name of the user. */ public String getGivenName() { return this.givenName; } /** *

* The given name of the user. *

* * @param givenName * The given name of the user. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateUserRequest withGivenName(String givenName) { setGivenName(givenName); return this; } /** *

* The surname of the user. *

* * @param surname * The surname of the user. */ public void setSurname(String surname) { this.surname = surname; } /** *

* The surname of the user. *

* * @return The surname of the user. */ public String getSurname() { return this.surname; } /** *

* The surname of the user. *

* * @param surname * The surname of the user. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateUserRequest withSurname(String surname) { setSurname(surname); return this; } /** *

* The type of the user. *

* * @param type * The type of the user. * @see UserType */ public void setType(String type) { this.type = type; } /** *

* The type of the user. *

* * @return The type of the user. * @see UserType */ public String getType() { return this.type; } /** *

* The type of the user. *

* * @param type * The type of the user. * @return Returns a reference to this object so that method calls can be chained together. * @see UserType */ public UpdateUserRequest withType(String type) { setType(type); return this; } /** *

* The type of the user. *

* * @param type * The type of the user. * @see UserType */ public void setType(UserType type) { this.type = type.toString(); } /** *

* The type of the user. *

* * @param type * The type of the user. * @return Returns a reference to this object so that method calls can be chained together. * @see UserType */ public UpdateUserRequest withType(UserType type) { setType(type); return this; } /** *

* The amount of storage for the user. *

* * @param storageRule * The amount of storage for the user. */ public void setStorageRule(StorageRuleType storageRule) { this.storageRule = storageRule; } /** *

* The amount of storage for the user. *

* * @return The amount of storage for the user. */ public StorageRuleType getStorageRule() { return this.storageRule; } /** *

* The amount of storage for the user. *

* * @param storageRule * The amount of storage for the user. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateUserRequest withStorageRule(StorageRuleType storageRule) { setStorageRule(storageRule); return this; } /** *

* The time zone ID of the user. *

* * @param timeZoneId * The time zone ID of the user. */ public void setTimeZoneId(String timeZoneId) { this.timeZoneId = timeZoneId; } /** *

* The time zone ID of the user. *

* * @return The time zone ID of the user. */ public String getTimeZoneId() { return this.timeZoneId; } /** *

* The time zone ID of the user. *

* * @param timeZoneId * The time zone ID of the user. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateUserRequest withTimeZoneId(String timeZoneId) { setTimeZoneId(timeZoneId); return this; } /** *

* The locale of the user. *

* * @param locale * The locale of the user. * @see LocaleType */ public void setLocale(String locale) { this.locale = locale; } /** *

* The locale of the user. *

* * @return The locale of the user. * @see LocaleType */ public String getLocale() { return this.locale; } /** *

* The locale of the user. *

* * @param locale * The locale of the user. * @return Returns a reference to this object so that method calls can be chained together. * @see LocaleType */ public UpdateUserRequest withLocale(String locale) { setLocale(locale); return this; } /** *

* The locale of the user. *

* * @param locale * The locale of the user. * @see LocaleType */ public void setLocale(LocaleType locale) { this.locale = locale.toString(); } /** *

* The locale of the user. *

* * @param locale * The locale of the user. * @return Returns a reference to this object so that method calls can be chained together. * @see LocaleType */ public UpdateUserRequest withLocale(LocaleType locale) { setLocale(locale); return this; } /** * Returns a string representation of this object; useful for testing and debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAuthenticationToken() != null) sb.append("AuthenticationToken: ").append(getAuthenticationToken()).append(","); if (getUserId() != null) sb.append("UserId: ").append(getUserId()).append(","); if (getGivenName() != null) sb.append("GivenName: ").append(getGivenName()).append(","); if (getSurname() != null) sb.append("Surname: ").append(getSurname()).append(","); if (getType() != null) sb.append("Type: ").append(getType()).append(","); if (getStorageRule() != null) sb.append("StorageRule: ").append(getStorageRule()).append(","); if (getTimeZoneId() != null) sb.append("TimeZoneId: ").append(getTimeZoneId()).append(","); if (getLocale() != null) sb.append("Locale: ").append(getLocale()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateUserRequest == false) return false; UpdateUserRequest other = (UpdateUserRequest) obj; if (other.getAuthenticationToken() == null ^ this.getAuthenticationToken() == null) return false; if (other.getAuthenticationToken() != null && other.getAuthenticationToken().equals(this.getAuthenticationToken()) == false) return false; if (other.getUserId() == null ^ this.getUserId() == null) return false; if (other.getUserId() != null && other.getUserId().equals(this.getUserId()) == false) return false; if (other.getGivenName() == null ^ this.getGivenName() == null) return false; if (other.getGivenName() != null && other.getGivenName().equals(this.getGivenName()) == false) return false; if (other.getSurname() == null ^ this.getSurname() == null) return false; if (other.getSurname() != null && other.getSurname().equals(this.getSurname()) == false) return false; if (other.getType() == null ^ this.getType() == null) return false; if (other.getType() != null && other.getType().equals(this.getType()) == false) return false; if (other.getStorageRule() == null ^ this.getStorageRule() == null) return false; if (other.getStorageRule() != null && other.getStorageRule().equals(this.getStorageRule()) == false) return false; if (other.getTimeZoneId() == null ^ this.getTimeZoneId() == null) return false; if (other.getTimeZoneId() != null && other.getTimeZoneId().equals(this.getTimeZoneId()) == false) return false; if (other.getLocale() == null ^ this.getLocale() == null) return false; if (other.getLocale() != null && other.getLocale().equals(this.getLocale()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAuthenticationToken() == null) ? 0 : getAuthenticationToken().hashCode()); hashCode = prime * hashCode + ((getUserId() == null) ? 0 : getUserId().hashCode()); hashCode = prime * hashCode + ((getGivenName() == null) ? 0 : getGivenName().hashCode()); hashCode = prime * hashCode + ((getSurname() == null) ? 0 : getSurname().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getStorageRule() == null) ? 0 : getStorageRule().hashCode()); hashCode = prime * hashCode + ((getTimeZoneId() == null) ? 0 : getTimeZoneId().hashCode()); hashCode = prime * hashCode + ((getLocale() == null) ? 0 : getLocale().hashCode()); return hashCode; } @Override public UpdateUserRequest clone() { return (UpdateUserRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy