com.tencentcloudapi.vpc.v20170312.models.VpnGatewayRoute Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-vpc Show documentation
Show all versions of tencentcloud-sdk-java-vpc Show documentation
Tencent Cloud Open API SDK for Java
/*
* 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.vpc.v20170312.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class VpnGatewayRoute extends AbstractModel{
/**
* 目的端IDC网段
*/
@SerializedName("DestinationCidrBlock")
@Expose
private String DestinationCidrBlock;
/**
* 下一跳类型(关联实例类型)可选值:"VPNCONN"(VPN通道), "CCN"(CCN实例)
*/
@SerializedName("InstanceType")
@Expose
private String InstanceType;
/**
* 下一跳实例ID
*/
@SerializedName("InstanceId")
@Expose
private String InstanceId;
/**
* 优先级, 可选值: 0, 100
*/
@SerializedName("Priority")
@Expose
private Long Priority;
/**
* 启用状态, 可选值: "ENABLE"(启用), "DISABLE"(禁用)
*/
@SerializedName("Status")
@Expose
private String Status;
/**
* 路由条目ID
*/
@SerializedName("RouteId")
@Expose
private String RouteId;
/**
* 路由类型, 可选值: "VPC"(VPC路由), "CCN"(云联网传播路由), "Static"(静态路由), "BGP"(BGP路由)
*/
@SerializedName("Type")
@Expose
private String Type;
/**
* 创建时间
*/
@SerializedName("CreateTime")
@Expose
private String CreateTime;
/**
* 更新时间
*/
@SerializedName("UpdateTime")
@Expose
private String UpdateTime;
/**
* Get 目的端IDC网段
* @return DestinationCidrBlock 目的端IDC网段
*/
public String getDestinationCidrBlock() {
return this.DestinationCidrBlock;
}
/**
* Set 目的端IDC网段
* @param DestinationCidrBlock 目的端IDC网段
*/
public void setDestinationCidrBlock(String DestinationCidrBlock) {
this.DestinationCidrBlock = DestinationCidrBlock;
}
/**
* Get 下一跳类型(关联实例类型)可选值:"VPNCONN"(VPN通道), "CCN"(CCN实例)
* @return InstanceType 下一跳类型(关联实例类型)可选值:"VPNCONN"(VPN通道), "CCN"(CCN实例)
*/
public String getInstanceType() {
return this.InstanceType;
}
/**
* Set 下一跳类型(关联实例类型)可选值:"VPNCONN"(VPN通道), "CCN"(CCN实例)
* @param InstanceType 下一跳类型(关联实例类型)可选值:"VPNCONN"(VPN通道), "CCN"(CCN实例)
*/
public void setInstanceType(String InstanceType) {
this.InstanceType = InstanceType;
}
/**
* Get 下一跳实例ID
* @return InstanceId 下一跳实例ID
*/
public String getInstanceId() {
return this.InstanceId;
}
/**
* Set 下一跳实例ID
* @param InstanceId 下一跳实例ID
*/
public void setInstanceId(String InstanceId) {
this.InstanceId = InstanceId;
}
/**
* Get 优先级, 可选值: 0, 100
* @return Priority 优先级, 可选值: 0, 100
*/
public Long getPriority() {
return this.Priority;
}
/**
* Set 优先级, 可选值: 0, 100
* @param Priority 优先级, 可选值: 0, 100
*/
public void setPriority(Long Priority) {
this.Priority = Priority;
}
/**
* Get 启用状态, 可选值: "ENABLE"(启用), "DISABLE"(禁用)
* @return Status 启用状态, 可选值: "ENABLE"(启用), "DISABLE"(禁用)
*/
public String getStatus() {
return this.Status;
}
/**
* Set 启用状态, 可选值: "ENABLE"(启用), "DISABLE"(禁用)
* @param Status 启用状态, 可选值: "ENABLE"(启用), "DISABLE"(禁用)
*/
public void setStatus(String Status) {
this.Status = Status;
}
/**
* Get 路由条目ID
* @return RouteId 路由条目ID
*/
public String getRouteId() {
return this.RouteId;
}
/**
* Set 路由条目ID
* @param RouteId 路由条目ID
*/
public void setRouteId(String RouteId) {
this.RouteId = RouteId;
}
/**
* Get 路由类型, 可选值: "VPC"(VPC路由), "CCN"(云联网传播路由), "Static"(静态路由), "BGP"(BGP路由)
* @return Type 路由类型, 可选值: "VPC"(VPC路由), "CCN"(云联网传播路由), "Static"(静态路由), "BGP"(BGP路由)
*/
public String getType() {
return this.Type;
}
/**
* Set 路由类型, 可选值: "VPC"(VPC路由), "CCN"(云联网传播路由), "Static"(静态路由), "BGP"(BGP路由)
* @param Type 路由类型, 可选值: "VPC"(VPC路由), "CCN"(云联网传播路由), "Static"(静态路由), "BGP"(BGP路由)
*/
public void setType(String Type) {
this.Type = Type;
}
/**
* Get 创建时间
* @return CreateTime 创建时间
*/
public String getCreateTime() {
return this.CreateTime;
}
/**
* Set 创建时间
* @param CreateTime 创建时间
*/
public void setCreateTime(String CreateTime) {
this.CreateTime = CreateTime;
}
/**
* Get 更新时间
* @return UpdateTime 更新时间
*/
public String getUpdateTime() {
return this.UpdateTime;
}
/**
* Set 更新时间
* @param UpdateTime 更新时间
*/
public void setUpdateTime(String UpdateTime) {
this.UpdateTime = UpdateTime;
}
public VpnGatewayRoute() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public VpnGatewayRoute(VpnGatewayRoute source) {
if (source.DestinationCidrBlock != null) {
this.DestinationCidrBlock = new String(source.DestinationCidrBlock);
}
if (source.InstanceType != null) {
this.InstanceType = new String(source.InstanceType);
}
if (source.InstanceId != null) {
this.InstanceId = new String(source.InstanceId);
}
if (source.Priority != null) {
this.Priority = new Long(source.Priority);
}
if (source.Status != null) {
this.Status = new String(source.Status);
}
if (source.RouteId != null) {
this.RouteId = new String(source.RouteId);
}
if (source.Type != null) {
this.Type = new String(source.Type);
}
if (source.CreateTime != null) {
this.CreateTime = new String(source.CreateTime);
}
if (source.UpdateTime != null) {
this.UpdateTime = new String(source.UpdateTime);
}
}
/**
* 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 + "InstanceType", this.InstanceType);
this.setParamSimple(map, prefix + "InstanceId", this.InstanceId);
this.setParamSimple(map, prefix + "Priority", this.Priority);
this.setParamSimple(map, prefix + "Status", this.Status);
this.setParamSimple(map, prefix + "RouteId", this.RouteId);
this.setParamSimple(map, prefix + "Type", this.Type);
this.setParamSimple(map, prefix + "CreateTime", this.CreateTime);
this.setParamSimple(map, prefix + "UpdateTime", this.UpdateTime);
}
}