/* * 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 a customer gateway. *
*/ public class CustomerGateway implements Serializable { /** * The ID of the customer gateway. */ private String customerGatewayId; /** * The current state of the customer gateway (pending | available |
* deleting | deleted
).
*/
private String state;
/**
* The type of VPN connection the customer gateway supports
* (ipsec.1
).
*/
private String type;
/**
* The Internet-routable IP address of the customer gateway's outside
* interface.
*/
private String ipAddress;
/**
* The customer gateway's Border Gateway Protocol (BGP) Autonomous System
* Number (ASN).
*/
private String bgpAsn;
/**
* Any tags assigned to the customer gateway.
*/
private com.amazonaws.internal.ListWithAutoConstructFlag
* Returns a reference to this object so that method calls can be chained together.
*
* @param customerGatewayId The ID of the customer gateway.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CustomerGateway withCustomerGatewayId(String customerGatewayId) {
this.customerGatewayId = customerGatewayId;
return this;
}
/**
* The current state of the customer gateway (pending | available |
* deleting | deleted
).
*
* @return The current state of the customer gateway (pending | available |
* deleting | deleted
).
*/
public String getState() {
return state;
}
/**
* The current state of the customer gateway (pending | available |
* deleting | deleted
).
*
* @param state The current state of the customer gateway (pending | available |
* deleting | deleted
).
*/
public void setState(String state) {
this.state = state;
}
/**
* The current state of the customer gateway (pending | available |
* deleting | deleted
).
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param state The current state of the customer gateway (pending | available |
* deleting | deleted
).
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CustomerGateway withState(String state) {
this.state = state;
return this;
}
/**
* The type of VPN connection the customer gateway supports
* (ipsec.1
).
*
* @return The type of VPN connection the customer gateway supports
* (ipsec.1
).
*/
public String getType() {
return type;
}
/**
* The type of VPN connection the customer gateway supports
* (ipsec.1
).
*
* @param type The type of VPN connection the customer gateway supports
* (ipsec.1
).
*/
public void setType(String type) {
this.type = type;
}
/**
* The type of VPN connection the customer gateway supports
* (ipsec.1
).
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param type The type of VPN connection the customer gateway supports
* (ipsec.1
).
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CustomerGateway withType(String type) {
this.type = type;
return this;
}
/**
* The Internet-routable IP address of the customer gateway's outside
* interface.
*
* @return The Internet-routable IP address of the customer gateway's outside
* interface.
*/
public String getIpAddress() {
return ipAddress;
}
/**
* The Internet-routable IP address of the customer gateway's outside
* interface.
*
* @param ipAddress The Internet-routable IP address of the customer gateway's outside
* interface.
*/
public void setIpAddress(String ipAddress) {
this.ipAddress = ipAddress;
}
/**
* The Internet-routable IP address of the customer gateway's outside
* interface.
*
* Returns a reference to this object so that method calls can be chained together. * * @param ipAddress The Internet-routable IP address of the customer gateway's outside * interface. * * @return A reference to this updated object so that method calls can be chained * together. */ public CustomerGateway withIpAddress(String ipAddress) { this.ipAddress = ipAddress; return this; } /** * The customer gateway's Border Gateway Protocol (BGP) Autonomous System * Number (ASN). * * @return The customer gateway's Border Gateway Protocol (BGP) Autonomous System * Number (ASN). */ public String getBgpAsn() { return bgpAsn; } /** * The customer gateway's Border Gateway Protocol (BGP) Autonomous System * Number (ASN). * * @param bgpAsn The customer gateway's Border Gateway Protocol (BGP) Autonomous System * Number (ASN). */ public void setBgpAsn(String bgpAsn) { this.bgpAsn = bgpAsn; } /** * The customer gateway's Border Gateway Protocol (BGP) Autonomous System * Number (ASN). *
* Returns a reference to this object so that method calls can be chained together.
*
* @param bgpAsn The customer gateway's Border Gateway Protocol (BGP) Autonomous System
* Number (ASN).
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CustomerGateway withBgpAsn(String bgpAsn) {
this.bgpAsn = bgpAsn;
return this;
}
/**
* Any tags assigned to the customer gateway.
*
* @return Any tags assigned to the customer gateway.
*/
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 customer gateway.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CustomerGateway 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 customer gateway.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CustomerGateway withTags(java.util.Collection