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

com.amazonaws.services.workdocs.model.CreateUserRequest 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 CreateUserRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The ID of the organization. *

*/ private String organizationId; /** *

* The login name of the user. *

*/ private String username; /** *

* The email address of the user. *

*/ private String emailAddress; /** *

* The given name of the user. *

*/ private String givenName; /** *

* The surname of the user. *

*/ private String surname; /** *

* The password of the user. *

*/ private String password; /** *

* The time zone ID of the user. *

*/ private String timeZoneId; /** *

* The amount of storage for the user. *

*/ private StorageRuleType storageRule; /** *

* 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 organization. *

* * @param organizationId * The ID of the organization. */ public void setOrganizationId(String organizationId) { this.organizationId = organizationId; } /** *

* The ID of the organization. *

* * @return The ID of the organization. */ public String getOrganizationId() { return this.organizationId; } /** *

* The ID of the organization. *

* * @param organizationId * The ID of the organization. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateUserRequest withOrganizationId(String organizationId) { setOrganizationId(organizationId); return this; } /** *

* The login name of the user. *

* * @param username * The login name of the user. */ public void setUsername(String username) { this.username = username; } /** *

* The login name of the user. *

* * @return The login name of the user. */ public String getUsername() { return this.username; } /** *

* The login name of the user. *

* * @param username * The login name of the user. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateUserRequest withUsername(String username) { setUsername(username); return this; } /** *

* The email address of the user. *

* * @param emailAddress * The email address of the user. */ public void setEmailAddress(String emailAddress) { this.emailAddress = emailAddress; } /** *

* The email address of the user. *

* * @return The email address of the user. */ public String getEmailAddress() { return this.emailAddress; } /** *

* The email address of the user. *

* * @param emailAddress * The email address of the user. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateUserRequest withEmailAddress(String emailAddress) { setEmailAddress(emailAddress); 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 CreateUserRequest 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 CreateUserRequest withSurname(String surname) { setSurname(surname); return this; } /** *

* The password of the user. *

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

* The password of the user. *

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

* The password of the user. *

* * @param password * The password of the user. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateUserRequest withPassword(String password) { setPassword(password); 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 CreateUserRequest withTimeZoneId(String timeZoneId) { setTimeZoneId(timeZoneId); 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 CreateUserRequest withStorageRule(StorageRuleType storageRule) { setStorageRule(storageRule); return this; } /** *

* 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 CreateUserRequest withAuthenticationToken(String authenticationToken) { setAuthenticationToken(authenticationToken); 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 (getOrganizationId() != null) sb.append("OrganizationId: ").append(getOrganizationId()).append(","); if (getUsername() != null) sb.append("Username: ").append(getUsername()).append(","); if (getEmailAddress() != null) sb.append("EmailAddress: ").append(getEmailAddress()).append(","); if (getGivenName() != null) sb.append("GivenName: ").append(getGivenName()).append(","); if (getSurname() != null) sb.append("Surname: ").append(getSurname()).append(","); if (getPassword() != null) sb.append("Password: ").append(getPassword()).append(","); if (getTimeZoneId() != null) sb.append("TimeZoneId: ").append(getTimeZoneId()).append(","); if (getStorageRule() != null) sb.append("StorageRule: ").append(getStorageRule()).append(","); if (getAuthenticationToken() != null) sb.append("AuthenticationToken: ").append(getAuthenticationToken()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateUserRequest == false) return false; CreateUserRequest other = (CreateUserRequest) obj; if (other.getOrganizationId() == null ^ this.getOrganizationId() == null) return false; if (other.getOrganizationId() != null && other.getOrganizationId().equals(this.getOrganizationId()) == false) return false; if (other.getUsername() == null ^ this.getUsername() == null) return false; if (other.getUsername() != null && other.getUsername().equals(this.getUsername()) == false) return false; if (other.getEmailAddress() == null ^ this.getEmailAddress() == null) return false; if (other.getEmailAddress() != null && other.getEmailAddress().equals(this.getEmailAddress()) == 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.getPassword() == null ^ this.getPassword() == null) return false; if (other.getPassword() != null && other.getPassword().equals(this.getPassword()) == 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.getStorageRule() == null ^ this.getStorageRule() == null) return false; if (other.getStorageRule() != null && other.getStorageRule().equals(this.getStorageRule()) == false) return false; if (other.getAuthenticationToken() == null ^ this.getAuthenticationToken() == null) return false; if (other.getAuthenticationToken() != null && other.getAuthenticationToken().equals(this.getAuthenticationToken()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getOrganizationId() == null) ? 0 : getOrganizationId().hashCode()); hashCode = prime * hashCode + ((getUsername() == null) ? 0 : getUsername().hashCode()); hashCode = prime * hashCode + ((getEmailAddress() == null) ? 0 : getEmailAddress().hashCode()); hashCode = prime * hashCode + ((getGivenName() == null) ? 0 : getGivenName().hashCode()); hashCode = prime * hashCode + ((getSurname() == null) ? 0 : getSurname().hashCode()); hashCode = prime * hashCode + ((getPassword() == null) ? 0 : getPassword().hashCode()); hashCode = prime * hashCode + ((getTimeZoneId() == null) ? 0 : getTimeZoneId().hashCode()); hashCode = prime * hashCode + ((getStorageRule() == null) ? 0 : getStorageRule().hashCode()); hashCode = prime * hashCode + ((getAuthenticationToken() == null) ? 0 : getAuthenticationToken().hashCode()); return hashCode; } @Override public CreateUserRequest clone() { return (CreateUserRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy