com.tencentcloudapi.postgres.v20170312.models.SpecInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-postgres Show documentation
Show all versions of tencentcloud-sdk-java-postgres 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.postgres.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 SpecInfo extends AbstractModel{
/**
* 地域英文编码,对应RegionSet的Region字段
*/
@SerializedName("Region")
@Expose
private String Region;
/**
* 区域英文编码,对应ZoneSet的Zone字段
*/
@SerializedName("Zone")
@Expose
private String Zone;
/**
* 规格详细信息列表
*/
@SerializedName("SpecItemInfoList")
@Expose
private SpecItemInfo [] SpecItemInfoList;
/**
* 支持KMS的地域
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("SupportKMSRegions")
@Expose
private String [] SupportKMSRegions;
/**
* Get 地域英文编码,对应RegionSet的Region字段
* @return Region 地域英文编码,对应RegionSet的Region字段
*/
public String getRegion() {
return this.Region;
}
/**
* Set 地域英文编码,对应RegionSet的Region字段
* @param Region 地域英文编码,对应RegionSet的Region字段
*/
public void setRegion(String Region) {
this.Region = Region;
}
/**
* Get 区域英文编码,对应ZoneSet的Zone字段
* @return Zone 区域英文编码,对应ZoneSet的Zone字段
*/
public String getZone() {
return this.Zone;
}
/**
* Set 区域英文编码,对应ZoneSet的Zone字段
* @param Zone 区域英文编码,对应ZoneSet的Zone字段
*/
public void setZone(String Zone) {
this.Zone = Zone;
}
/**
* Get 规格详细信息列表
* @return SpecItemInfoList 规格详细信息列表
*/
public SpecItemInfo [] getSpecItemInfoList() {
return this.SpecItemInfoList;
}
/**
* Set 规格详细信息列表
* @param SpecItemInfoList 规格详细信息列表
*/
public void setSpecItemInfoList(SpecItemInfo [] SpecItemInfoList) {
this.SpecItemInfoList = SpecItemInfoList;
}
/**
* Get 支持KMS的地域
注意:此字段可能返回 null,表示取不到有效值。
* @return SupportKMSRegions 支持KMS的地域
注意:此字段可能返回 null,表示取不到有效值。
*/
public String [] getSupportKMSRegions() {
return this.SupportKMSRegions;
}
/**
* Set 支持KMS的地域
注意:此字段可能返回 null,表示取不到有效值。
* @param SupportKMSRegions 支持KMS的地域
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setSupportKMSRegions(String [] SupportKMSRegions) {
this.SupportKMSRegions = SupportKMSRegions;
}
public SpecInfo() {
}
/**
* 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 SpecInfo(SpecInfo source) {
if (source.Region != null) {
this.Region = new String(source.Region);
}
if (source.Zone != null) {
this.Zone = new String(source.Zone);
}
if (source.SpecItemInfoList != null) {
this.SpecItemInfoList = new SpecItemInfo[source.SpecItemInfoList.length];
for (int i = 0; i < source.SpecItemInfoList.length; i++) {
this.SpecItemInfoList[i] = new SpecItemInfo(source.SpecItemInfoList[i]);
}
}
if (source.SupportKMSRegions != null) {
this.SupportKMSRegions = new String[source.SupportKMSRegions.length];
for (int i = 0; i < source.SupportKMSRegions.length; i++) {
this.SupportKMSRegions[i] = new String(source.SupportKMSRegions[i]);
}
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Region", this.Region);
this.setParamSimple(map, prefix + "Zone", this.Zone);
this.setParamArrayObj(map, prefix + "SpecItemInfoList.", this.SpecItemInfoList);
this.setParamArraySimple(map, prefix + "SupportKMSRegions.", this.SupportKMSRegions);
}
}