com.tencentcloudapi.vpc.v20170312.models.CcnRoute 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 CcnRoute extends AbstractModel{
/**
* 路由策略ID
*/
@SerializedName("RouteId")
@Expose
private String RouteId;
/**
* 目的端
*/
@SerializedName("DestinationCidrBlock")
@Expose
private String DestinationCidrBlock;
/**
* 下一跳类型(关联实例类型),所有类型:VPC、DIRECTCONNECT
*/
@SerializedName("InstanceType")
@Expose
private String InstanceType;
/**
* 下一跳(关联实例)
*/
@SerializedName("InstanceId")
@Expose
private String InstanceId;
/**
* 下一跳名称(关联实例名称)
*/
@SerializedName("InstanceName")
@Expose
private String InstanceName;
/**
* 下一跳所属地域(关联实例所属地域)
*/
@SerializedName("InstanceRegion")
@Expose
private String InstanceRegion;
/**
* 更新时间
*/
@SerializedName("UpdateTime")
@Expose
private String UpdateTime;
/**
* 路由是否启用
*/
@SerializedName("Enabled")
@Expose
private Boolean Enabled;
/**
* 关联实例所属UIN(根账号)
*/
@SerializedName("InstanceUin")
@Expose
private String InstanceUin;
/**
* 路由的扩展状态
*/
@SerializedName("ExtraState")
@Expose
private String ExtraState;
/**
* 是否动态路由
*/
@SerializedName("IsBgp")
@Expose
private Boolean IsBgp;
/**
* 路由优先级
*/
@SerializedName("RoutePriority")
@Expose
private Long RoutePriority;
/**
* 下一跳扩展名称(关联实例的扩展名称)
*/
@SerializedName("InstanceExtraName")
@Expose
private String InstanceExtraName;
/**
* 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 目的端
* @return DestinationCidrBlock 目的端
*/
public String getDestinationCidrBlock() {
return this.DestinationCidrBlock;
}
/**
* Set 目的端
* @param DestinationCidrBlock 目的端
*/
public void setDestinationCidrBlock(String DestinationCidrBlock) {
this.DestinationCidrBlock = DestinationCidrBlock;
}
/**
* Get 下一跳类型(关联实例类型),所有类型:VPC、DIRECTCONNECT
* @return InstanceType 下一跳类型(关联实例类型),所有类型:VPC、DIRECTCONNECT
*/
public String getInstanceType() {
return this.InstanceType;
}
/**
* Set 下一跳类型(关联实例类型),所有类型:VPC、DIRECTCONNECT
* @param InstanceType 下一跳类型(关联实例类型),所有类型:VPC、DIRECTCONNECT
*/
public void setInstanceType(String InstanceType) {
this.InstanceType = InstanceType;
}
/**
* Get 下一跳(关联实例)
* @return InstanceId 下一跳(关联实例)
*/
public String getInstanceId() {
return this.InstanceId;
}
/**
* Set 下一跳(关联实例)
* @param InstanceId 下一跳(关联实例)
*/
public void setInstanceId(String InstanceId) {
this.InstanceId = InstanceId;
}
/**
* Get 下一跳名称(关联实例名称)
* @return InstanceName 下一跳名称(关联实例名称)
*/
public String getInstanceName() {
return this.InstanceName;
}
/**
* Set 下一跳名称(关联实例名称)
* @param InstanceName 下一跳名称(关联实例名称)
*/
public void setInstanceName(String InstanceName) {
this.InstanceName = InstanceName;
}
/**
* Get 下一跳所属地域(关联实例所属地域)
* @return InstanceRegion 下一跳所属地域(关联实例所属地域)
*/
public String getInstanceRegion() {
return this.InstanceRegion;
}
/**
* Set 下一跳所属地域(关联实例所属地域)
* @param InstanceRegion 下一跳所属地域(关联实例所属地域)
*/
public void setInstanceRegion(String InstanceRegion) {
this.InstanceRegion = InstanceRegion;
}
/**
* Get 更新时间
* @return UpdateTime 更新时间
*/
public String getUpdateTime() {
return this.UpdateTime;
}
/**
* Set 更新时间
* @param UpdateTime 更新时间
*/
public void setUpdateTime(String UpdateTime) {
this.UpdateTime = UpdateTime;
}
/**
* Get 路由是否启用
* @return Enabled 路由是否启用
*/
public Boolean getEnabled() {
return this.Enabled;
}
/**
* Set 路由是否启用
* @param Enabled 路由是否启用
*/
public void setEnabled(Boolean Enabled) {
this.Enabled = Enabled;
}
/**
* Get 关联实例所属UIN(根账号)
* @return InstanceUin 关联实例所属UIN(根账号)
*/
public String getInstanceUin() {
return this.InstanceUin;
}
/**
* Set 关联实例所属UIN(根账号)
* @param InstanceUin 关联实例所属UIN(根账号)
*/
public void setInstanceUin(String InstanceUin) {
this.InstanceUin = InstanceUin;
}
/**
* Get 路由的扩展状态
* @return ExtraState 路由的扩展状态
*/
public String getExtraState() {
return this.ExtraState;
}
/**
* Set 路由的扩展状态
* @param ExtraState 路由的扩展状态
*/
public void setExtraState(String ExtraState) {
this.ExtraState = ExtraState;
}
/**
* Get 是否动态路由
* @return IsBgp 是否动态路由
*/
public Boolean getIsBgp() {
return this.IsBgp;
}
/**
* Set 是否动态路由
* @param IsBgp 是否动态路由
*/
public void setIsBgp(Boolean IsBgp) {
this.IsBgp = IsBgp;
}
/**
* Get 路由优先级
* @return RoutePriority 路由优先级
*/
public Long getRoutePriority() {
return this.RoutePriority;
}
/**
* Set 路由优先级
* @param RoutePriority 路由优先级
*/
public void setRoutePriority(Long RoutePriority) {
this.RoutePriority = RoutePriority;
}
/**
* Get 下一跳扩展名称(关联实例的扩展名称)
* @return InstanceExtraName 下一跳扩展名称(关联实例的扩展名称)
*/
public String getInstanceExtraName() {
return this.InstanceExtraName;
}
/**
* Set 下一跳扩展名称(关联实例的扩展名称)
* @param InstanceExtraName 下一跳扩展名称(关联实例的扩展名称)
*/
public void setInstanceExtraName(String InstanceExtraName) {
this.InstanceExtraName = InstanceExtraName;
}
public CcnRoute() {
}
/**
* 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 CcnRoute(CcnRoute source) {
if (source.RouteId != null) {
this.RouteId = new String(source.RouteId);
}
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.InstanceName != null) {
this.InstanceName = new String(source.InstanceName);
}
if (source.InstanceRegion != null) {
this.InstanceRegion = new String(source.InstanceRegion);
}
if (source.UpdateTime != null) {
this.UpdateTime = new String(source.UpdateTime);
}
if (source.Enabled != null) {
this.Enabled = new Boolean(source.Enabled);
}
if (source.InstanceUin != null) {
this.InstanceUin = new String(source.InstanceUin);
}
if (source.ExtraState != null) {
this.ExtraState = new String(source.ExtraState);
}
if (source.IsBgp != null) {
this.IsBgp = new Boolean(source.IsBgp);
}
if (source.RoutePriority != null) {
this.RoutePriority = new Long(source.RoutePriority);
}
if (source.InstanceExtraName != null) {
this.InstanceExtraName = new String(source.InstanceExtraName);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "RouteId", this.RouteId);
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 + "InstanceName", this.InstanceName);
this.setParamSimple(map, prefix + "InstanceRegion", this.InstanceRegion);
this.setParamSimple(map, prefix + "UpdateTime", this.UpdateTime);
this.setParamSimple(map, prefix + "Enabled", this.Enabled);
this.setParamSimple(map, prefix + "InstanceUin", this.InstanceUin);
this.setParamSimple(map, prefix + "ExtraState", this.ExtraState);
this.setParamSimple(map, prefix + "IsBgp", this.IsBgp);
this.setParamSimple(map, prefix + "RoutePriority", this.RoutePriority);
this.setParamSimple(map, prefix + "InstanceExtraName", this.InstanceExtraName);
}
}