/* * 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.quicksight.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 CreateVPCConnectionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The Amazon Web Services account ID of the account where you want to create a new VPC connection. *
*/ private String awsAccountId; /** ** The ID of the VPC connection that you're creating. This ID is a unique identifier for each Amazon Web Services * Region in an Amazon Web Services account. *
*/ private String vPCConnectionId; /** ** The display name for the VPC connection. *
*/ private String name; /** ** A list of subnet IDs for the VPC connection. *
*/ private java.util.List* A list of security group IDs for the VPC connection. *
*/ private java.util.List* A list of IP addresses of DNS resolver endpoints for the VPC connection. *
*/ private java.util.List* The IAM role to associate with the VPC connection. *
*/ private String roleArn; /** ** A map of the key-value pairs for the resource tag or tags assigned to the VPC connection. *
*/ private java.util.List* The Amazon Web Services account ID of the account where you want to create a new VPC connection. *
* * @param awsAccountId * The Amazon Web Services account ID of the account where you want to create a new VPC connection. */ public void setAwsAccountId(String awsAccountId) { this.awsAccountId = awsAccountId; } /** ** The Amazon Web Services account ID of the account where you want to create a new VPC connection. *
* * @return The Amazon Web Services account ID of the account where you want to create a new VPC connection. */ public String getAwsAccountId() { return this.awsAccountId; } /** ** The Amazon Web Services account ID of the account where you want to create a new VPC connection. *
* * @param awsAccountId * The Amazon Web Services account ID of the account where you want to create a new VPC connection. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVPCConnectionRequest withAwsAccountId(String awsAccountId) { setAwsAccountId(awsAccountId); return this; } /** ** The ID of the VPC connection that you're creating. This ID is a unique identifier for each Amazon Web Services * Region in an Amazon Web Services account. *
* * @param vPCConnectionId * The ID of the VPC connection that you're creating. This ID is a unique identifier for each Amazon Web * Services Region in an Amazon Web Services account. */ public void setVPCConnectionId(String vPCConnectionId) { this.vPCConnectionId = vPCConnectionId; } /** ** The ID of the VPC connection that you're creating. This ID is a unique identifier for each Amazon Web Services * Region in an Amazon Web Services account. *
* * @return The ID of the VPC connection that you're creating. This ID is a unique identifier for each Amazon Web * Services Region in an Amazon Web Services account. */ public String getVPCConnectionId() { return this.vPCConnectionId; } /** ** The ID of the VPC connection that you're creating. This ID is a unique identifier for each Amazon Web Services * Region in an Amazon Web Services account. *
* * @param vPCConnectionId * The ID of the VPC connection that you're creating. This ID is a unique identifier for each Amazon Web * Services Region in an Amazon Web Services account. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVPCConnectionRequest withVPCConnectionId(String vPCConnectionId) { setVPCConnectionId(vPCConnectionId); return this; } /** ** The display name for the VPC connection. *
* * @param name * The display name for the VPC connection. */ public void setName(String name) { this.name = name; } /** ** The display name for the VPC connection. *
* * @return The display name for the VPC connection. */ public String getName() { return this.name; } /** ** The display name for the VPC connection. *
* * @param name * The display name for the VPC connection. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVPCConnectionRequest withName(String name) { setName(name); return this; } /** ** A list of subnet IDs for the VPC connection. *
* * @return A list of subnet IDs for the VPC connection. */ public java.util.List* A list of subnet IDs for the VPC connection. *
* * @param subnetIds * A list of subnet IDs for the VPC connection. */ public void setSubnetIds(java.util.Collection* A list of subnet IDs for the VPC connection. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSubnetIds(java.util.Collection)} or {@link #withSubnetIds(java.util.Collection)} if you want to * override the existing values. *
* * @param subnetIds * A list of subnet IDs for the VPC connection. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVPCConnectionRequest withSubnetIds(String... subnetIds) { if (this.subnetIds == null) { setSubnetIds(new java.util.ArrayList* A list of subnet IDs for the VPC connection. *
* * @param subnetIds * A list of subnet IDs for the VPC connection. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVPCConnectionRequest withSubnetIds(java.util.Collection* A list of security group IDs for the VPC connection. *
* * @return A list of security group IDs for the VPC connection. */ public java.util.List* A list of security group IDs for the VPC connection. *
* * @param securityGroupIds * A list of security group IDs for the VPC connection. */ public void setSecurityGroupIds(java.util.Collection* A list of security group IDs for the VPC connection. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSecurityGroupIds(java.util.Collection)} or {@link #withSecurityGroupIds(java.util.Collection)} if you * want to override the existing values. *
* * @param securityGroupIds * A list of security group IDs for the VPC connection. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVPCConnectionRequest withSecurityGroupIds(String... securityGroupIds) { if (this.securityGroupIds == null) { setSecurityGroupIds(new java.util.ArrayList* A list of security group IDs for the VPC connection. *
* * @param securityGroupIds * A list of security group IDs for the VPC connection. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVPCConnectionRequest withSecurityGroupIds(java.util.Collection* A list of IP addresses of DNS resolver endpoints for the VPC connection. *
* * @return A list of IP addresses of DNS resolver endpoints for the VPC connection. */ public java.util.List* A list of IP addresses of DNS resolver endpoints for the VPC connection. *
* * @param dnsResolvers * A list of IP addresses of DNS resolver endpoints for the VPC connection. */ public void setDnsResolvers(java.util.Collection* A list of IP addresses of DNS resolver endpoints for the VPC connection. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDnsResolvers(java.util.Collection)} or {@link #withDnsResolvers(java.util.Collection)} if you want to * override the existing values. *
* * @param dnsResolvers * A list of IP addresses of DNS resolver endpoints for the VPC connection. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVPCConnectionRequest withDnsResolvers(String... dnsResolvers) { if (this.dnsResolvers == null) { setDnsResolvers(new java.util.ArrayList* A list of IP addresses of DNS resolver endpoints for the VPC connection. *
* * @param dnsResolvers * A list of IP addresses of DNS resolver endpoints for the VPC connection. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVPCConnectionRequest withDnsResolvers(java.util.Collection* The IAM role to associate with the VPC connection. *
* * @param roleArn * The IAM role to associate with the VPC connection. */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** ** The IAM role to associate with the VPC connection. *
* * @return The IAM role to associate with the VPC connection. */ public String getRoleArn() { return this.roleArn; } /** ** The IAM role to associate with the VPC connection. *
* * @param roleArn * The IAM role to associate with the VPC connection. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVPCConnectionRequest withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** ** A map of the key-value pairs for the resource tag or tags assigned to the VPC connection. *
* * @return A map of the key-value pairs for the resource tag or tags assigned to the VPC connection. */ public java.util.List* A map of the key-value pairs for the resource tag or tags assigned to the VPC connection. *
* * @param tags * A map of the key-value pairs for the resource tag or tags assigned to the VPC connection. */ public void setTags(java.util.Collection* A map of the key-value pairs for the resource tag or tags assigned to the VPC connection. *
** 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 map of the key-value pairs for the resource tag or tags assigned to the VPC connection. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVPCConnectionRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* A map of the key-value pairs for the resource tag or tags assigned to the VPC connection. *
* * @param tags * A map of the key-value pairs for the resource tag or tags assigned to the VPC connection. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVPCConnectionRequest withTags(java.util.Collection