
com.tencentcloudapi.monitor.v20180724.models.CommonNamespaceNew 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.monitor.v20180724.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class CommonNamespaceNew extends AbstractModel{
/**
* 命名空间标示
*/
@SerializedName("Id")
@Expose
private String Id;
/**
* 命名空间名称
*/
@SerializedName("Name")
@Expose
private String Name;
/**
* 监控类型
*/
@SerializedName("MonitorType")
@Expose
private String MonitorType;
/**
* 维度信息
*/
@SerializedName("Dimensions")
@Expose
private DimensionNew [] Dimensions;
/**
* Get 命名空间标示
* @return Id 命名空间标示
*/
public String getId() {
return this.Id;
}
/**
* Set 命名空间标示
* @param Id 命名空间标示
*/
public void setId(String Id) {
this.Id = Id;
}
/**
* Get 命名空间名称
* @return Name 命名空间名称
*/
public String getName() {
return this.Name;
}
/**
* Set 命名空间名称
* @param Name 命名空间名称
*/
public void setName(String Name) {
this.Name = Name;
}
/**
* Get 监控类型
* @return MonitorType 监控类型
*/
public String getMonitorType() {
return this.MonitorType;
}
/**
* Set 监控类型
* @param MonitorType 监控类型
*/
public void setMonitorType(String MonitorType) {
this.MonitorType = MonitorType;
}
/**
* Get 维度信息
* @return Dimensions 维度信息
*/
public DimensionNew [] getDimensions() {
return this.Dimensions;
}
/**
* Set 维度信息
* @param Dimensions 维度信息
*/
public void setDimensions(DimensionNew [] Dimensions) {
this.Dimensions = Dimensions;
}
public CommonNamespaceNew() {
}
/**
* 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 CommonNamespaceNew(CommonNamespaceNew source) {
if (source.Id != null) {
this.Id = new String(source.Id);
}
if (source.Name != null) {
this.Name = new String(source.Name);
}
if (source.MonitorType != null) {
this.MonitorType = new String(source.MonitorType);
}
if (source.Dimensions != null) {
this.Dimensions = new DimensionNew[source.Dimensions.length];
for (int i = 0; i < source.Dimensions.length; i++) {
this.Dimensions[i] = new DimensionNew(source.Dimensions[i]);
}
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Id", this.Id);
this.setParamSimple(map, prefix + "Name", this.Name);
this.setParamSimple(map, prefix + "MonitorType", this.MonitorType);
this.setParamArrayObj(map, prefix + "Dimensions.", this.Dimensions);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy