com.tencentcloudapi.batch.v20170312.models.TaskTemplateView Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-batch Show documentation
Show all versions of tencentcloud-sdk-java-batch 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.batch.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 TaskTemplateView extends AbstractModel{
/**
* 任务模板ID
*/
@SerializedName("TaskTemplateId")
@Expose
private String TaskTemplateId;
/**
* 任务模板名称
*/
@SerializedName("TaskTemplateName")
@Expose
private String TaskTemplateName;
/**
* 任务模板描述
*/
@SerializedName("TaskTemplateDescription")
@Expose
private String TaskTemplateDescription;
/**
* 任务模板信息
*/
@SerializedName("TaskTemplateInfo")
@Expose
private Task TaskTemplateInfo;
/**
* 创建时间
*/
@SerializedName("CreateTime")
@Expose
private String CreateTime;
/**
* 任务模板绑定的标签列表。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("Tags")
@Expose
private Tag [] Tags;
/**
* Get 任务模板ID
* @return TaskTemplateId 任务模板ID
*/
public String getTaskTemplateId() {
return this.TaskTemplateId;
}
/**
* Set 任务模板ID
* @param TaskTemplateId 任务模板ID
*/
public void setTaskTemplateId(String TaskTemplateId) {
this.TaskTemplateId = TaskTemplateId;
}
/**
* Get 任务模板名称
* @return TaskTemplateName 任务模板名称
*/
public String getTaskTemplateName() {
return this.TaskTemplateName;
}
/**
* Set 任务模板名称
* @param TaskTemplateName 任务模板名称
*/
public void setTaskTemplateName(String TaskTemplateName) {
this.TaskTemplateName = TaskTemplateName;
}
/**
* Get 任务模板描述
* @return TaskTemplateDescription 任务模板描述
*/
public String getTaskTemplateDescription() {
return this.TaskTemplateDescription;
}
/**
* Set 任务模板描述
* @param TaskTemplateDescription 任务模板描述
*/
public void setTaskTemplateDescription(String TaskTemplateDescription) {
this.TaskTemplateDescription = TaskTemplateDescription;
}
/**
* Get 任务模板信息
* @return TaskTemplateInfo 任务模板信息
*/
public Task getTaskTemplateInfo() {
return this.TaskTemplateInfo;
}
/**
* Set 任务模板信息
* @param TaskTemplateInfo 任务模板信息
*/
public void setTaskTemplateInfo(Task TaskTemplateInfo) {
this.TaskTemplateInfo = TaskTemplateInfo;
}
/**
* Get 创建时间
* @return CreateTime 创建时间
*/
public String getCreateTime() {
return this.CreateTime;
}
/**
* Set 创建时间
* @param CreateTime 创建时间
*/
public void setCreateTime(String CreateTime) {
this.CreateTime = CreateTime;
}
/**
* Get 任务模板绑定的标签列表。
注意:此字段可能返回 null,表示取不到有效值。
* @return Tags 任务模板绑定的标签列表。
注意:此字段可能返回 null,表示取不到有效值。
*/
public Tag [] getTags() {
return this.Tags;
}
/**
* Set 任务模板绑定的标签列表。
注意:此字段可能返回 null,表示取不到有效值。
* @param Tags 任务模板绑定的标签列表。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setTags(Tag [] Tags) {
this.Tags = Tags;
}
public TaskTemplateView() {
}
/**
* 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 TaskTemplateView(TaskTemplateView source) {
if (source.TaskTemplateId != null) {
this.TaskTemplateId = new String(source.TaskTemplateId);
}
if (source.TaskTemplateName != null) {
this.TaskTemplateName = new String(source.TaskTemplateName);
}
if (source.TaskTemplateDescription != null) {
this.TaskTemplateDescription = new String(source.TaskTemplateDescription);
}
if (source.TaskTemplateInfo != null) {
this.TaskTemplateInfo = new Task(source.TaskTemplateInfo);
}
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]);
}
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "TaskTemplateId", this.TaskTemplateId);
this.setParamSimple(map, prefix + "TaskTemplateName", this.TaskTemplateName);
this.setParamSimple(map, prefix + "TaskTemplateDescription", this.TaskTemplateDescription);
this.setParamObj(map, prefix + "TaskTemplateInfo.", this.TaskTemplateInfo);
this.setParamSimple(map, prefix + "CreateTime", this.CreateTime);
this.setParamArrayObj(map, prefix + "Tags.", this.Tags);
}
}