/* * Copyright 2010-2023 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.chimesdkidentity.model; import java.io.Serializable; import com.amazonaws.AmazonWebServiceRequest; /** *
 * Creates a user under an Amazon Chime AppInstance. The request
 * consists of a unique appInstanceUserId and Name for
 * that user.
 * 
     * The ARN of the AppInstance request.
     * 
     * Constraints:
     * Length: 5 - 1600
     * Pattern:
     * arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:
     * [a-z0-9-\.]{0,63}:[^/].{0,1023}
     */
    private String appInstanceArn;
    /**
     * 
     * The user ID of the AppInstance.
     * 
     * Constraints:
     * Length: 1 - 64
     * Pattern: [A-Za-z0-9]([A-Za-z0-9\:\-\_\.\@]{0,62}[A-Za-z0-9])?
     */
    private String appInstanceUserId;
    /**
     * 
* The user's name. *
*
     * Constraints:
     * Length: 1 - 100
     * Pattern: .*\S.*
     */
    private String name;
    /**
     * 
* The request's metadata. Limited to a 1KB string in UTF-8. *
*
     * Constraints:
     * Length: 0 - 1024
     * Pattern: .*
     */
    private String metadata;
    /**
     * 
     * The unique ID of the request. Use different tokens to request additional
     * AppInstances.
     * 
     * Constraints:
     * Length: 2 - 64
     * Pattern: [-_a-zA-Z0-9]*
     */
    private String clientRequestToken;
    /**
     * 
     * Tags assigned to the AppInstanceUser.
     * 
     * Settings that control the interval after which the
     * AppInstanceUser is automatically deleted.
     * 
     * The ARN of the AppInstance request.
     * 
     * Constraints:
     * Length: 5 - 1600
     * Pattern:
     * arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:
     * [a-z0-9-\.]{0,63}:[^/].{0,1023}
     *
     * @return 
     *         The ARN of the AppInstance request.
     *         
     * The ARN of the AppInstance request.
     * 
     * Constraints:
     * Length: 5 - 1600
     * Pattern:
     * arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:
     * [a-z0-9-\.]{0,63}:[^/].{0,1023}
     *
     * @param appInstanceArn 
     *            The ARN of the AppInstance request.
     *            
     * The ARN of the AppInstance request.
     * 
* Returns a reference to this object so that method calls can be chained * together. *
     * Constraints:
     * Length: 5 - 1600
     * Pattern:
     * arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:
     * [a-z0-9-\.]{0,63}:[^/].{0,1023}
     *
     * @param appInstanceArn 
     *            The ARN of the AppInstance request.
     *            
     * The user ID of the AppInstance.
     * 
     * Constraints:
     * Length: 1 - 64
     * Pattern: [A-Za-z0-9]([A-Za-z0-9\:\-\_\.\@]{0,62}[A-Za-z0-9])?
     *
     * @return 
     *         The user ID of the AppInstance.
     *         
     * The user ID of the AppInstance.
     * 
     * Constraints:
     * Length: 1 - 64
     * Pattern: [A-Za-z0-9]([A-Za-z0-9\:\-\_\.\@]{0,62}[A-Za-z0-9])?
     *
     * @param appInstanceUserId 
     *            The user ID of the AppInstance.
     *            
     * The user ID of the AppInstance.
     * 
* Returns a reference to this object so that method calls can be chained * together. *
     * Constraints:
     * Length: 1 - 64
     * Pattern: [A-Za-z0-9]([A-Za-z0-9\:\-\_\.\@]{0,62}[A-Za-z0-9])?
     *
     * @param appInstanceUserId 
     *            The user ID of the AppInstance.
     *            
* The user's name. *
*
     * Constraints:
     * Length: 1 - 100
     * Pattern: .*\S.*
     *
     * @return 
* The user's name. *
*/ public String getName() { return name; } /** ** The user's name. *
*
     * Constraints:
     * Length: 1 - 100
     * Pattern: .*\S.*
     *
     * @param name 
* The user's name. *
*/ public void setName(String name) { this.name = name; } /** ** The user's name. *
** Returns a reference to this object so that method calls can be chained * together. *
     * Constraints:
     * Length: 1 - 100
     * Pattern: .*\S.*
     *
     * @param name 
* The user's name. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreateAppInstanceUserRequest withName(String name) { this.name = name; return this; } /** ** The request's metadata. Limited to a 1KB string in UTF-8. *
*
     * Constraints:
     * Length: 0 - 1024
     * Pattern: .*
     *
     * @return 
* The request's metadata. Limited to a 1KB string in UTF-8. *
*/ public String getMetadata() { return metadata; } /** ** The request's metadata. Limited to a 1KB string in UTF-8. *
*
     * Constraints:
     * Length: 0 - 1024
     * Pattern: .*
     *
     * @param metadata 
* The request's metadata. Limited to a 1KB string in UTF-8. *
*/ public void setMetadata(String metadata) { this.metadata = metadata; } /** ** The request's metadata. Limited to a 1KB string in UTF-8. *
** Returns a reference to this object so that method calls can be chained * together. *
     * Constraints:
     * Length: 0 - 1024
     * Pattern: .*
     *
     * @param metadata 
* The request's metadata. Limited to a 1KB string in UTF-8. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreateAppInstanceUserRequest withMetadata(String metadata) { this.metadata = metadata; return this; } /** *
     * The unique ID of the request. Use different tokens to request additional
     * AppInstances.
     * 
     * Constraints:
     * Length: 2 - 64
     * Pattern: [-_a-zA-Z0-9]*
     *
     * @return 
     *         The unique ID of the request. Use different tokens to request
     *         additional AppInstances.
     *         
     * The unique ID of the request. Use different tokens to request additional
     * AppInstances.
     * 
     * Constraints:
     * Length: 2 - 64
     * Pattern: [-_a-zA-Z0-9]*
     *
     * @param clientRequestToken 
     *            The unique ID of the request. Use different tokens to request
     *            additional AppInstances.
     *            
     * The unique ID of the request. Use different tokens to request additional
     * AppInstances.
     * 
* Returns a reference to this object so that method calls can be chained * together. *
     * Constraints:
     * Length: 2 - 64
     * Pattern: [-_a-zA-Z0-9]*
     *
     * @param clientRequestToken 
     *            The unique ID of the request. Use different tokens to request
     *            additional AppInstances.
     *            
     * Tags assigned to the AppInstanceUser.
     * 
     *         Tags assigned to the AppInstanceUser.
     *         
     * Tags assigned to the AppInstanceUser.
     * 
     *            Tags assigned to the AppInstanceUser.
     *            
     * Tags assigned to the AppInstanceUser.
     * 
* Returns a reference to this object so that method calls can be chained * together. * * @param tags
     *            Tags assigned to the AppInstanceUser.
     *            
     * Tags assigned to the AppInstanceUser.
     * 
* Returns a reference to this object so that method calls can be chained * together. * * @param tags
     *            Tags assigned to the AppInstanceUser.
     *            
     * Settings that control the interval after which the
     * AppInstanceUser is automatically deleted.
     * 
     *         Settings that control the interval after which the
     *         AppInstanceUser is automatically deleted.
     *         
     * Settings that control the interval after which the
     * AppInstanceUser is automatically deleted.
     * 
     *            Settings that control the interval after which the
     *            AppInstanceUser is automatically deleted.
     *            
     * Settings that control the interval after which the
     * AppInstanceUser is automatically deleted.
     * 
* Returns a reference to this object so that method calls can be chained * together. * * @param expirationSettings
     *            Settings that control the interval after which the
     *            AppInstanceUser is automatically deleted.
     *