/* * 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.kafka.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 cluster Amazon Resource Name (ARN) for the VPC connection. *
*/ private String targetClusterArn; /** ** The authentication type of VPC connection. *
*/ private String authentication; /** ** The VPC ID of VPC connection. *
*/ private String vpcId; /** ** The list of client subnets. *
*/ private java.util.List* The list of security groups. *
*/ private java.util.List* A map of tags for the VPC connection. *
*/ private java.util.Map* The cluster Amazon Resource Name (ARN) for the VPC connection. *
* * @param targetClusterArn ** The cluster Amazon Resource Name (ARN) for the VPC connection. *
*/ public void setTargetClusterArn(String targetClusterArn) { this.targetClusterArn = targetClusterArn; } /** ** The cluster Amazon Resource Name (ARN) for the VPC connection. *
* * @return* The cluster Amazon Resource Name (ARN) for the VPC connection. *
*/ public String getTargetClusterArn() { return this.targetClusterArn; } /** ** The cluster Amazon Resource Name (ARN) for the VPC connection. *
* * @param targetClusterArn ** The cluster Amazon Resource Name (ARN) for the VPC connection. *
* @return Returns a reference to this object so that method calls can be chained together. */ public CreateVpcConnectionRequest withTargetClusterArn(String targetClusterArn) { setTargetClusterArn(targetClusterArn); return this; } /** ** The authentication type of VPC connection. *
* * @param authentication ** The authentication type of VPC connection. *
*/ public void setAuthentication(String authentication) { this.authentication = authentication; } /** ** The authentication type of VPC connection. *
* * @return* The authentication type of VPC connection. *
*/ public String getAuthentication() { return this.authentication; } /** ** The authentication type of VPC connection. *
* * @param authentication ** The authentication type of VPC connection. *
* @return Returns a reference to this object so that method calls can be chained together. */ public CreateVpcConnectionRequest withAuthentication(String authentication) { setAuthentication(authentication); return this; } /** ** The VPC ID of VPC connection. *
* * @param vpcId ** The VPC ID of VPC connection. *
*/ public void setVpcId(String vpcId) { this.vpcId = vpcId; } /** ** The VPC ID of VPC connection. *
* * @return* The VPC ID of VPC connection. *
*/ public String getVpcId() { return this.vpcId; } /** ** The VPC ID of VPC connection. *
* * @param vpcId ** The VPC ID of VPC connection. *
* @return Returns a reference to this object so that method calls can be chained together. */ public CreateVpcConnectionRequest withVpcId(String vpcId) { setVpcId(vpcId); return this; } /** ** The list of client subnets. *
* * @return* The list of client subnets. *
*/ public java.util.List* The list of client subnets. *
* * @param clientSubnets ** The list of client subnets. *
*/ public void setClientSubnets(java.util.Collection* The list of client subnets. *
* ** NOTE: This method appends the values to the existing list (if any). Use * {@link #setClientSubnets(java.util.Collection)} or {@link #withClientSubnets(java.util.Collection)} if you want * to override the existing values. *
* * @param clientSubnets ** The list of client subnets. *
* @return Returns a reference to this object so that method calls can be chained together. */ public CreateVpcConnectionRequest withClientSubnets(String... clientSubnets) { if (this.clientSubnets == null) { setClientSubnets(new java.util.ArrayList* The list of client subnets. *
* * @param clientSubnets ** The list of client subnets. *
* @return Returns a reference to this object so that method calls can be chained together. */ public CreateVpcConnectionRequest withClientSubnets(java.util.Collection* The list of security groups. *
* * @return* The list of security groups. *
*/ public java.util.List* The list of security groups. *
* * @param securityGroups ** The list of security groups. *
*/ public void setSecurityGroups(java.util.Collection* The list of security groups. *
* ** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSecurityGroups(java.util.Collection)} or {@link #withSecurityGroups(java.util.Collection)} if you want * to override the existing values. *
* * @param securityGroups ** The list of security groups. *
* @return Returns a reference to this object so that method calls can be chained together. */ public CreateVpcConnectionRequest withSecurityGroups(String... securityGroups) { if (this.securityGroups == null) { setSecurityGroups(new java.util.ArrayList* The list of security groups. *
* * @param securityGroups ** The list of security groups. *
* @return Returns a reference to this object so that method calls can be chained together. */ public CreateVpcConnectionRequest withSecurityGroups(java.util.Collection* A map of tags for the VPC connection. *
* * @return* A map of tags for the VPC connection. *
*/ public java.util.Map* A map of tags for the VPC connection. *
* * @param tags ** A map of tags for the VPC connection. *
*/ public void setTags(java.util.Map* A map of tags for the VPC connection. *
* * @param tags ** A map of tags for the VPC connection. *
* @return Returns a reference to this object so that method calls can be chained together. */ public CreateVpcConnectionRequest withTags(java.util.Map