text: /*
   * Copyright (c) 2017-2019 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.
   */
  
  #ifndef TENCENTCLOUD_BM_V20180423_MODEL_FAILEDTASKINFO_H_
  #define TENCENTCLOUD_BM_V20180423_MODEL_FAILEDTASKINFO_H_
  
  #include <string>
  #include <vector>
  #include <map>
  #include <tencentcloud/core/utils/rapidjson/document.h>
  #include <tencentcloud/core/utils/rapidjson/writer.h>
  #include <tencentcloud/core/utils/rapidjson/stringbuffer.h>
  #include <tencentcloud/core/AbstractModel.h>
  
  
  namespace TencentCloud
  {
      namespace Bm
      {
          namespace V20180423
          {
              namespace Model
              {
                  /**
                  * 运行失败的自定义脚本信息
                  */
                  class FailedTaskInfo : public AbstractModel
                  {
                  public:
                      FailedTaskInfo();
                      ~FailedTaskInfo() = default;
                      void ToJsonObject(rapidjson::Value &value, rapidjson::Document::AllocatorType& allocator) const;
                      CoreInternalOutcome Deserialize(const rapidjson::Value &value);
  
  
                      /**
                       * 获取运行脚本的设备ID
                       * @return InstanceId 运行脚本的设备ID
                       */
                      std::string GetInstanceId() const;
  
                      /**
                       * 设置运行脚本的设备ID
                       * @param InstanceId 运行脚本的设备ID
                       */
                      void SetInstanceId(const std::string& _instanceId);
  
                      /**
                       * 判断参数 InstanceId 是否已赋值
                       * @return InstanceId 是否已赋值
                       */
                      bool InstanceIdHasBeenSet() const;
  
                      /**
                       * 获取失败原因
                       * @return ErrorMsg 失败原因
                       */
                      std::string GetErrorMsg() const;
  
                      /**
                       * 设置失败原因
                       * @param ErrorMsg 失败原因
                       */
                      void SetErrorMsg(const std::string& _errorMsg);
  
                      /**
                       * 判断参数 ErrorMsg 是否已赋值
                       * @return ErrorMsg 是否已赋值
                       */
                      bool ErrorMsgHasBeenSet() const;
  
                  private:
  
                      /**
                       * 运行脚本的设备ID
                       */
                      std::string m_instanceId;
                      bool m_instanceIdHasBeenSet;
  
                      /**
                       * 失败原因
                       */
                      std::string m_errorMsg;
                      bool m_errorMsgHasBeenSet;
  
                  };
              }
          }
      }
  }
  
  #endif // !TENCENTCLOUD_BM_V20180423_MODEL_FAILEDTASKINFO_H_
  