/* * 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.backupgateway.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 CreateGatewayRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The activation key of the created gateway. *
*/ private String activationKey; /** ** The display name of the created gateway. *
*/ private String gatewayDisplayName; /** ** The type of created gateway. *
*/ private String gatewayType; /** ** A list of up to 50 tags to assign to the gateway. Each tag is a key-value pair. *
*/ private java.util.List* The activation key of the created gateway. *
* * @param activationKey * The activation key of the created gateway. */ public void setActivationKey(String activationKey) { this.activationKey = activationKey; } /** ** The activation key of the created gateway. *
* * @return The activation key of the created gateway. */ public String getActivationKey() { return this.activationKey; } /** ** The activation key of the created gateway. *
* * @param activationKey * The activation key of the created gateway. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateGatewayRequest withActivationKey(String activationKey) { setActivationKey(activationKey); return this; } /** ** The display name of the created gateway. *
* * @param gatewayDisplayName * The display name of the created gateway. */ public void setGatewayDisplayName(String gatewayDisplayName) { this.gatewayDisplayName = gatewayDisplayName; } /** ** The display name of the created gateway. *
* * @return The display name of the created gateway. */ public String getGatewayDisplayName() { return this.gatewayDisplayName; } /** ** The display name of the created gateway. *
* * @param gatewayDisplayName * The display name of the created gateway. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateGatewayRequest withGatewayDisplayName(String gatewayDisplayName) { setGatewayDisplayName(gatewayDisplayName); return this; } /** ** The type of created gateway. *
* * @param gatewayType * The type of created gateway. * @see GatewayType */ public void setGatewayType(String gatewayType) { this.gatewayType = gatewayType; } /** ** The type of created gateway. *
* * @return The type of created gateway. * @see GatewayType */ public String getGatewayType() { return this.gatewayType; } /** ** The type of created gateway. *
* * @param gatewayType * The type of created gateway. * @return Returns a reference to this object so that method calls can be chained together. * @see GatewayType */ public CreateGatewayRequest withGatewayType(String gatewayType) { setGatewayType(gatewayType); return this; } /** ** The type of created gateway. *
* * @param gatewayType * The type of created gateway. * @return Returns a reference to this object so that method calls can be chained together. * @see GatewayType */ public CreateGatewayRequest withGatewayType(GatewayType gatewayType) { this.gatewayType = gatewayType.toString(); return this; } /** ** A list of up to 50 tags to assign to the gateway. Each tag is a key-value pair. *
* * @return A list of up to 50 tags to assign to the gateway. Each tag is a key-value pair. */ public java.util.List* A list of up to 50 tags to assign to the gateway. Each tag is a key-value pair. *
* * @param tags * A list of up to 50 tags to assign to the gateway. Each tag is a key-value pair. */ public void setTags(java.util.Collection* A list of up to 50 tags to assign to the gateway. Each tag is a key-value pair. *
** 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 * A list of up to 50 tags to assign to the gateway. Each tag is a key-value pair. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateGatewayRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* A list of up to 50 tags to assign to the gateway. Each tag is a key-value pair. *
* * @param tags * A list of up to 50 tags to assign to the gateway. Each tag is a key-value pair. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateGatewayRequest withTags(java.util.Collection