
com.tencentcloudapi.tke.v20180525.models.PrometheusTemplateSyncTarget 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.tke.v20180525.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class PrometheusTemplateSyncTarget extends AbstractModel{
/**
* 目标所在地域
*/
@SerializedName("Region")
@Expose
private String Region;
/**
* 目标实例
*/
@SerializedName("InstanceId")
@Expose
private String InstanceId;
/**
* 集群id,只有当采集模板的Level为cluster的时候需要
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("ClusterId")
@Expose
private String ClusterId;
/**
* 最后一次同步时间, 用于出参
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("SyncTime")
@Expose
private String SyncTime;
/**
* 当前使用的模板版本,用于出参
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("Version")
@Expose
private String Version;
/**
* 集群类型,只有当采集模板的Level为cluster的时候需要
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("ClusterType")
@Expose
private String ClusterType;
/**
* 用于出参,实例名称
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("InstanceName")
@Expose
private String InstanceName;
/**
* 用于出参,集群名称
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("ClusterName")
@Expose
private String ClusterName;
/**
* Get 目标所在地域
* @return Region 目标所在地域
*/
public String getRegion() {
return this.Region;
}
/**
* Set 目标所在地域
* @param Region 目标所在地域
*/
public void setRegion(String Region) {
this.Region = Region;
}
/**
* Get 目标实例
* @return InstanceId 目标实例
*/
public String getInstanceId() {
return this.InstanceId;
}
/**
* Set 目标实例
* @param InstanceId 目标实例
*/
public void setInstanceId(String InstanceId) {
this.InstanceId = InstanceId;
}
/**
* Get 集群id,只有当采集模板的Level为cluster的时候需要
注意:此字段可能返回 null,表示取不到有效值。
* @return ClusterId 集群id,只有当采集模板的Level为cluster的时候需要
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getClusterId() {
return this.ClusterId;
}
/**
* Set 集群id,只有当采集模板的Level为cluster的时候需要
注意:此字段可能返回 null,表示取不到有效值。
* @param ClusterId 集群id,只有当采集模板的Level为cluster的时候需要
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setClusterId(String ClusterId) {
this.ClusterId = ClusterId;
}
/**
* Get 最后一次同步时间, 用于出参
注意:此字段可能返回 null,表示取不到有效值。
* @return SyncTime 最后一次同步时间, 用于出参
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getSyncTime() {
return this.SyncTime;
}
/**
* Set 最后一次同步时间, 用于出参
注意:此字段可能返回 null,表示取不到有效值。
* @param SyncTime 最后一次同步时间, 用于出参
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setSyncTime(String SyncTime) {
this.SyncTime = SyncTime;
}
/**
* Get 当前使用的模板版本,用于出参
注意:此字段可能返回 null,表示取不到有效值。
* @return Version 当前使用的模板版本,用于出参
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getVersion() {
return this.Version;
}
/**
* Set 当前使用的模板版本,用于出参
注意:此字段可能返回 null,表示取不到有效值。
* @param Version 当前使用的模板版本,用于出参
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setVersion(String Version) {
this.Version = Version;
}
/**
* Get 集群类型,只有当采集模板的Level为cluster的时候需要
注意:此字段可能返回 null,表示取不到有效值。
* @return ClusterType 集群类型,只有当采集模板的Level为cluster的时候需要
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getClusterType() {
return this.ClusterType;
}
/**
* Set 集群类型,只有当采集模板的Level为cluster的时候需要
注意:此字段可能返回 null,表示取不到有效值。
* @param ClusterType 集群类型,只有当采集模板的Level为cluster的时候需要
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setClusterType(String ClusterType) {
this.ClusterType = ClusterType;
}
/**
* Get 用于出参,实例名称
注意:此字段可能返回 null,表示取不到有效值。
* @return InstanceName 用于出参,实例名称
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getInstanceName() {
return this.InstanceName;
}
/**
* Set 用于出参,实例名称
注意:此字段可能返回 null,表示取不到有效值。
* @param InstanceName 用于出参,实例名称
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setInstanceName(String InstanceName) {
this.InstanceName = InstanceName;
}
/**
* Get 用于出参,集群名称
注意:此字段可能返回 null,表示取不到有效值。
* @return ClusterName 用于出参,集群名称
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getClusterName() {
return this.ClusterName;
}
/**
* Set 用于出参,集群名称
注意:此字段可能返回 null,表示取不到有效值。
* @param ClusterName 用于出参,集群名称
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setClusterName(String ClusterName) {
this.ClusterName = ClusterName;
}
public PrometheusTemplateSyncTarget() {
}
/**
* 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 PrometheusTemplateSyncTarget(PrometheusTemplateSyncTarget source) {
if (source.Region != null) {
this.Region = new String(source.Region);
}
if (source.InstanceId != null) {
this.InstanceId = new String(source.InstanceId);
}
if (source.ClusterId != null) {
this.ClusterId = new String(source.ClusterId);
}
if (source.SyncTime != null) {
this.SyncTime = new String(source.SyncTime);
}
if (source.Version != null) {
this.Version = new String(source.Version);
}
if (source.ClusterType != null) {
this.ClusterType = new String(source.ClusterType);
}
if (source.InstanceName != null) {
this.InstanceName = new String(source.InstanceName);
}
if (source.ClusterName != null) {
this.ClusterName = new String(source.ClusterName);
}
}
/**
* 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 + "InstanceId", this.InstanceId);
this.setParamSimple(map, prefix + "ClusterId", this.ClusterId);
this.setParamSimple(map, prefix + "SyncTime", this.SyncTime);
this.setParamSimple(map, prefix + "Version", this.Version);
this.setParamSimple(map, prefix + "ClusterType", this.ClusterType);
this.setParamSimple(map, prefix + "InstanceName", this.InstanceName);
this.setParamSimple(map, prefix + "ClusterName", this.ClusterName);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy