/* * 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.ec2.model; import java.io.Serializable; import javax.annotation.Generated; /** *

* Describes a route table route. *

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

* The destination IPv4 address, in CIDR notation. *

*/ private String destinationCidr; /** *

* The prefix of the Amazon Web Service. *

*/ private String destinationPrefixListId; /** *

* The ID of an egress-only internet gateway. *

*/ private String egressOnlyInternetGatewayId; /** *

* The ID of the gateway, such as an internet gateway or virtual private gateway. *

*/ private String gatewayId; /** *

* The ID of the instance, such as a NAT instance. *

*/ private String instanceId; /** *

* The ID of a NAT gateway. *

*/ private String natGatewayId; /** *

* The ID of a network interface. *

*/ private String networkInterfaceId; /** *

* Describes how the route was created. The following are the possible values: *

* */ private String origin; /** *

* The ID of a transit gateway. *

*/ private String transitGatewayId; /** *

* The ID of a VPC peering connection. *

*/ private String vpcPeeringConnectionId; /** *

* The state. The following are the possible values: *

* */ private String state; /** *

* The ID of a carrier gateway. *

*/ private String carrierGatewayId; /** *

* The Amazon Resource Name (ARN) of a core network. *

*/ private String coreNetworkArn; /** *

* The ID of a local gateway. *

*/ private String localGatewayId; /** *

* The destination IPv4 address, in CIDR notation. *

* * @param destinationCidr * The destination IPv4 address, in CIDR notation. */ public void setDestinationCidr(String destinationCidr) { this.destinationCidr = destinationCidr; } /** *

* The destination IPv4 address, in CIDR notation. *

* * @return The destination IPv4 address, in CIDR notation. */ public String getDestinationCidr() { return this.destinationCidr; } /** *

* The destination IPv4 address, in CIDR notation. *

* * @param destinationCidr * The destination IPv4 address, in CIDR notation. * @return Returns a reference to this object so that method calls can be chained together. */ public AnalysisRouteTableRoute withDestinationCidr(String destinationCidr) { setDestinationCidr(destinationCidr); return this; } /** *

* The prefix of the Amazon Web Service. *

* * @param destinationPrefixListId * The prefix of the Amazon Web Service. */ public void setDestinationPrefixListId(String destinationPrefixListId) { this.destinationPrefixListId = destinationPrefixListId; } /** *

* The prefix of the Amazon Web Service. *

* * @return The prefix of the Amazon Web Service. */ public String getDestinationPrefixListId() { return this.destinationPrefixListId; } /** *

* The prefix of the Amazon Web Service. *

* * @param destinationPrefixListId * The prefix of the Amazon Web Service. * @return Returns a reference to this object so that method calls can be chained together. */ public AnalysisRouteTableRoute withDestinationPrefixListId(String destinationPrefixListId) { setDestinationPrefixListId(destinationPrefixListId); return this; } /** *

* The ID of an egress-only internet gateway. *

* * @param egressOnlyInternetGatewayId * The ID of an egress-only internet gateway. */ public void setEgressOnlyInternetGatewayId(String egressOnlyInternetGatewayId) { this.egressOnlyInternetGatewayId = egressOnlyInternetGatewayId; } /** *

* The ID of an egress-only internet gateway. *

* * @return The ID of an egress-only internet gateway. */ public String getEgressOnlyInternetGatewayId() { return this.egressOnlyInternetGatewayId; } /** *

* The ID of an egress-only internet gateway. *

* * @param egressOnlyInternetGatewayId * The ID of an egress-only internet gateway. * @return Returns a reference to this object so that method calls can be chained together. */ public AnalysisRouteTableRoute withEgressOnlyInternetGatewayId(String egressOnlyInternetGatewayId) { setEgressOnlyInternetGatewayId(egressOnlyInternetGatewayId); return this; } /** *

* The ID of the gateway, such as an internet gateway or virtual private gateway. *

* * @param gatewayId * The ID of the gateway, such as an internet gateway or virtual private gateway. */ public void setGatewayId(String gatewayId) { this.gatewayId = gatewayId; } /** *

* The ID of the gateway, such as an internet gateway or virtual private gateway. *

* * @return The ID of the gateway, such as an internet gateway or virtual private gateway. */ public String getGatewayId() { return this.gatewayId; } /** *

* The ID of the gateway, such as an internet gateway or virtual private gateway. *

* * @param gatewayId * The ID of the gateway, such as an internet gateway or virtual private gateway. * @return Returns a reference to this object so that method calls can be chained together. */ public AnalysisRouteTableRoute withGatewayId(String gatewayId) { setGatewayId(gatewayId); return this; } /** *

* The ID of the instance, such as a NAT instance. *

* * @param instanceId * The ID of the instance, such as a NAT instance. */ public void setInstanceId(String instanceId) { this.instanceId = instanceId; } /** *

* The ID of the instance, such as a NAT instance. *

* * @return The ID of the instance, such as a NAT instance. */ public String getInstanceId() { return this.instanceId; } /** *

* The ID of the instance, such as a NAT instance. *

* * @param instanceId * The ID of the instance, such as a NAT instance. * @return Returns a reference to this object so that method calls can be chained together. */ public AnalysisRouteTableRoute withInstanceId(String instanceId) { setInstanceId(instanceId); return this; } /** *

* The ID of a NAT gateway. *

* * @param natGatewayId * The ID of a NAT gateway. */ public void setNatGatewayId(String natGatewayId) { this.natGatewayId = natGatewayId; } /** *

* The ID of a NAT gateway. *

* * @return The ID of a NAT gateway. */ public String getNatGatewayId() { return this.natGatewayId; } /** *

* The ID of a NAT gateway. *

* * @param natGatewayId * The ID of a NAT gateway. * @return Returns a reference to this object so that method calls can be chained together. */ public AnalysisRouteTableRoute withNatGatewayId(String natGatewayId) { setNatGatewayId(natGatewayId); return this; } /** *

* The ID of a network interface. *

* * @param networkInterfaceId * The ID of a network interface. */ public void setNetworkInterfaceId(String networkInterfaceId) { this.networkInterfaceId = networkInterfaceId; } /** *

* The ID of a network interface. *

* * @return The ID of a network interface. */ public String getNetworkInterfaceId() { return this.networkInterfaceId; } /** *

* The ID of a network interface. *

* * @param networkInterfaceId * The ID of a network interface. * @return Returns a reference to this object so that method calls can be chained together. */ public AnalysisRouteTableRoute withNetworkInterfaceId(String networkInterfaceId) { setNetworkInterfaceId(networkInterfaceId); return this; } /** *

* Describes how the route was created. The following are the possible values: *

* * * @param origin * Describes how the route was created. The following are the possible values:

*