com.tencentcloudapi.ams.v20200608.models.TaskResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-ams Show documentation
Show all versions of tencentcloud-sdk-java-ams Show documentation
Tencent Cloud Open API SDK for Java
The newest version!
/*
* 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.ams.v20200608.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 TaskResult extends AbstractModel {
/**
* 请求时传入的DataId
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("DataId")
@Expose
private String DataId;
/**
* TaskId,任务ID
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("TaskId")
@Expose
private String TaskId;
/**
* 错误码。如果code为OK,则表示创建成功,其他则参考公共错误码
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("Code")
@Expose
private String Code;
/**
* 如果错误,该字段表示错误详情
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("Message")
@Expose
private String Message;
/**
* Get 请求时传入的DataId
注意:此字段可能返回 null,表示取不到有效值。
* @return DataId 请求时传入的DataId
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getDataId() {
return this.DataId;
}
/**
* Set 请求时传入的DataId
注意:此字段可能返回 null,表示取不到有效值。
* @param DataId 请求时传入的DataId
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setDataId(String DataId) {
this.DataId = DataId;
}
/**
* Get TaskId,任务ID
注意:此字段可能返回 null,表示取不到有效值。
* @return TaskId TaskId,任务ID
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getTaskId() {
return this.TaskId;
}
/**
* Set TaskId,任务ID
注意:此字段可能返回 null,表示取不到有效值。
* @param TaskId TaskId,任务ID
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setTaskId(String TaskId) {
this.TaskId = TaskId;
}
/**
* Get 错误码。如果code为OK,则表示创建成功,其他则参考公共错误码
注意:此字段可能返回 null,表示取不到有效值。
* @return Code 错误码。如果code为OK,则表示创建成功,其他则参考公共错误码
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getCode() {
return this.Code;
}
/**
* Set 错误码。如果code为OK,则表示创建成功,其他则参考公共错误码
注意:此字段可能返回 null,表示取不到有效值。
* @param Code 错误码。如果code为OK,则表示创建成功,其他则参考公共错误码
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setCode(String Code) {
this.Code = Code;
}
/**
* Get 如果错误,该字段表示错误详情
注意:此字段可能返回 null,表示取不到有效值。
* @return Message 如果错误,该字段表示错误详情
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getMessage() {
return this.Message;
}
/**
* Set 如果错误,该字段表示错误详情
注意:此字段可能返回 null,表示取不到有效值。
* @param Message 如果错误,该字段表示错误详情
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setMessage(String Message) {
this.Message = Message;
}
public TaskResult() {
}
/**
* 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 TaskResult(TaskResult source) {
if (source.DataId != null) {
this.DataId = new String(source.DataId);
}
if (source.TaskId != null) {
this.TaskId = new String(source.TaskId);
}
if (source.Code != null) {
this.Code = new String(source.Code);
}
if (source.Message != null) {
this.Message = new String(source.Message);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "DataId", this.DataId);
this.setParamSimple(map, prefix + "TaskId", this.TaskId);
this.setParamSimple(map, prefix + "Code", this.Code);
this.setParamSimple(map, prefix + "Message", this.Message);
}
}