
com.tencentcloudapi.vpc.v20170312.models.CreateRouteTableRequest 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.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 CreateRouteTableRequest extends AbstractModel{
/**
* The ID of the VPC instance to be operated on. You can obtain the parameter value from the VpcId field in the returned result of DescribeVpcs API.
*/
@SerializedName("VpcId")
@Expose
private String VpcId;
/**
* The route table name. The maximum length is 60 characters.
*/
@SerializedName("RouteTableName")
@Expose
private String RouteTableName;
/**
* Bound tags, such as [{"Key": "city", "Value": "shanghai"}].
*/
@SerializedName("Tags")
@Expose
private Tag [] Tags;
/**
* Get The ID of the VPC instance to be operated on. You can obtain the parameter value from the VpcId field in the returned result of DescribeVpcs API.
* @return VpcId The ID of the VPC instance to be operated on. You can obtain the parameter value from the VpcId field in the returned result of DescribeVpcs API.
*/
public String getVpcId() {
return this.VpcId;
}
/**
* Set The ID of the VPC instance to be operated on. You can obtain the parameter value from the VpcId field in the returned result of DescribeVpcs API.
* @param VpcId The ID of the VPC instance to be operated on. You can obtain the parameter value from the VpcId field in the returned result of DescribeVpcs API.
*/
public void setVpcId(String VpcId) {
this.VpcId = VpcId;
}
/**
* Get The route table name. The maximum length is 60 characters.
* @return RouteTableName The route table name. The maximum length is 60 characters.
*/
public String getRouteTableName() {
return this.RouteTableName;
}
/**
* Set The route table name. The maximum length is 60 characters.
* @param RouteTableName The route table name. The maximum length is 60 characters.
*/
public void setRouteTableName(String RouteTableName) {
this.RouteTableName = RouteTableName;
}
/**
* Get Bound tags, such as [{"Key": "city", "Value": "shanghai"}].
* @return Tags Bound tags, such as [{"Key": "city", "Value": "shanghai"}].
*/
public Tag [] getTags() {
return this.Tags;
}
/**
* Set Bound tags, such as [{"Key": "city", "Value": "shanghai"}].
* @param Tags Bound tags, such as [{"Key": "city", "Value": "shanghai"}].
*/
public void setTags(Tag [] Tags) {
this.Tags = Tags;
}
public CreateRouteTableRequest() {
}
/**
* 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 CreateRouteTableRequest(CreateRouteTableRequest source) {
if (source.VpcId != null) {
this.VpcId = new String(source.VpcId);
}
if (source.RouteTableName != null) {
this.RouteTableName = new String(source.RouteTableName);
}
if (source.Tags != null) {
this.Tags = new Tag[source.Tags.length];
for (int i = 0; i < source.Tags.length; i++) {
this.Tags[i] = new Tag(source.Tags[i]);
}
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "VpcId", this.VpcId);
this.setParamSimple(map, prefix + "RouteTableName", this.RouteTableName);
this.setParamArrayObj(map, prefix + "Tags.", this.Tags);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy