/* * 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.apigatewayv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** *
* Creates a VPC link *
*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateVpcLinkRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** ** The name of the VPC link. *
*/ private String name; /** ** A list of security group IDs for the VPC link. *
*/ private java.util.List* A list of subnet IDs to include in the VPC link. *
*/ private java.util.List* A list of tags. *
*/ private java.util.Map* The name of the VPC link. *
* * @param name * The name of the VPC link. */ public void setName(String name) { this.name = name; } /** ** The name of the VPC link. *
* * @return The name of the VPC link. */ public String getName() { return this.name; } /** ** The name of the VPC link. *
* * @param name * The name of the VPC link. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVpcLinkRequest withName(String name) { setName(name); return this; } /** ** A list of security group IDs for the VPC link. *
* * @return A list of security group IDs for the VPC link. */ public java.util.List* A list of security group IDs for the VPC link. *
* * @param securityGroupIds * A list of security group IDs for the VPC link. */ public void setSecurityGroupIds(java.util.Collection* A list of security group IDs for the VPC link. *
** 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 link. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVpcLinkRequest withSecurityGroupIds(String... securityGroupIds) { if (this.securityGroupIds == null) { setSecurityGroupIds(new java.util.ArrayList* A list of security group IDs for the VPC link. *
* * @param securityGroupIds * A list of security group IDs for the VPC link. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVpcLinkRequest withSecurityGroupIds(java.util.Collection* A list of subnet IDs to include in the VPC link. *
* * @return A list of subnet IDs to include in the VPC link. */ public java.util.List* A list of subnet IDs to include in the VPC link. *
* * @param subnetIds * A list of subnet IDs to include in the VPC link. */ public void setSubnetIds(java.util.Collection* A list of subnet IDs to include in the VPC link. *
** 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 to include in the VPC link. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVpcLinkRequest withSubnetIds(String... subnetIds) { if (this.subnetIds == null) { setSubnetIds(new java.util.ArrayList* A list of subnet IDs to include in the VPC link. *
* * @param subnetIds * A list of subnet IDs to include in the VPC link. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVpcLinkRequest withSubnetIds(java.util.Collection* A list of tags. *
* * @return A list of tags. */ public java.util.Map* A list of tags. *
* * @param tags * A list of tags. */ public void setTags(java.util.Map* A list of tags. *
* * @param tags * A list of tags. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVpcLinkRequest withTags(java.util.Map