/* * 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.directconnect.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Information about a Direct Connect gateway, which enables you to connect virtual interfaces and virtual private * gateway or transit gateways. *

* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DirectConnectGateway implements Serializable, Cloneable, StructuredPojo { /** *

* The ID of the Direct Connect gateway. *

*/ private String directConnectGatewayId; /** *

* The name of the Direct Connect gateway. *

*/ private String directConnectGatewayName; /** *

* The autonomous system number (ASN) for the Amazon side of the connection. *

*/ private Long amazonSideAsn; /** *

* The ID of the Amazon Web Services account that owns the Direct Connect gateway. *

*/ private String ownerAccount; /** *

* The state of the Direct Connect gateway. The following are the possible values: *

* */ private String directConnectGatewayState; /** *

* The error message if the state of an object failed to advance. *

*/ private String stateChangeError; /** *

* The ID of the Direct Connect gateway. *

* * @param directConnectGatewayId * The ID of the Direct Connect gateway. */ public void setDirectConnectGatewayId(String directConnectGatewayId) { this.directConnectGatewayId = directConnectGatewayId; } /** *

* The ID of the Direct Connect gateway. *

* * @return The ID of the Direct Connect gateway. */ public String getDirectConnectGatewayId() { return this.directConnectGatewayId; } /** *

* The ID of the Direct Connect gateway. *

* * @param directConnectGatewayId * The ID of the Direct Connect gateway. * @return Returns a reference to this object so that method calls can be chained together. */ public DirectConnectGateway withDirectConnectGatewayId(String directConnectGatewayId) { setDirectConnectGatewayId(directConnectGatewayId); return this; } /** *

* The name of the Direct Connect gateway. *

* * @param directConnectGatewayName * The name of the Direct Connect gateway. */ public void setDirectConnectGatewayName(String directConnectGatewayName) { this.directConnectGatewayName = directConnectGatewayName; } /** *

* The name of the Direct Connect gateway. *

* * @return The name of the Direct Connect gateway. */ public String getDirectConnectGatewayName() { return this.directConnectGatewayName; } /** *

* The name of the Direct Connect gateway. *

* * @param directConnectGatewayName * The name of the Direct Connect gateway. * @return Returns a reference to this object so that method calls can be chained together. */ public DirectConnectGateway withDirectConnectGatewayName(String directConnectGatewayName) { setDirectConnectGatewayName(directConnectGatewayName); return this; } /** *

* The autonomous system number (ASN) for the Amazon side of the connection. *

* * @param amazonSideAsn * The autonomous system number (ASN) for the Amazon side of the connection. */ public void setAmazonSideAsn(Long amazonSideAsn) { this.amazonSideAsn = amazonSideAsn; } /** *

* The autonomous system number (ASN) for the Amazon side of the connection. *

* * @return The autonomous system number (ASN) for the Amazon side of the connection. */ public Long getAmazonSideAsn() { return this.amazonSideAsn; } /** *

* The autonomous system number (ASN) for the Amazon side of the connection. *

* * @param amazonSideAsn * The autonomous system number (ASN) for the Amazon side of the connection. * @return Returns a reference to this object so that method calls can be chained together. */ public DirectConnectGateway withAmazonSideAsn(Long amazonSideAsn) { setAmazonSideAsn(amazonSideAsn); return this; } /** *

* The ID of the Amazon Web Services account that owns the Direct Connect gateway. *

* * @param ownerAccount * The ID of the Amazon Web Services account that owns the Direct Connect gateway. */ public void setOwnerAccount(String ownerAccount) { this.ownerAccount = ownerAccount; } /** *

* The ID of the Amazon Web Services account that owns the Direct Connect gateway. *

* * @return The ID of the Amazon Web Services account that owns the Direct Connect gateway. */ public String getOwnerAccount() { return this.ownerAccount; } /** *

* The ID of the Amazon Web Services account that owns the Direct Connect gateway. *

* * @param ownerAccount * The ID of the Amazon Web Services account that owns the Direct Connect gateway. * @return Returns a reference to this object so that method calls can be chained together. */ public DirectConnectGateway withOwnerAccount(String ownerAccount) { setOwnerAccount(ownerAccount); return this; } /** *

* The state of the Direct Connect gateway. The following are the possible values: *

* * * @param directConnectGatewayState * The state of the Direct Connect gateway. The following are the possible values:

*