/* * 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.apprunner.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 CreateConnectionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* A name for the new connection. It must be unique across all App Runner connections for the Amazon Web Services * account in the Amazon Web Services Region. *
*/ private String connectionName; /** ** The source repository provider. *
*/ private String providerType; /** ** A list of metadata items that you can associate with your connection resource. A tag is a key-value pair. *
*/ private java.util.List* A name for the new connection. It must be unique across all App Runner connections for the Amazon Web Services * account in the Amazon Web Services Region. *
* * @param connectionName * A name for the new connection. It must be unique across all App Runner connections for the Amazon Web * Services account in the Amazon Web Services Region. */ public void setConnectionName(String connectionName) { this.connectionName = connectionName; } /** ** A name for the new connection. It must be unique across all App Runner connections for the Amazon Web Services * account in the Amazon Web Services Region. *
* * @return A name for the new connection. It must be unique across all App Runner connections for the Amazon Web * Services account in the Amazon Web Services Region. */ public String getConnectionName() { return this.connectionName; } /** ** A name for the new connection. It must be unique across all App Runner connections for the Amazon Web Services * account in the Amazon Web Services Region. *
* * @param connectionName * A name for the new connection. It must be unique across all App Runner connections for the Amazon Web * Services account in the Amazon Web Services Region. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConnectionRequest withConnectionName(String connectionName) { setConnectionName(connectionName); return this; } /** ** The source repository provider. *
* * @param providerType * The source repository provider. * @see ProviderType */ public void setProviderType(String providerType) { this.providerType = providerType; } /** ** The source repository provider. *
* * @return The source repository provider. * @see ProviderType */ public String getProviderType() { return this.providerType; } /** ** The source repository provider. *
* * @param providerType * The source repository provider. * @return Returns a reference to this object so that method calls can be chained together. * @see ProviderType */ public CreateConnectionRequest withProviderType(String providerType) { setProviderType(providerType); return this; } /** ** The source repository provider. *
* * @param providerType * The source repository provider. * @return Returns a reference to this object so that method calls can be chained together. * @see ProviderType */ public CreateConnectionRequest withProviderType(ProviderType providerType) { this.providerType = providerType.toString(); return this; } /** ** A list of metadata items that you can associate with your connection resource. A tag is a key-value pair. *
* * @return A list of metadata items that you can associate with your connection resource. A tag is a key-value pair. */ public java.util.List* A list of metadata items that you can associate with your connection resource. A tag is a key-value pair. *
* * @param tags * A list of metadata items that you can associate with your connection resource. A tag is a key-value pair. */ public void setTags(java.util.Collection* A list of metadata items that you can associate with your connection resource. A 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 metadata items that you can associate with your connection resource. A tag is a key-value pair. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConnectionRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* A list of metadata items that you can associate with your connection resource. A tag is a key-value pair. *
* * @param tags * A list of metadata items that you can associate with your connection resource. A tag is a key-value pair. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConnectionRequest withTags(java.util.Collection