
com.tencentcloudapi.bmvpc.v20180625.models.RoutePolicy Maven / Gradle / Ivy
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License 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.tencentcloudapi.bmvpc.v20180625.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class RoutePolicy extends AbstractModel{
/**
* 目的网段
*/
@SerializedName("DestinationCidrBlock")
@Expose
private String DestinationCidrBlock;
/**
* 下一跳类型,目前我们支持的类型有:
LOCAL:物理机默认路由;
VPN:VPN网关;
PEERCONNECTION:对等连接;
CPM:物理机自定义路由;
CCN:云联网;
TGW:公网默认路由;
SSLVPN : SSH SSL VPN网关。
*/
@SerializedName("GatewayType")
@Expose
private String GatewayType;
/**
* 下一跳地址,这里只需要指定不同下一跳类型的网关ID,系统会自动匹配到下一跳地址。
*/
@SerializedName("GatewayId")
@Expose
private String GatewayId;
/**
* 路由策略描述。
*/
@SerializedName("RouteDescription")
@Expose
private String RouteDescription;
/**
* 路由策略ID
*/
@SerializedName("RoutePolicyId")
@Expose
private String RoutePolicyId;
/**
* 路由类型,目前我们支持的类型有:
USER:用户自定义路由;
NETD:网络探测路由,创建网络探测实例时,系统默认下发,不可编辑与删除;
CCN:云联网路由,系统默认下发,不可编辑与删除。
用户只能添加和编辑USER 类型的路由。
*/
@SerializedName("RoutePolicyType")
@Expose
private String RoutePolicyType;
/**
* 是否启用
*/
@SerializedName("Enabled")
@Expose
private Boolean Enabled;
/**
* Get 目的网段
* @return DestinationCidrBlock 目的网段
*/
public String getDestinationCidrBlock() {
return this.DestinationCidrBlock;
}
/**
* Set 目的网段
* @param DestinationCidrBlock 目的网段
*/
public void setDestinationCidrBlock(String DestinationCidrBlock) {
this.DestinationCidrBlock = DestinationCidrBlock;
}
/**
* Get 下一跳类型,目前我们支持的类型有:
LOCAL:物理机默认路由;
VPN:VPN网关;
PEERCONNECTION:对等连接;
CPM:物理机自定义路由;
CCN:云联网;
TGW:公网默认路由;
SSLVPN : SSH SSL VPN网关。
* @return GatewayType 下一跳类型,目前我们支持的类型有:
LOCAL:物理机默认路由;
VPN:VPN网关;
PEERCONNECTION:对等连接;
CPM:物理机自定义路由;
CCN:云联网;
TGW:公网默认路由;
SSLVPN : SSH SSL VPN网关。
*/
public String getGatewayType() {
return this.GatewayType;
}
/**
* Set 下一跳类型,目前我们支持的类型有:
LOCAL:物理机默认路由;
VPN:VPN网关;
PEERCONNECTION:对等连接;
CPM:物理机自定义路由;
CCN:云联网;
TGW:公网默认路由;
SSLVPN : SSH SSL VPN网关。
* @param GatewayType 下一跳类型,目前我们支持的类型有:
LOCAL:物理机默认路由;
VPN:VPN网关;
PEERCONNECTION:对等连接;
CPM:物理机自定义路由;
CCN:云联网;
TGW:公网默认路由;
SSLVPN : SSH SSL VPN网关。
*/
public void setGatewayType(String GatewayType) {
this.GatewayType = GatewayType;
}
/**
* Get 下一跳地址,这里只需要指定不同下一跳类型的网关ID,系统会自动匹配到下一跳地址。
* @return GatewayId 下一跳地址,这里只需要指定不同下一跳类型的网关ID,系统会自动匹配到下一跳地址。
*/
public String getGatewayId() {
return this.GatewayId;
}
/**
* Set 下一跳地址,这里只需要指定不同下一跳类型的网关ID,系统会自动匹配到下一跳地址。
* @param GatewayId 下一跳地址,这里只需要指定不同下一跳类型的网关ID,系统会自动匹配到下一跳地址。
*/
public void setGatewayId(String GatewayId) {
this.GatewayId = GatewayId;
}
/**
* Get 路由策略描述。
* @return RouteDescription 路由策略描述。
*/
public String getRouteDescription() {
return this.RouteDescription;
}
/**
* Set 路由策略描述。
* @param RouteDescription 路由策略描述。
*/
public void setRouteDescription(String RouteDescription) {
this.RouteDescription = RouteDescription;
}
/**
* Get 路由策略ID
* @return RoutePolicyId 路由策略ID
*/
public String getRoutePolicyId() {
return this.RoutePolicyId;
}
/**
* Set 路由策略ID
* @param RoutePolicyId 路由策略ID
*/
public void setRoutePolicyId(String RoutePolicyId) {
this.RoutePolicyId = RoutePolicyId;
}
/**
* Get 路由类型,目前我们支持的类型有:
USER:用户自定义路由;
NETD:网络探测路由,创建网络探测实例时,系统默认下发,不可编辑与删除;
CCN:云联网路由,系统默认下发,不可编辑与删除。
用户只能添加和编辑USER 类型的路由。
* @return RoutePolicyType 路由类型,目前我们支持的类型有:
USER:用户自定义路由;
NETD:网络探测路由,创建网络探测实例时,系统默认下发,不可编辑与删除;
CCN:云联网路由,系统默认下发,不可编辑与删除。
用户只能添加和编辑USER 类型的路由。
*/
public String getRoutePolicyType() {
return this.RoutePolicyType;
}
/**
* Set 路由类型,目前我们支持的类型有:
USER:用户自定义路由;
NETD:网络探测路由,创建网络探测实例时,系统默认下发,不可编辑与删除;
CCN:云联网路由,系统默认下发,不可编辑与删除。
用户只能添加和编辑USER 类型的路由。
* @param RoutePolicyType 路由类型,目前我们支持的类型有:
USER:用户自定义路由;
NETD:网络探测路由,创建网络探测实例时,系统默认下发,不可编辑与删除;
CCN:云联网路由,系统默认下发,不可编辑与删除。
用户只能添加和编辑USER 类型的路由。
*/
public void setRoutePolicyType(String RoutePolicyType) {
this.RoutePolicyType = RoutePolicyType;
}
/**
* Get 是否启用
* @return Enabled 是否启用
*/
public Boolean getEnabled() {
return this.Enabled;
}
/**
* Set 是否启用
* @param Enabled 是否启用
*/
public void setEnabled(Boolean Enabled) {
this.Enabled = Enabled;
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "DestinationCidrBlock", this.DestinationCidrBlock);
this.setParamSimple(map, prefix + "GatewayType", this.GatewayType);
this.setParamSimple(map, prefix + "GatewayId", this.GatewayId);
this.setParamSimple(map, prefix + "RouteDescription", this.RouteDescription);
this.setParamSimple(map, prefix + "RoutePolicyId", this.RoutePolicyId);
this.setParamSimple(map, prefix + "RoutePolicyType", this.RoutePolicyType);
this.setParamSimple(map, prefix + "Enabled", this.Enabled);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy