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

com.amazonaws.services.chimesdkidentity.model.CreateAppInstanceBotRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Chime SDK Identity module holds the client classes that are used for communicating with Amazon Chime SDK Identity Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2019-2024 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 javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

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

    /**
     * 

* The ARN of the AppInstance request. *

*/ private String appInstanceArn; /** *

* The user's name. *

*/ private String name; /** *

* The request metadata. Limited to a 1KB string in UTF-8. *

*/ private String metadata; /** *

* The unique ID for the client making the request. Use different tokens for different AppInstanceBots. *

*/ private String clientRequestToken; /** *

* The tags assigned to the AppInstanceBot. *

*/ private java.util.List tags; /** *

* Configuration information about the Amazon Lex V2 V2 bot. *

*/ private Configuration configuration; /** *

* The ARN of the AppInstance request. *

* * @param appInstanceArn * The ARN of the AppInstance request. */ public void setAppInstanceArn(String appInstanceArn) { this.appInstanceArn = appInstanceArn; } /** *

* The ARN of the AppInstance request. *

* * @return The ARN of the AppInstance request. */ public String getAppInstanceArn() { return this.appInstanceArn; } /** *

* The ARN of the AppInstance request. *

* * @param appInstanceArn * The ARN of the AppInstance request. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppInstanceBotRequest withAppInstanceArn(String appInstanceArn) { setAppInstanceArn(appInstanceArn); return this; } /** *

* The user's name. *

* * @param name * The user's name. */ public void setName(String name) { this.name = name; } /** *

* The user's name. *

* * @return The user's name. */ public String getName() { return this.name; } /** *

* The user's name. *

* * @param name * The user's name. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppInstanceBotRequest withName(String name) { setName(name); return this; } /** *

* The request metadata. Limited to a 1KB string in UTF-8. *

* * @param metadata * The request metadata. Limited to a 1KB string in UTF-8. */ public void setMetadata(String metadata) { this.metadata = metadata; } /** *

* The request metadata. Limited to a 1KB string in UTF-8. *

* * @return The request metadata. Limited to a 1KB string in UTF-8. */ public String getMetadata() { return this.metadata; } /** *

* The request metadata. Limited to a 1KB string in UTF-8. *

* * @param metadata * The request metadata. Limited to a 1KB string in UTF-8. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppInstanceBotRequest withMetadata(String metadata) { setMetadata(metadata); return this; } /** *

* The unique ID for the client making the request. Use different tokens for different AppInstanceBots. *

* * @param clientRequestToken * The unique ID for the client making the request. Use different tokens for different * AppInstanceBots. */ public void setClientRequestToken(String clientRequestToken) { this.clientRequestToken = clientRequestToken; } /** *

* The unique ID for the client making the request. Use different tokens for different AppInstanceBots. *

* * @return The unique ID for the client making the request. Use different tokens for different * AppInstanceBots. */ public String getClientRequestToken() { return this.clientRequestToken; } /** *

* The unique ID for the client making the request. Use different tokens for different AppInstanceBots. *

* * @param clientRequestToken * The unique ID for the client making the request. Use different tokens for different * AppInstanceBots. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppInstanceBotRequest withClientRequestToken(String clientRequestToken) { setClientRequestToken(clientRequestToken); return this; } /** *

* The tags assigned to the AppInstanceBot. *

* * @return The tags assigned to the AppInstanceBot. */ public java.util.List getTags() { return tags; } /** *

* The tags assigned to the AppInstanceBot. *

* * @param tags * The tags assigned to the AppInstanceBot. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList(tags); } /** *

* The tags assigned to the AppInstanceBot. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *

* * @param tags * The tags assigned to the AppInstanceBot. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppInstanceBotRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** *

* The tags assigned to the AppInstanceBot. *

* * @param tags * The tags assigned to the AppInstanceBot. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppInstanceBotRequest withTags(java.util.Collection tags) { setTags(tags); return this; } /** *

* Configuration information about the Amazon Lex V2 V2 bot. *

* * @param configuration * Configuration information about the Amazon Lex V2 V2 bot. */ public void setConfiguration(Configuration configuration) { this.configuration = configuration; } /** *

* Configuration information about the Amazon Lex V2 V2 bot. *

* * @return Configuration information about the Amazon Lex V2 V2 bot. */ public Configuration getConfiguration() { return this.configuration; } /** *

* Configuration information about the Amazon Lex V2 V2 bot. *

* * @param configuration * Configuration information about the Amazon Lex V2 V2 bot. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppInstanceBotRequest withConfiguration(Configuration configuration) { setConfiguration(configuration); return this; } /** * 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. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAppInstanceArn() != null) sb.append("AppInstanceArn: ").append(getAppInstanceArn()).append(","); if (getName() != null) sb.append("Name: ").append("***Sensitive Data Redacted***").append(","); if (getMetadata() != null) sb.append("Metadata: ").append("***Sensitive Data Redacted***").append(","); if (getClientRequestToken() != null) sb.append("ClientRequestToken: ").append(getClientRequestToken()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getConfiguration() != null) sb.append("Configuration: ").append(getConfiguration()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateAppInstanceBotRequest == false) return false; CreateAppInstanceBotRequest other = (CreateAppInstanceBotRequest) obj; if (other.getAppInstanceArn() == null ^ this.getAppInstanceArn() == null) return false; if (other.getAppInstanceArn() != null && other.getAppInstanceArn().equals(this.getAppInstanceArn()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getMetadata() == null ^ this.getMetadata() == null) return false; if (other.getMetadata() != null && other.getMetadata().equals(this.getMetadata()) == false) return false; if (other.getClientRequestToken() == null ^ this.getClientRequestToken() == null) return false; if (other.getClientRequestToken() != null && other.getClientRequestToken().equals(this.getClientRequestToken()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getConfiguration() == null ^ this.getConfiguration() == null) return false; if (other.getConfiguration() != null && other.getConfiguration().equals(this.getConfiguration()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAppInstanceArn() == null) ? 0 : getAppInstanceArn().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getMetadata() == null) ? 0 : getMetadata().hashCode()); hashCode = prime * hashCode + ((getClientRequestToken() == null) ? 0 : getClientRequestToken().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getConfiguration() == null) ? 0 : getConfiguration().hashCode()); return hashCode; } @Override public CreateAppInstanceBotRequest clone() { return (CreateAppInstanceBotRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy