/* * 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 in a transit gateway route table. *

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

* The CIDR block used for destination matches. *

*/ private String destinationCidr; /** *

* The state of the route. *

*/ private String state; /** *

* The route origin. The following are the possible values: *

* */ private String routeOrigin; /** *

* The ID of the prefix list. *

*/ private String prefixListId; /** *

* The ID of the route attachment. *

*/ private String attachmentId; /** *

* The ID of the resource for the route attachment. *

*/ private String resourceId; /** *

* The resource type for the route attachment. *

*/ private String resourceType; /** *

* The CIDR block used for destination matches. *

* * @param destinationCidr * The CIDR block used for destination matches. */ public void setDestinationCidr(String destinationCidr) { this.destinationCidr = destinationCidr; } /** *

* The CIDR block used for destination matches. *

* * @return The CIDR block used for destination matches. */ public String getDestinationCidr() { return this.destinationCidr; } /** *

* The CIDR block used for destination matches. *

* * @param destinationCidr * The CIDR block used for destination matches. * @return Returns a reference to this object so that method calls can be chained together. */ public TransitGatewayRouteTableRoute withDestinationCidr(String destinationCidr) { setDestinationCidr(destinationCidr); return this; } /** *

* The state of the route. *

* * @param state * The state of the route. */ public void setState(String state) { this.state = state; } /** *

* The state of the route. *

* * @return The state of the route. */ public String getState() { return this.state; } /** *

* The state of the route. *

* * @param state * The state of the route. * @return Returns a reference to this object so that method calls can be chained together. */ public TransitGatewayRouteTableRoute withState(String state) { setState(state); return this; } /** *

* The route origin. The following are the possible values: *

* * * @param routeOrigin * The route origin. The following are the possible values:

*