com.aliyun.ens20171110.models.CreateEnsRouteEntryRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ens20171110 Show documentation
Show all versions of ens20171110 Show documentation
Alibaba Cloud edge node service (20171110) SDK for Java
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.ens20171110.models;
import com.aliyun.tea.*;
public class CreateEnsRouteEntryRequest extends TeaModel {
/**
* The description of the custom route entry.
*
* example:
* example
*/
@NameInMap("Description")
public String description;
/**
* The destination CIDR block of the custom route entry. Make sure that the destination CIDR block meets the following requirements:
*
* - The destination CIDR block is not 100.64.0.0/10 or a subset of 100.64.0.0/10.
* - The destination CIDR block of the custom route entry is different from the destination CIDR blocks of other route entries in the same route table.
* - 0.0.0.0/0 indicates the default CIDR block.
*
* This parameter is required.
*
* example:
* 0.0.0.0/0
*/
@NameInMap("DestinationCidrBlock")
public String destinationCidrBlock;
/**
* The ID of the next hop of the custom route entry.
* This parameter is required.
*
* example:
* i-5vb7leks9z4mxy1ay258
*/
@NameInMap("NextHopId")
public String nextHopId;
/**
* The type of next hop of the custom route entry. Valid values:
*
* - Instance (default): an ENS instance.
*
*
* example:
* Instance
*/
@NameInMap("NextHopType")
public String nextHopType;
/**
* The name of the custom route entry that you want to add. The name must be 1 to 128 characters in length. It cannot start with http:// or https://.
*
* example:
* test
*/
@NameInMap("RouteEntryName")
public String routeEntryName;
/**
* The ID of the route table to which you want to add a custom route entry.
* This parameter is required.
*
* example:
* vtb-bp1cifr72dioje82lse2j
*/
@NameInMap("RouteTableId")
public String routeTableId;
public static CreateEnsRouteEntryRequest build(java.util.Map map) throws Exception {
CreateEnsRouteEntryRequest self = new CreateEnsRouteEntryRequest();
return TeaModel.build(map, self);
}
public CreateEnsRouteEntryRequest setDescription(String description) {
this.description = description;
return this;
}
public String getDescription() {
return this.description;
}
public CreateEnsRouteEntryRequest setDestinationCidrBlock(String destinationCidrBlock) {
this.destinationCidrBlock = destinationCidrBlock;
return this;
}
public String getDestinationCidrBlock() {
return this.destinationCidrBlock;
}
public CreateEnsRouteEntryRequest setNextHopId(String nextHopId) {
this.nextHopId = nextHopId;
return this;
}
public String getNextHopId() {
return this.nextHopId;
}
public CreateEnsRouteEntryRequest setNextHopType(String nextHopType) {
this.nextHopType = nextHopType;
return this;
}
public String getNextHopType() {
return this.nextHopType;
}
public CreateEnsRouteEntryRequest setRouteEntryName(String routeEntryName) {
this.routeEntryName = routeEntryName;
return this;
}
public String getRouteEntryName() {
return this.routeEntryName;
}
public CreateEnsRouteEntryRequest setRouteTableId(String routeTableId) {
this.routeTableId = routeTableId;
return this;
}
public String getRouteTableId() {
return this.routeTableId;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy