com.amazonaws.services.directconnect.model.CreateLagResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-directconnect Show documentation
/*
* Copyright 2019-2024 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;
/**
*
* Information about a link aggregation group (LAG).
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateLagResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* The individual bandwidth of the physical connections bundled by the LAG. The possible values are 1Gbps, 10Gbps,
* 100Gbps, or 400 Gbps..
*
*/
private String connectionsBandwidth;
/**
*
* The number of physical dedicated connections initially provisioned and bundled by the LAG. You can have a maximum
* of four connections when the port speed is 1 Gbps or 10 Gbps, or two when the port speed is 100 Gbps or 400 Gbps.
*
*/
private Integer numberOfConnections;
/**
*
* The ID of the LAG.
*
*/
private String lagId;
/**
*
* The ID of the Amazon Web Services account that owns the LAG.
*
*/
private String ownerAccount;
/**
*
* The name of the LAG.
*
*/
private String lagName;
/**
*
* The state of the LAG. The following are the possible values:
*
*
* -
*
* requested
: The initial state of a LAG. The LAG stays in the requested state until the Letter of
* Authorization (LOA) is available.
*
*
* -
*
* pending
: The LAG has been approved and is being initialized.
*
*
* -
*
* available
: The network link is established and the LAG is ready for use.
*
*
* -
*
* down
: The network link is down.
*
*
* -
*
* deleting
: The LAG is being deleted.
*
*
* -
*
* deleted
: The LAG is deleted.
*
*
* -
*
* unknown
: The state of the LAG is not available.
*
*
*
*/
private String lagState;
/**
*
* The location of the LAG.
*
*/
private String location;
/**
*
* The Amazon Web Services Region where the connection is located.
*
*/
private String region;
/**
*
* The minimum number of physical dedicated connections that must be operational for the LAG itself to be
* operational.
*
*/
private Integer minimumLinks;
/**
*
* The Direct Connect endpoint that hosts the LAG.
*
*/
private String awsDevice;
/**
*
* The Direct Connect endpoint that hosts the LAG.
*
*/
private String awsDeviceV2;
/**
*
* The Direct Connect endpoint that terminates the logical connection. This device might be different than the
* device that terminates the physical connection.
*
*/
private String awsLogicalDeviceId;
/**
*
* The connections bundled by the LAG.
*
*/
private com.amazonaws.internal.SdkInternalList connections;
/**
*
* Indicates whether the LAG can host other connections.
*
*/
private Boolean allowsHostedConnections;
/**
*
* Indicates whether jumbo frames are supported.
*
*/
private Boolean jumboFrameCapable;
/**
*
* Indicates whether the LAG supports a secondary BGP peer in the same address family (IPv4/IPv6).
*
*/
private String hasLogicalRedundancy;
/**
*
* The tags associated with the LAG.
*
*/
private com.amazonaws.internal.SdkInternalList tags;
/**
*
* The name of the service provider associated with the LAG.
*
*/
private String providerName;
/**
*
* Indicates whether the LAG supports MAC Security (MACsec).
*
*/
private Boolean macSecCapable;
/**
*
* The LAG MAC Security (MACsec) encryption mode.
*
*
* The valid values are no_encrypt
, should_encrypt
, and must_encrypt
.
*
*/
private String encryptionMode;
/**
*
* The MAC Security (MACsec) security keys associated with the LAG.
*
*/
private com.amazonaws.internal.SdkInternalList macSecKeys;
/**
*
* The individual bandwidth of the physical connections bundled by the LAG. The possible values are 1Gbps, 10Gbps,
* 100Gbps, or 400 Gbps..
*
*
* @param connectionsBandwidth
* The individual bandwidth of the physical connections bundled by the LAG. The possible values are 1Gbps,
* 10Gbps, 100Gbps, or 400 Gbps..
*/
public void setConnectionsBandwidth(String connectionsBandwidth) {
this.connectionsBandwidth = connectionsBandwidth;
}
/**
*
* The individual bandwidth of the physical connections bundled by the LAG. The possible values are 1Gbps, 10Gbps,
* 100Gbps, or 400 Gbps..
*
*
* @return The individual bandwidth of the physical connections bundled by the LAG. The possible values are 1Gbps,
* 10Gbps, 100Gbps, or 400 Gbps..
*/
public String getConnectionsBandwidth() {
return this.connectionsBandwidth;
}
/**
*
* The individual bandwidth of the physical connections bundled by the LAG. The possible values are 1Gbps, 10Gbps,
* 100Gbps, or 400 Gbps..
*
*
* @param connectionsBandwidth
* The individual bandwidth of the physical connections bundled by the LAG. The possible values are 1Gbps,
* 10Gbps, 100Gbps, or 400 Gbps..
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLagResult withConnectionsBandwidth(String connectionsBandwidth) {
setConnectionsBandwidth(connectionsBandwidth);
return this;
}
/**
*
* The number of physical dedicated connections initially provisioned and bundled by the LAG. You can have a maximum
* of four connections when the port speed is 1 Gbps or 10 Gbps, or two when the port speed is 100 Gbps or 400 Gbps.
*
*
* @param numberOfConnections
* The number of physical dedicated connections initially provisioned and bundled by the LAG. You can have a
* maximum of four connections when the port speed is 1 Gbps or 10 Gbps, or two when the port speed is 100
* Gbps or 400 Gbps.
*/
public void setNumberOfConnections(Integer numberOfConnections) {
this.numberOfConnections = numberOfConnections;
}
/**
*
* The number of physical dedicated connections initially provisioned and bundled by the LAG. You can have a maximum
* of four connections when the port speed is 1 Gbps or 10 Gbps, or two when the port speed is 100 Gbps or 400 Gbps.
*
*
* @return The number of physical dedicated connections initially provisioned and bundled by the LAG. You can have a
* maximum of four connections when the port speed is 1 Gbps or 10 Gbps, or two when the port speed is 100
* Gbps or 400 Gbps.
*/
public Integer getNumberOfConnections() {
return this.numberOfConnections;
}
/**
*
* The number of physical dedicated connections initially provisioned and bundled by the LAG. You can have a maximum
* of four connections when the port speed is 1 Gbps or 10 Gbps, or two when the port speed is 100 Gbps or 400 Gbps.
*
*
* @param numberOfConnections
* The number of physical dedicated connections initially provisioned and bundled by the LAG. You can have a
* maximum of four connections when the port speed is 1 Gbps or 10 Gbps, or two when the port speed is 100
* Gbps or 400 Gbps.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLagResult withNumberOfConnections(Integer numberOfConnections) {
setNumberOfConnections(numberOfConnections);
return this;
}
/**
*
* The ID of the LAG.
*
*
* @param lagId
* The ID of the LAG.
*/
public void setLagId(String lagId) {
this.lagId = lagId;
}
/**
*
* The ID of the LAG.
*
*
* @return The ID of the LAG.
*/
public String getLagId() {
return this.lagId;
}
/**
*
* The ID of the LAG.
*
*
* @param lagId
* The ID of the LAG.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLagResult withLagId(String lagId) {
setLagId(lagId);
return this;
}
/**
*
* The ID of the Amazon Web Services account that owns the LAG.
*
*
* @param ownerAccount
* The ID of the Amazon Web Services account that owns the LAG.
*/
public void setOwnerAccount(String ownerAccount) {
this.ownerAccount = ownerAccount;
}
/**
*
* The ID of the Amazon Web Services account that owns the LAG.
*
*
* @return The ID of the Amazon Web Services account that owns the LAG.
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
*
* The ID of the Amazon Web Services account that owns the LAG.
*
*
* @param ownerAccount
* The ID of the Amazon Web Services account that owns the LAG.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLagResult withOwnerAccount(String ownerAccount) {
setOwnerAccount(ownerAccount);
return this;
}
/**
*
* The name of the LAG.
*
*
* @param lagName
* The name of the LAG.
*/
public void setLagName(String lagName) {
this.lagName = lagName;
}
/**
*
* The name of the LAG.
*
*
* @return The name of the LAG.
*/
public String getLagName() {
return this.lagName;
}
/**
*
* The name of the LAG.
*
*
* @param lagName
* The name of the LAG.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLagResult withLagName(String lagName) {
setLagName(lagName);
return this;
}
/**
*
* The state of the LAG. The following are the possible values:
*
*
* -
*
* requested
: The initial state of a LAG. The LAG stays in the requested state until the Letter of
* Authorization (LOA) is available.
*
*
* -
*
* pending
: The LAG has been approved and is being initialized.
*
*
* -
*
* available
: The network link is established and the LAG is ready for use.
*
*
* -
*
* down
: The network link is down.
*
*
* -
*
* deleting
: The LAG is being deleted.
*
*
* -
*
* deleted
: The LAG is deleted.
*
*
* -
*
* unknown
: The state of the LAG is not available.
*
*
*
*
* @param lagState
* The state of the LAG. The following are the possible values:
*
* -
*
* requested
: The initial state of a LAG. The LAG stays in the requested state until the Letter
* of Authorization (LOA) is available.
*
*
* -
*
* pending
: The LAG has been approved and is being initialized.
*
*
* -
*
* available
: The network link is established and the LAG is ready for use.
*
*
* -
*
* down
: The network link is down.
*
*
* -
*
* deleting
: The LAG is being deleted.
*
*
* -
*
* deleted
: The LAG is deleted.
*
*
* -
*
* unknown
: The state of the LAG is not available.
*
*
* @see LagState
*/
public void setLagState(String lagState) {
this.lagState = lagState;
}
/**
*
* The state of the LAG. The following are the possible values:
*
*
* -
*
* requested
: The initial state of a LAG. The LAG stays in the requested state until the Letter of
* Authorization (LOA) is available.
*
*
* -
*
* pending
: The LAG has been approved and is being initialized.
*
*
* -
*
* available
: The network link is established and the LAG is ready for use.
*
*
* -
*
* down
: The network link is down.
*
*
* -
*
* deleting
: The LAG is being deleted.
*
*
* -
*
* deleted
: The LAG is deleted.
*
*
* -
*
* unknown
: The state of the LAG is not available.
*
*
*
*
* @return The state of the LAG. The following are the possible values:
*
* -
*
* requested
: The initial state of a LAG. The LAG stays in the requested state until the Letter
* of Authorization (LOA) is available.
*
*
* -
*
* pending
: The LAG has been approved and is being initialized.
*
*
* -
*
* available
: The network link is established and the LAG is ready for use.
*
*
* -
*
* down
: The network link is down.
*
*
* -
*
* deleting
: The LAG is being deleted.
*
*
* -
*
* deleted
: The LAG is deleted.
*
*
* -
*
* unknown
: The state of the LAG is not available.
*
*
* @see LagState
*/
public String getLagState() {
return this.lagState;
}
/**
*
* The state of the LAG. The following are the possible values:
*
*
* -
*
* requested
: The initial state of a LAG. The LAG stays in the requested state until the Letter of
* Authorization (LOA) is available.
*
*
* -
*
* pending
: The LAG has been approved and is being initialized.
*
*
* -
*
* available
: The network link is established and the LAG is ready for use.
*
*
* -
*
* down
: The network link is down.
*
*
* -
*
* deleting
: The LAG is being deleted.
*
*
* -
*
* deleted
: The LAG is deleted.
*
*
* -
*
* unknown
: The state of the LAG is not available.
*
*
*
*
* @param lagState
* The state of the LAG. The following are the possible values:
*
* -
*
* requested
: The initial state of a LAG. The LAG stays in the requested state until the Letter
* of Authorization (LOA) is available.
*
*
* -
*
* pending
: The LAG has been approved and is being initialized.
*
*
* -
*
* available
: The network link is established and the LAG is ready for use.
*
*
* -
*
* down
: The network link is down.
*
*
* -
*
* deleting
: The LAG is being deleted.
*
*
* -
*
* deleted
: The LAG is deleted.
*
*
* -
*
* unknown
: The state of the LAG is not available.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see LagState
*/
public CreateLagResult withLagState(String lagState) {
setLagState(lagState);
return this;
}
/**
*
* The state of the LAG. The following are the possible values:
*
*
* -
*
* requested
: The initial state of a LAG. The LAG stays in the requested state until the Letter of
* Authorization (LOA) is available.
*
*
* -
*
* pending
: The LAG has been approved and is being initialized.
*
*
* -
*
* available
: The network link is established and the LAG is ready for use.
*
*
* -
*
* down
: The network link is down.
*
*
* -
*
* deleting
: The LAG is being deleted.
*
*
* -
*
* deleted
: The LAG is deleted.
*
*
* -
*
* unknown
: The state of the LAG is not available.
*
*
*
*
* @param lagState
* The state of the LAG. The following are the possible values:
*
* -
*
* requested
: The initial state of a LAG. The LAG stays in the requested state until the Letter
* of Authorization (LOA) is available.
*
*
* -
*
* pending
: The LAG has been approved and is being initialized.
*
*
* -
*
* available
: The network link is established and the LAG is ready for use.
*
*
* -
*
* down
: The network link is down.
*
*
* -
*
* deleting
: The LAG is being deleted.
*
*
* -
*
* deleted
: The LAG is deleted.
*
*
* -
*
* unknown
: The state of the LAG is not available.
*
*
* @see LagState
*/
public void setLagState(LagState lagState) {
withLagState(lagState);
}
/**
*
* The state of the LAG. The following are the possible values:
*
*
* -
*
* requested
: The initial state of a LAG. The LAG stays in the requested state until the Letter of
* Authorization (LOA) is available.
*
*
* -
*
* pending
: The LAG has been approved and is being initialized.
*
*
* -
*
* available
: The network link is established and the LAG is ready for use.
*
*
* -
*
* down
: The network link is down.
*
*
* -
*
* deleting
: The LAG is being deleted.
*
*
* -
*
* deleted
: The LAG is deleted.
*
*
* -
*
* unknown
: The state of the LAG is not available.
*
*
*
*
* @param lagState
* The state of the LAG. The following are the possible values:
*
* -
*
* requested
: The initial state of a LAG. The LAG stays in the requested state until the Letter
* of Authorization (LOA) is available.
*
*
* -
*
* pending
: The LAG has been approved and is being initialized.
*
*
* -
*
* available
: The network link is established and the LAG is ready for use.
*
*
* -
*
* down
: The network link is down.
*
*
* -
*
* deleting
: The LAG is being deleted.
*
*
* -
*
* deleted
: The LAG is deleted.
*
*
* -
*
* unknown
: The state of the LAG is not available.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see LagState
*/
public CreateLagResult withLagState(LagState lagState) {
this.lagState = lagState.toString();
return this;
}
/**
*
* The location of the LAG.
*
*
* @param location
* The location of the LAG.
*/
public void setLocation(String location) {
this.location = location;
}
/**
*
* The location of the LAG.
*
*
* @return The location of the LAG.
*/
public String getLocation() {
return this.location;
}
/**
*
* The location of the LAG.
*
*
* @param location
* The location of the LAG.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLagResult withLocation(String location) {
setLocation(location);
return this;
}
/**
*
* The Amazon Web Services Region where the connection is located.
*
*
* @param region
* The Amazon Web Services Region where the connection is located.
*/
public void setRegion(String region) {
this.region = region;
}
/**
*
* The Amazon Web Services Region where the connection is located.
*
*
* @return The Amazon Web Services Region where the connection is located.
*/
public String getRegion() {
return this.region;
}
/**
*
* The Amazon Web Services Region where the connection is located.
*
*
* @param region
* The Amazon Web Services Region where the connection is located.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLagResult withRegion(String region) {
setRegion(region);
return this;
}
/**
*
* The minimum number of physical dedicated connections that must be operational for the LAG itself to be
* operational.
*
*
* @param minimumLinks
* The minimum number of physical dedicated connections that must be operational for the LAG itself to be
* operational.
*/
public void setMinimumLinks(Integer minimumLinks) {
this.minimumLinks = minimumLinks;
}
/**
*
* The minimum number of physical dedicated connections that must be operational for the LAG itself to be
* operational.
*
*
* @return The minimum number of physical dedicated connections that must be operational for the LAG itself to be
* operational.
*/
public Integer getMinimumLinks() {
return this.minimumLinks;
}
/**
*
* The minimum number of physical dedicated connections that must be operational for the LAG itself to be
* operational.
*
*
* @param minimumLinks
* The minimum number of physical dedicated connections that must be operational for the LAG itself to be
* operational.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLagResult withMinimumLinks(Integer minimumLinks) {
setMinimumLinks(minimumLinks);
return this;
}
/**
*
* The Direct Connect endpoint that hosts the LAG.
*
*
* @param awsDevice
* The Direct Connect endpoint that hosts the LAG.
*/
public void setAwsDevice(String awsDevice) {
this.awsDevice = awsDevice;
}
/**
*
* The Direct Connect endpoint that hosts the LAG.
*
*
* @return The Direct Connect endpoint that hosts the LAG.
*/
public String getAwsDevice() {
return this.awsDevice;
}
/**
*
* The Direct Connect endpoint that hosts the LAG.
*
*
* @param awsDevice
* The Direct Connect endpoint that hosts the LAG.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLagResult withAwsDevice(String awsDevice) {
setAwsDevice(awsDevice);
return this;
}
/**
*
* The Direct Connect endpoint that hosts the LAG.
*
*
* @param awsDeviceV2
* The Direct Connect endpoint that hosts the LAG.
*/
public void setAwsDeviceV2(String awsDeviceV2) {
this.awsDeviceV2 = awsDeviceV2;
}
/**
*
* The Direct Connect endpoint that hosts the LAG.
*
*
* @return The Direct Connect endpoint that hosts the LAG.
*/
public String getAwsDeviceV2() {
return this.awsDeviceV2;
}
/**
*
* The Direct Connect endpoint that hosts the LAG.
*
*
* @param awsDeviceV2
* The Direct Connect endpoint that hosts the LAG.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLagResult withAwsDeviceV2(String awsDeviceV2) {
setAwsDeviceV2(awsDeviceV2);
return this;
}
/**
*
* The Direct Connect endpoint that terminates the logical connection. This device might be different than the
* device that terminates the physical connection.
*
*
* @param awsLogicalDeviceId
* The Direct Connect endpoint that terminates the logical connection. This device might be different than
* the device that terminates the physical connection.
*/
public void setAwsLogicalDeviceId(String awsLogicalDeviceId) {
this.awsLogicalDeviceId = awsLogicalDeviceId;
}
/**
*
* The Direct Connect endpoint that terminates the logical connection. This device might be different than the
* device that terminates the physical connection.
*
*
* @return The Direct Connect endpoint that terminates the logical connection. This device might be different than
* the device that terminates the physical connection.
*/
public String getAwsLogicalDeviceId() {
return this.awsLogicalDeviceId;
}
/**
*
* The Direct Connect endpoint that terminates the logical connection. This device might be different than the
* device that terminates the physical connection.
*
*
* @param awsLogicalDeviceId
* The Direct Connect endpoint that terminates the logical connection. This device might be different than
* the device that terminates the physical connection.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLagResult withAwsLogicalDeviceId(String awsLogicalDeviceId) {
setAwsLogicalDeviceId(awsLogicalDeviceId);
return this;
}
/**
*
* The connections bundled by the LAG.
*
*
* @return The connections bundled by the LAG.
*/
public java.util.List getConnections() {
if (connections == null) {
connections = new com.amazonaws.internal.SdkInternalList();
}
return connections;
}
/**
*
* The connections bundled by the LAG.
*
*
* @param connections
* The connections bundled by the LAG.
*/
public void setConnections(java.util.Collection connections) {
if (connections == null) {
this.connections = null;
return;
}
this.connections = new com.amazonaws.internal.SdkInternalList(connections);
}
/**
*
* The connections bundled by the LAG.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setConnections(java.util.Collection)} or {@link #withConnections(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param connections
* The connections bundled by the LAG.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLagResult withConnections(Connection... connections) {
if (this.connections == null) {
setConnections(new com.amazonaws.internal.SdkInternalList(connections.length));
}
for (Connection ele : connections) {
this.connections.add(ele);
}
return this;
}
/**
*
* The connections bundled by the LAG.
*
*
* @param connections
* The connections bundled by the LAG.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLagResult withConnections(java.util.Collection connections) {
setConnections(connections);
return this;
}
/**
*
* Indicates whether the LAG can host other connections.
*
*
* @param allowsHostedConnections
* Indicates whether the LAG can host other connections.
*/
public void setAllowsHostedConnections(Boolean allowsHostedConnections) {
this.allowsHostedConnections = allowsHostedConnections;
}
/**
*
* Indicates whether the LAG can host other connections.
*
*
* @return Indicates whether the LAG can host other connections.
*/
public Boolean getAllowsHostedConnections() {
return this.allowsHostedConnections;
}
/**
*
* Indicates whether the LAG can host other connections.
*
*
* @param allowsHostedConnections
* Indicates whether the LAG can host other connections.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLagResult withAllowsHostedConnections(Boolean allowsHostedConnections) {
setAllowsHostedConnections(allowsHostedConnections);
return this;
}
/**
*
* Indicates whether the LAG can host other connections.
*
*
* @return Indicates whether the LAG can host other connections.
*/
public Boolean isAllowsHostedConnections() {
return this.allowsHostedConnections;
}
/**
*
* Indicates whether jumbo frames are supported.
*
*
* @param jumboFrameCapable
* Indicates whether jumbo frames are supported.
*/
public void setJumboFrameCapable(Boolean jumboFrameCapable) {
this.jumboFrameCapable = jumboFrameCapable;
}
/**
*
* Indicates whether jumbo frames are supported.
*
*
* @return Indicates whether jumbo frames are supported.
*/
public Boolean getJumboFrameCapable() {
return this.jumboFrameCapable;
}
/**
*
* Indicates whether jumbo frames are supported.
*
*
* @param jumboFrameCapable
* Indicates whether jumbo frames are supported.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLagResult withJumboFrameCapable(Boolean jumboFrameCapable) {
setJumboFrameCapable(jumboFrameCapable);
return this;
}
/**
*
* Indicates whether jumbo frames are supported.
*
*
* @return Indicates whether jumbo frames are supported.
*/
public Boolean isJumboFrameCapable() {
return this.jumboFrameCapable;
}
/**
*
* Indicates whether the LAG supports a secondary BGP peer in the same address family (IPv4/IPv6).
*
*
* @param hasLogicalRedundancy
* Indicates whether the LAG supports a secondary BGP peer in the same address family (IPv4/IPv6).
* @see HasLogicalRedundancy
*/
public void setHasLogicalRedundancy(String hasLogicalRedundancy) {
this.hasLogicalRedundancy = hasLogicalRedundancy;
}
/**
*
* Indicates whether the LAG supports a secondary BGP peer in the same address family (IPv4/IPv6).
*
*
* @return Indicates whether the LAG supports a secondary BGP peer in the same address family (IPv4/IPv6).
* @see HasLogicalRedundancy
*/
public String getHasLogicalRedundancy() {
return this.hasLogicalRedundancy;
}
/**
*
* Indicates whether the LAG supports a secondary BGP peer in the same address family (IPv4/IPv6).
*
*
* @param hasLogicalRedundancy
* Indicates whether the LAG supports a secondary BGP peer in the same address family (IPv4/IPv6).
* @return Returns a reference to this object so that method calls can be chained together.
* @see HasLogicalRedundancy
*/
public CreateLagResult withHasLogicalRedundancy(String hasLogicalRedundancy) {
setHasLogicalRedundancy(hasLogicalRedundancy);
return this;
}
/**
*
* Indicates whether the LAG supports a secondary BGP peer in the same address family (IPv4/IPv6).
*
*
* @param hasLogicalRedundancy
* Indicates whether the LAG supports a secondary BGP peer in the same address family (IPv4/IPv6).
* @see HasLogicalRedundancy
*/
public void setHasLogicalRedundancy(HasLogicalRedundancy hasLogicalRedundancy) {
withHasLogicalRedundancy(hasLogicalRedundancy);
}
/**
*
* Indicates whether the LAG supports a secondary BGP peer in the same address family (IPv4/IPv6).
*
*
* @param hasLogicalRedundancy
* Indicates whether the LAG supports a secondary BGP peer in the same address family (IPv4/IPv6).
* @return Returns a reference to this object so that method calls can be chained together.
* @see HasLogicalRedundancy
*/
public CreateLagResult withHasLogicalRedundancy(HasLogicalRedundancy hasLogicalRedundancy) {
this.hasLogicalRedundancy = hasLogicalRedundancy.toString();
return this;
}
/**
*
* The tags associated with the LAG.
*
*
* @return The tags associated with the LAG.
*/
public java.util.List getTags() {
if (tags == null) {
tags = new com.amazonaws.internal.SdkInternalList();
}
return tags;
}
/**
*
* The tags associated with the LAG.
*
*
* @param tags
* The tags associated with the LAG.
*/
public void setTags(java.util.Collection tags) {
if (tags == null) {
this.tags = null;
return;
}
this.tags = new com.amazonaws.internal.SdkInternalList(tags);
}
/**
*
* The tags associated with the LAG.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the
* existing values.
*
*
* @param tags
* The tags associated with the LAG.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLagResult withTags(Tag... tags) {
if (this.tags == null) {
setTags(new com.amazonaws.internal.SdkInternalList(tags.length));
}
for (Tag ele : tags) {
this.tags.add(ele);
}
return this;
}
/**
*
* The tags associated with the LAG.
*
*
* @param tags
* The tags associated with the LAG.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLagResult withTags(java.util.Collection tags) {
setTags(tags);
return this;
}
/**
*
* The name of the service provider associated with the LAG.
*
*
* @param providerName
* The name of the service provider associated with the LAG.
*/
public void setProviderName(String providerName) {
this.providerName = providerName;
}
/**
*
* The name of the service provider associated with the LAG.
*
*
* @return The name of the service provider associated with the LAG.
*/
public String getProviderName() {
return this.providerName;
}
/**
*
* The name of the service provider associated with the LAG.
*
*
* @param providerName
* The name of the service provider associated with the LAG.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLagResult withProviderName(String providerName) {
setProviderName(providerName);
return this;
}
/**
*
* Indicates whether the LAG supports MAC Security (MACsec).
*
*
* @param macSecCapable
* Indicates whether the LAG supports MAC Security (MACsec).
*/
public void setMacSecCapable(Boolean macSecCapable) {
this.macSecCapable = macSecCapable;
}
/**
*
* Indicates whether the LAG supports MAC Security (MACsec).
*
*
* @return Indicates whether the LAG supports MAC Security (MACsec).
*/
public Boolean getMacSecCapable() {
return this.macSecCapable;
}
/**
*
* Indicates whether the LAG supports MAC Security (MACsec).
*
*
* @param macSecCapable
* Indicates whether the LAG supports MAC Security (MACsec).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLagResult withMacSecCapable(Boolean macSecCapable) {
setMacSecCapable(macSecCapable);
return this;
}
/**
*
* Indicates whether the LAG supports MAC Security (MACsec).
*
*
* @return Indicates whether the LAG supports MAC Security (MACsec).
*/
public Boolean isMacSecCapable() {
return this.macSecCapable;
}
/**
*
* The LAG MAC Security (MACsec) encryption mode.
*
*
* The valid values are no_encrypt
, should_encrypt
, and must_encrypt
.
*
*
* @param encryptionMode
* The LAG MAC Security (MACsec) encryption mode.
*
* The valid values are no_encrypt
, should_encrypt
, and must_encrypt
.
*/
public void setEncryptionMode(String encryptionMode) {
this.encryptionMode = encryptionMode;
}
/**
*
* The LAG MAC Security (MACsec) encryption mode.
*
*
* The valid values are no_encrypt
, should_encrypt
, and must_encrypt
.
*
*
* @return The LAG MAC Security (MACsec) encryption mode.
*
* The valid values are no_encrypt
, should_encrypt
, and must_encrypt
.
*/
public String getEncryptionMode() {
return this.encryptionMode;
}
/**
*
* The LAG MAC Security (MACsec) encryption mode.
*
*
* The valid values are no_encrypt
, should_encrypt
, and must_encrypt
.
*
*
* @param encryptionMode
* The LAG MAC Security (MACsec) encryption mode.
*
* The valid values are no_encrypt
, should_encrypt
, and must_encrypt
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLagResult withEncryptionMode(String encryptionMode) {
setEncryptionMode(encryptionMode);
return this;
}
/**
*
* The MAC Security (MACsec) security keys associated with the LAG.
*
*
* @return The MAC Security (MACsec) security keys associated with the LAG.
*/
public java.util.List getMacSecKeys() {
if (macSecKeys == null) {
macSecKeys = new com.amazonaws.internal.SdkInternalList();
}
return macSecKeys;
}
/**
*
* The MAC Security (MACsec) security keys associated with the LAG.
*
*
* @param macSecKeys
* The MAC Security (MACsec) security keys associated with the LAG.
*/
public void setMacSecKeys(java.util.Collection macSecKeys) {
if (macSecKeys == null) {
this.macSecKeys = null;
return;
}
this.macSecKeys = new com.amazonaws.internal.SdkInternalList(macSecKeys);
}
/**
*
* The MAC Security (MACsec) security keys associated with the LAG.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setMacSecKeys(java.util.Collection)} or {@link #withMacSecKeys(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param macSecKeys
* The MAC Security (MACsec) security keys associated with the LAG.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLagResult withMacSecKeys(MacSecKey... macSecKeys) {
if (this.macSecKeys == null) {
setMacSecKeys(new com.amazonaws.internal.SdkInternalList(macSecKeys.length));
}
for (MacSecKey ele : macSecKeys) {
this.macSecKeys.add(ele);
}
return this;
}
/**
*
* The MAC Security (MACsec) security keys associated with the LAG.
*
*
* @param macSecKeys
* The MAC Security (MACsec) security keys associated with the LAG.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLagResult withMacSecKeys(java.util.Collection macSecKeys) {
setMacSecKeys(macSecKeys);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getConnectionsBandwidth() != null)
sb.append("ConnectionsBandwidth: ").append(getConnectionsBandwidth()).append(",");
if (getNumberOfConnections() != null)
sb.append("NumberOfConnections: ").append(getNumberOfConnections()).append(",");
if (getLagId() != null)
sb.append("LagId: ").append(getLagId()).append(",");
if (getOwnerAccount() != null)
sb.append("OwnerAccount: ").append(getOwnerAccount()).append(",");
if (getLagName() != null)
sb.append("LagName: ").append(getLagName()).append(",");
if (getLagState() != null)
sb.append("LagState: ").append(getLagState()).append(",");
if (getLocation() != null)
sb.append("Location: ").append(getLocation()).append(",");
if (getRegion() != null)
sb.append("Region: ").append(getRegion()).append(",");
if (getMinimumLinks() != null)
sb.append("MinimumLinks: ").append(getMinimumLinks()).append(",");
if (getAwsDevice() != null)
sb.append("AwsDevice: ").append(getAwsDevice()).append(",");
if (getAwsDeviceV2() != null)
sb.append("AwsDeviceV2: ").append(getAwsDeviceV2()).append(",");
if (getAwsLogicalDeviceId() != null)
sb.append("AwsLogicalDeviceId: ").append(getAwsLogicalDeviceId()).append(",");
if (getConnections() != null)
sb.append("Connections: ").append(getConnections()).append(",");
if (getAllowsHostedConnections() != null)
sb.append("AllowsHostedConnections: ").append(getAllowsHostedConnections()).append(",");
if (getJumboFrameCapable() != null)
sb.append("JumboFrameCapable: ").append(getJumboFrameCapable()).append(",");
if (getHasLogicalRedundancy() != null)
sb.append("HasLogicalRedundancy: ").append(getHasLogicalRedundancy()).append(",");
if (getTags() != null)
sb.append("Tags: ").append(getTags()).append(",");
if (getProviderName() != null)
sb.append("ProviderName: ").append(getProviderName()).append(",");
if (getMacSecCapable() != null)
sb.append("MacSecCapable: ").append(getMacSecCapable()).append(",");
if (getEncryptionMode() != null)
sb.append("EncryptionMode: ").append(getEncryptionMode()).append(",");
if (getMacSecKeys() != null)
sb.append("MacSecKeys: ").append(getMacSecKeys());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateLagResult == false)
return false;
CreateLagResult other = (CreateLagResult) obj;
if (other.getConnectionsBandwidth() == null ^ this.getConnectionsBandwidth() == null)
return false;
if (other.getConnectionsBandwidth() != null && other.getConnectionsBandwidth().equals(this.getConnectionsBandwidth()) == false)
return false;
if (other.getNumberOfConnections() == null ^ this.getNumberOfConnections() == null)
return false;
if (other.getNumberOfConnections() != null && other.getNumberOfConnections().equals(this.getNumberOfConnections()) == false)
return false;
if (other.getLagId() == null ^ this.getLagId() == null)
return false;
if (other.getLagId() != null && other.getLagId().equals(this.getLagId()) == false)
return false;
if (other.getOwnerAccount() == null ^ this.getOwnerAccount() == null)
return false;
if (other.getOwnerAccount() != null && other.getOwnerAccount().equals(this.getOwnerAccount()) == false)
return false;
if (other.getLagName() == null ^ this.getLagName() == null)
return false;
if (other.getLagName() != null && other.getLagName().equals(this.getLagName()) == false)
return false;
if (other.getLagState() == null ^ this.getLagState() == null)
return false;
if (other.getLagState() != null && other.getLagState().equals(this.getLagState()) == false)
return false;
if (other.getLocation() == null ^ this.getLocation() == null)
return false;
if (other.getLocation() != null && other.getLocation().equals(this.getLocation()) == false)
return false;
if (other.getRegion() == null ^ this.getRegion() == null)
return false;
if (other.getRegion() != null && other.getRegion().equals(this.getRegion()) == false)
return false;
if (other.getMinimumLinks() == null ^ this.getMinimumLinks() == null)
return false;
if (other.getMinimumLinks() != null && other.getMinimumLinks().equals(this.getMinimumLinks()) == false)
return false;
if (other.getAwsDevice() == null ^ this.getAwsDevice() == null)
return false;
if (other.getAwsDevice() != null && other.getAwsDevice().equals(this.getAwsDevice()) == false)
return false;
if (other.getAwsDeviceV2() == null ^ this.getAwsDeviceV2() == null)
return false;
if (other.getAwsDeviceV2() != null && other.getAwsDeviceV2().equals(this.getAwsDeviceV2()) == false)
return false;
if (other.getAwsLogicalDeviceId() == null ^ this.getAwsLogicalDeviceId() == null)
return false;
if (other.getAwsLogicalDeviceId() != null && other.getAwsLogicalDeviceId().equals(this.getAwsLogicalDeviceId()) == false)
return false;
if (other.getConnections() == null ^ this.getConnections() == null)
return false;
if (other.getConnections() != null && other.getConnections().equals(this.getConnections()) == false)
return false;
if (other.getAllowsHostedConnections() == null ^ this.getAllowsHostedConnections() == null)
return false;
if (other.getAllowsHostedConnections() != null && other.getAllowsHostedConnections().equals(this.getAllowsHostedConnections()) == false)
return false;
if (other.getJumboFrameCapable() == null ^ this.getJumboFrameCapable() == null)
return false;
if (other.getJumboFrameCapable() != null && other.getJumboFrameCapable().equals(this.getJumboFrameCapable()) == false)
return false;
if (other.getHasLogicalRedundancy() == null ^ this.getHasLogicalRedundancy() == null)
return false;
if (other.getHasLogicalRedundancy() != null && other.getHasLogicalRedundancy().equals(this.getHasLogicalRedundancy()) == false)
return false;
if (other.getTags() == null ^ this.getTags() == null)
return false;
if (other.getTags() != null && other.getTags().equals(this.getTags()) == false)
return false;
if (other.getProviderName() == null ^ this.getProviderName() == null)
return false;
if (other.getProviderName() != null && other.getProviderName().equals(this.getProviderName()) == false)
return false;
if (other.getMacSecCapable() == null ^ this.getMacSecCapable() == null)
return false;
if (other.getMacSecCapable() != null && other.getMacSecCapable().equals(this.getMacSecCapable()) == false)
return false;
if (other.getEncryptionMode() == null ^ this.getEncryptionMode() == null)
return false;
if (other.getEncryptionMode() != null && other.getEncryptionMode().equals(this.getEncryptionMode()) == false)
return false;
if (other.getMacSecKeys() == null ^ this.getMacSecKeys() == null)
return false;
if (other.getMacSecKeys() != null && other.getMacSecKeys().equals(this.getMacSecKeys()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getConnectionsBandwidth() == null) ? 0 : getConnectionsBandwidth().hashCode());
hashCode = prime * hashCode + ((getNumberOfConnections() == null) ? 0 : getNumberOfConnections().hashCode());
hashCode = prime * hashCode + ((getLagId() == null) ? 0 : getLagId().hashCode());
hashCode = prime * hashCode + ((getOwnerAccount() == null) ? 0 : getOwnerAccount().hashCode());
hashCode = prime * hashCode + ((getLagName() == null) ? 0 : getLagName().hashCode());
hashCode = prime * hashCode + ((getLagState() == null) ? 0 : getLagState().hashCode());
hashCode = prime * hashCode + ((getLocation() == null) ? 0 : getLocation().hashCode());
hashCode = prime * hashCode + ((getRegion() == null) ? 0 : getRegion().hashCode());
hashCode = prime * hashCode + ((getMinimumLinks() == null) ? 0 : getMinimumLinks().hashCode());
hashCode = prime * hashCode + ((getAwsDevice() == null) ? 0 : getAwsDevice().hashCode());
hashCode = prime * hashCode + ((getAwsDeviceV2() == null) ? 0 : getAwsDeviceV2().hashCode());
hashCode = prime * hashCode + ((getAwsLogicalDeviceId() == null) ? 0 : getAwsLogicalDeviceId().hashCode());
hashCode = prime * hashCode + ((getConnections() == null) ? 0 : getConnections().hashCode());
hashCode = prime * hashCode + ((getAllowsHostedConnections() == null) ? 0 : getAllowsHostedConnections().hashCode());
hashCode = prime * hashCode + ((getJumboFrameCapable() == null) ? 0 : getJumboFrameCapable().hashCode());
hashCode = prime * hashCode + ((getHasLogicalRedundancy() == null) ? 0 : getHasLogicalRedundancy().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
hashCode = prime * hashCode + ((getProviderName() == null) ? 0 : getProviderName().hashCode());
hashCode = prime * hashCode + ((getMacSecCapable() == null) ? 0 : getMacSecCapable().hashCode());
hashCode = prime * hashCode + ((getEncryptionMode() == null) ? 0 : getEncryptionMode().hashCode());
hashCode = prime * hashCode + ((getMacSecKeys() == null) ? 0 : getMacSecKeys().hashCode());
return hashCode;
}
@Override
public CreateLagResult clone() {
try {
return (CreateLagResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}