/* * 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 CreateVpcIngressConnectionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The Amazon Resource Name (ARN) for this App Runner service that is used to create the VPC Ingress Connection * resource. *
*/ private String serviceArn; /** ** A name for the VPC Ingress Connection resource. It must be unique across all the active VPC Ingress Connections * in your Amazon Web Services account in the Amazon Web Services Region. *
*/ private String vpcIngressConnectionName; /** ** Specifications for the customer’s Amazon VPC and the related Amazon Web Services PrivateLink VPC endpoint that * are used to create the VPC Ingress Connection resource. *
*/ private IngressVpcConfiguration ingressVpcConfiguration; /** ** An optional list of metadata items that you can associate with the VPC Ingress Connection resource. A tag is a * key-value pair. *
*/ private java.util.List* The Amazon Resource Name (ARN) for this App Runner service that is used to create the VPC Ingress Connection * resource. *
* * @param serviceArn * The Amazon Resource Name (ARN) for this App Runner service that is used to create the VPC Ingress * Connection resource. */ public void setServiceArn(String serviceArn) { this.serviceArn = serviceArn; } /** ** The Amazon Resource Name (ARN) for this App Runner service that is used to create the VPC Ingress Connection * resource. *
* * @return The Amazon Resource Name (ARN) for this App Runner service that is used to create the VPC Ingress * Connection resource. */ public String getServiceArn() { return this.serviceArn; } /** ** The Amazon Resource Name (ARN) for this App Runner service that is used to create the VPC Ingress Connection * resource. *
* * @param serviceArn * The Amazon Resource Name (ARN) for this App Runner service that is used to create the VPC Ingress * Connection resource. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVpcIngressConnectionRequest withServiceArn(String serviceArn) { setServiceArn(serviceArn); return this; } /** ** A name for the VPC Ingress Connection resource. It must be unique across all the active VPC Ingress Connections * in your Amazon Web Services account in the Amazon Web Services Region. *
* * @param vpcIngressConnectionName * A name for the VPC Ingress Connection resource. It must be unique across all the active VPC Ingress * Connections in your Amazon Web Services account in the Amazon Web Services Region. */ public void setVpcIngressConnectionName(String vpcIngressConnectionName) { this.vpcIngressConnectionName = vpcIngressConnectionName; } /** ** A name for the VPC Ingress Connection resource. It must be unique across all the active VPC Ingress Connections * in your Amazon Web Services account in the Amazon Web Services Region. *
* * @return A name for the VPC Ingress Connection resource. It must be unique across all the active VPC Ingress * Connections in your Amazon Web Services account in the Amazon Web Services Region. */ public String getVpcIngressConnectionName() { return this.vpcIngressConnectionName; } /** ** A name for the VPC Ingress Connection resource. It must be unique across all the active VPC Ingress Connections * in your Amazon Web Services account in the Amazon Web Services Region. *
* * @param vpcIngressConnectionName * A name for the VPC Ingress Connection resource. It must be unique across all the active VPC Ingress * Connections in your 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 CreateVpcIngressConnectionRequest withVpcIngressConnectionName(String vpcIngressConnectionName) { setVpcIngressConnectionName(vpcIngressConnectionName); return this; } /** ** Specifications for the customer’s Amazon VPC and the related Amazon Web Services PrivateLink VPC endpoint that * are used to create the VPC Ingress Connection resource. *
* * @param ingressVpcConfiguration * Specifications for the customer’s Amazon VPC and the related Amazon Web Services PrivateLink VPC endpoint * that are used to create the VPC Ingress Connection resource. */ public void setIngressVpcConfiguration(IngressVpcConfiguration ingressVpcConfiguration) { this.ingressVpcConfiguration = ingressVpcConfiguration; } /** ** Specifications for the customer’s Amazon VPC and the related Amazon Web Services PrivateLink VPC endpoint that * are used to create the VPC Ingress Connection resource. *
* * @return Specifications for the customer’s Amazon VPC and the related Amazon Web Services PrivateLink VPC endpoint * that are used to create the VPC Ingress Connection resource. */ public IngressVpcConfiguration getIngressVpcConfiguration() { return this.ingressVpcConfiguration; } /** ** Specifications for the customer’s Amazon VPC and the related Amazon Web Services PrivateLink VPC endpoint that * are used to create the VPC Ingress Connection resource. *
* * @param ingressVpcConfiguration * Specifications for the customer’s Amazon VPC and the related Amazon Web Services PrivateLink VPC endpoint * that are used to create the VPC Ingress Connection resource. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVpcIngressConnectionRequest withIngressVpcConfiguration(IngressVpcConfiguration ingressVpcConfiguration) { setIngressVpcConfiguration(ingressVpcConfiguration); return this; } /** ** An optional list of metadata items that you can associate with the VPC Ingress Connection resource. A tag is a * key-value pair. *
* * @return An optional list of metadata items that you can associate with the VPC Ingress Connection resource. A tag * is a key-value pair. */ public java.util.List* An optional list of metadata items that you can associate with the VPC Ingress Connection resource. A tag is a * key-value pair. *
* * @param tags * An optional list of metadata items that you can associate with the VPC Ingress Connection resource. A tag * is a key-value pair. */ public void setTags(java.util.Collection* An optional list of metadata items that you can associate with the VPC Ingress 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 * An optional list of metadata items that you can associate with the VPC Ingress 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 CreateVpcIngressConnectionRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* An optional list of metadata items that you can associate with the VPC Ingress Connection resource. A tag is a * key-value pair. *
* * @param tags * An optional list of metadata items that you can associate with the VPC Ingress 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 CreateVpcIngressConnectionRequest withTags(java.util.Collection