/* * Copyright 2010-2018 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.ec2.model; import java.io.Serializable; /** *
* Describes whether a VPC is enabled for ClassicLink. *
*/ public class VpcClassicLink implements Serializable { /** * The ID of the VPC. */ private String vpcId; /** * Indicates whether the VPC is enabled for ClassicLink. */ private Boolean classicLinkEnabled; /** * Any tags assigned to the VPC. */ private com.amazonaws.internal.ListWithAutoConstructFlag* Returns a reference to this object so that method calls can be chained together. * * @param vpcId The ID of the VPC. * * @return A reference to this updated object so that method calls can be chained * together. */ public VpcClassicLink withVpcId(String vpcId) { this.vpcId = vpcId; return this; } /** * Indicates whether the VPC is enabled for ClassicLink. * * @return Indicates whether the VPC is enabled for ClassicLink. */ public Boolean isClassicLinkEnabled() { return classicLinkEnabled; } /** * Indicates whether the VPC is enabled for ClassicLink. * * @param classicLinkEnabled Indicates whether the VPC is enabled for ClassicLink. */ public void setClassicLinkEnabled(Boolean classicLinkEnabled) { this.classicLinkEnabled = classicLinkEnabled; } /** * Indicates whether the VPC is enabled for ClassicLink. *
* Returns a reference to this object so that method calls can be chained together.
*
* @param classicLinkEnabled Indicates whether the VPC is enabled for ClassicLink.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public VpcClassicLink withClassicLinkEnabled(Boolean classicLinkEnabled) {
this.classicLinkEnabled = classicLinkEnabled;
return this;
}
/**
* Indicates whether the VPC is enabled for ClassicLink.
*
* @return Indicates whether the VPC is enabled for ClassicLink.
*/
public Boolean getClassicLinkEnabled() {
return classicLinkEnabled;
}
/**
* Any tags assigned to the VPC.
*
* @return Any tags assigned to the VPC.
*/
public java.util.List
* Returns a reference to this object so that method calls can be chained together.
*
* @param tags Any tags assigned to the VPC.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public VpcClassicLink withTags(Tag... tags) {
if (getTags() == null) setTags(new java.util.ArrayList
* Returns a reference to this object so that method calls can be chained together.
*
* @param tags Any tags assigned to the VPC.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public VpcClassicLink withTags(java.util.Collection