/* * Copyright 2018-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.chime.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 CreateAppInstanceRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the AppInstance
.
*
* The metadata of the AppInstance
. Limited to a 1KB string in UTF-8.
*
* The ClientRequestToken
of the AppInstance
.
*
* Tags assigned to the AppInstance
.
*
* The name of the AppInstance
.
*
AppInstance
.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The name of the AppInstance
.
*
AppInstance
.
*/
public String getName() {
return this.name;
}
/**
*
* The name of the AppInstance
.
*
AppInstance
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateAppInstanceRequest withName(String name) {
setName(name);
return this;
}
/**
*
* The metadata of the AppInstance
. Limited to a 1KB string in UTF-8.
*
AppInstance
. Limited to a 1KB string in UTF-8.
*/
public void setMetadata(String metadata) {
this.metadata = metadata;
}
/**
*
* The metadata of the AppInstance
. Limited to a 1KB string in UTF-8.
*
AppInstance
. Limited to a 1KB string in UTF-8.
*/
public String getMetadata() {
return this.metadata;
}
/**
*
* The metadata of the AppInstance
. Limited to a 1KB string in UTF-8.
*
AppInstance
. Limited to a 1KB string in UTF-8.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateAppInstanceRequest withMetadata(String metadata) {
setMetadata(metadata);
return this;
}
/**
*
* The ClientRequestToken
of the AppInstance
.
*
ClientRequestToken
of the AppInstance
.
*/
public void setClientRequestToken(String clientRequestToken) {
this.clientRequestToken = clientRequestToken;
}
/**
*
* The ClientRequestToken
of the AppInstance
.
*
ClientRequestToken
of the AppInstance
.
*/
public String getClientRequestToken() {
return this.clientRequestToken;
}
/**
*
* The ClientRequestToken
of the AppInstance
.
*
ClientRequestToken
of the AppInstance
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateAppInstanceRequest withClientRequestToken(String clientRequestToken) {
setClientRequestToken(clientRequestToken);
return this;
}
/**
*
* Tags assigned to the AppInstance
.
*
AppInstance
.
*/
public java.util.List
* Tags assigned to the AppInstance
.
*
AppInstance
.
*/
public void setTags(java.util.Collection
* Tags assigned to the AppInstance
.
*
* 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 * Tags assigned to theAppInstance
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateAppInstanceRequest withTags(Tag... tags) {
if (this.tags == null) {
setTags(new java.util.ArrayList
* Tags assigned to the AppInstance
.
*
AppInstance
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateAppInstanceRequest withTags(java.util.Collection