com.tencentcloudapi.cls.v20201016.models.MachineGroupInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud 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.cls.v20201016.models;
import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class MachineGroupInfo extends AbstractModel {
/**
* Machine group ID
*/
@SerializedName("GroupId")
@Expose
private String GroupId;
/**
* Machine group name
*/
@SerializedName("GroupName")
@Expose
private String GroupName;
/**
* Machine group type
*/
@SerializedName("MachineGroupType")
@Expose
private MachineGroupTypeInfo MachineGroupType;
/**
* Creation time
*/
@SerializedName("CreateTime")
@Expose
private String CreateTime;
/**
* List of tags bound to machine group
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
@SerializedName("Tags")
@Expose
private Tag [] Tags;
/**
* Whether to enable automatic update for the machine group
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
@SerializedName("AutoUpdate")
@Expose
private String AutoUpdate;
/**
* Update start time. We recommend you update LogListener during off-peak hours.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
@SerializedName("UpdateStartTime")
@Expose
private String UpdateStartTime;
/**
* Update end time. We recommend you update LogListener during off-peak hours.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
@SerializedName("UpdateEndTime")
@Expose
private String UpdateEndTime;
/**
* Whether to enable the service log to record the logs generated by the LogListener service itself. After it is enabled, the internal logset `cls_service_logging` and the `loglistener_status`, `loglistener_alarm`, and `loglistener_business` log topics will be created, which will not incur fees.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
@SerializedName("ServiceLogging")
@Expose
private Boolean ServiceLogging;
/**
* Regular cleanup time for offline machines in the machine group
Note: This field may return null, indicating that no valid values can be obtained.
*/
@SerializedName("DelayCleanupTime")
@Expose
private Long DelayCleanupTime;
/**
* Metadata information list of a machine group
*/
@SerializedName("MetaTags")
@Expose
private MetaTagInfo [] MetaTags;
/**
* Operating system type, 0: Linux, 1: Windows
*/
@SerializedName("OSType")
@Expose
private Long OSType;
/**
* Get Machine group ID
* @return GroupId Machine group ID
*/
public String getGroupId() {
return this.GroupId;
}
/**
* Set Machine group ID
* @param GroupId Machine group ID
*/
public void setGroupId(String GroupId) {
this.GroupId = GroupId;
}
/**
* Get Machine group name
* @return GroupName Machine group name
*/
public String getGroupName() {
return this.GroupName;
}
/**
* Set Machine group name
* @param GroupName Machine group name
*/
public void setGroupName(String GroupName) {
this.GroupName = GroupName;
}
/**
* Get Machine group type
* @return MachineGroupType Machine group type
*/
public MachineGroupTypeInfo getMachineGroupType() {
return this.MachineGroupType;
}
/**
* Set Machine group type
* @param MachineGroupType Machine group type
*/
public void setMachineGroupType(MachineGroupTypeInfo MachineGroupType) {
this.MachineGroupType = MachineGroupType;
}
/**
* Get Creation time
* @return CreateTime Creation time
*/
public String getCreateTime() {
return this.CreateTime;
}
/**
* Set Creation time
* @param CreateTime Creation time
*/
public void setCreateTime(String CreateTime) {
this.CreateTime = CreateTime;
}
/**
* Get List of tags bound to machine group
Note: this field may return `null`, indicating that no valid values can be obtained.
* @return Tags List of tags bound to machine group
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public Tag [] getTags() {
return this.Tags;
}
/**
* Set List of tags bound to machine group
Note: this field may return `null`, indicating that no valid values can be obtained.
* @param Tags List of tags bound to machine group
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public void setTags(Tag [] Tags) {
this.Tags = Tags;
}
/**
* Get Whether to enable automatic update for the machine group
Note: this field may return `null`, indicating that no valid values can be obtained.
* @return AutoUpdate Whether to enable automatic update for the machine group
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public String getAutoUpdate() {
return this.AutoUpdate;
}
/**
* Set Whether to enable automatic update for the machine group
Note: this field may return `null`, indicating that no valid values can be obtained.
* @param AutoUpdate Whether to enable automatic update for the machine group
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public void setAutoUpdate(String AutoUpdate) {
this.AutoUpdate = AutoUpdate;
}
/**
* Get Update start time. We recommend you update LogListener during off-peak hours.
Note: this field may return `null`, indicating that no valid values can be obtained.
* @return UpdateStartTime Update start time. We recommend you update LogListener during off-peak hours.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public String getUpdateStartTime() {
return this.UpdateStartTime;
}
/**
* Set Update start time. We recommend you update LogListener during off-peak hours.
Note: this field may return `null`, indicating that no valid values can be obtained.
* @param UpdateStartTime Update start time. We recommend you update LogListener during off-peak hours.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public void setUpdateStartTime(String UpdateStartTime) {
this.UpdateStartTime = UpdateStartTime;
}
/**
* Get Update end time. We recommend you update LogListener during off-peak hours.
Note: this field may return `null`, indicating that no valid values can be obtained.
* @return UpdateEndTime Update end time. We recommend you update LogListener during off-peak hours.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public String getUpdateEndTime() {
return this.UpdateEndTime;
}
/**
* Set Update end time. We recommend you update LogListener during off-peak hours.
Note: this field may return `null`, indicating that no valid values can be obtained.
* @param UpdateEndTime Update end time. We recommend you update LogListener during off-peak hours.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public void setUpdateEndTime(String UpdateEndTime) {
this.UpdateEndTime = UpdateEndTime;
}
/**
* Get Whether to enable the service log to record the logs generated by the LogListener service itself. After it is enabled, the internal logset `cls_service_logging` and the `loglistener_status`, `loglistener_alarm`, and `loglistener_business` log topics will be created, which will not incur fees.
Note: this field may return `null`, indicating that no valid values can be obtained.
* @return ServiceLogging Whether to enable the service log to record the logs generated by the LogListener service itself. After it is enabled, the internal logset `cls_service_logging` and the `loglistener_status`, `loglistener_alarm`, and `loglistener_business` log topics will be created, which will not incur fees.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public Boolean getServiceLogging() {
return this.ServiceLogging;
}
/**
* Set Whether to enable the service log to record the logs generated by the LogListener service itself. After it is enabled, the internal logset `cls_service_logging` and the `loglistener_status`, `loglistener_alarm`, and `loglistener_business` log topics will be created, which will not incur fees.
Note: this field may return `null`, indicating that no valid values can be obtained.
* @param ServiceLogging Whether to enable the service log to record the logs generated by the LogListener service itself. After it is enabled, the internal logset `cls_service_logging` and the `loglistener_status`, `loglistener_alarm`, and `loglistener_business` log topics will be created, which will not incur fees.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public void setServiceLogging(Boolean ServiceLogging) {
this.ServiceLogging = ServiceLogging;
}
/**
* Get Regular cleanup time for offline machines in the machine group
Note: This field may return null, indicating that no valid values can be obtained.
* @return DelayCleanupTime Regular cleanup time for offline machines in the machine group
Note: This field may return null, indicating that no valid values can be obtained.
*/
public Long getDelayCleanupTime() {
return this.DelayCleanupTime;
}
/**
* Set Regular cleanup time for offline machines in the machine group
Note: This field may return null, indicating that no valid values can be obtained.
* @param DelayCleanupTime Regular cleanup time for offline machines in the machine group
Note: This field may return null, indicating that no valid values can be obtained.
*/
public void setDelayCleanupTime(Long DelayCleanupTime) {
this.DelayCleanupTime = DelayCleanupTime;
}
/**
* Get Metadata information list of a machine group
* @return MetaTags Metadata information list of a machine group
*/
public MetaTagInfo [] getMetaTags() {
return this.MetaTags;
}
/**
* Set Metadata information list of a machine group
* @param MetaTags Metadata information list of a machine group
*/
public void setMetaTags(MetaTagInfo [] MetaTags) {
this.MetaTags = MetaTags;
}
/**
* Get Operating system type, 0: Linux, 1: Windows
* @return OSType Operating system type, 0: Linux, 1: Windows
*/
public Long getOSType() {
return this.OSType;
}
/**
* Set Operating system type, 0: Linux, 1: Windows
* @param OSType Operating system type, 0: Linux, 1: Windows
*/
public void setOSType(Long OSType) {
this.OSType = OSType;
}
public MachineGroupInfo() {
}
/**
* 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 MachineGroupInfo(MachineGroupInfo source) {
if (source.GroupId != null) {
this.GroupId = new String(source.GroupId);
}
if (source.GroupName != null) {
this.GroupName = new String(source.GroupName);
}
if (source.MachineGroupType != null) {
this.MachineGroupType = new MachineGroupTypeInfo(source.MachineGroupType);
}
if (source.CreateTime != null) {
this.CreateTime = new String(source.CreateTime);
}
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]);
}
}
if (source.AutoUpdate != null) {
this.AutoUpdate = new String(source.AutoUpdate);
}
if (source.UpdateStartTime != null) {
this.UpdateStartTime = new String(source.UpdateStartTime);
}
if (source.UpdateEndTime != null) {
this.UpdateEndTime = new String(source.UpdateEndTime);
}
if (source.ServiceLogging != null) {
this.ServiceLogging = new Boolean(source.ServiceLogging);
}
if (source.DelayCleanupTime != null) {
this.DelayCleanupTime = new Long(source.DelayCleanupTime);
}
if (source.MetaTags != null) {
this.MetaTags = new MetaTagInfo[source.MetaTags.length];
for (int i = 0; i < source.MetaTags.length; i++) {
this.MetaTags[i] = new MetaTagInfo(source.MetaTags[i]);
}
}
if (source.OSType != null) {
this.OSType = new Long(source.OSType);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "GroupId", this.GroupId);
this.setParamSimple(map, prefix + "GroupName", this.GroupName);
this.setParamObj(map, prefix + "MachineGroupType.", this.MachineGroupType);
this.setParamSimple(map, prefix + "CreateTime", this.CreateTime);
this.setParamArrayObj(map, prefix + "Tags.", this.Tags);
this.setParamSimple(map, prefix + "AutoUpdate", this.AutoUpdate);
this.setParamSimple(map, prefix + "UpdateStartTime", this.UpdateStartTime);
this.setParamSimple(map, prefix + "UpdateEndTime", this.UpdateEndTime);
this.setParamSimple(map, prefix + "ServiceLogging", this.ServiceLogging);
this.setParamSimple(map, prefix + "DelayCleanupTime", this.DelayCleanupTime);
this.setParamArrayObj(map, prefix + "MetaTags.", this.MetaTags);
this.setParamSimple(map, prefix + "OSType", this.OSType);
}
}