text: ﻿/**
   * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
   * SPDX-License-Identifier: Apache-2.0.
   */
  
  #pragma once
  #include <aws/dataexchange/DataExchange_EXPORTS.h>
  #include <aws/dataexchange/model/Code.h>
  #include <aws/dataexchange/model/Details.h>
  #include <aws/dataexchange/model/JobErrorLimitName.h>
  #include <aws/core/utils/memory/stl/AWSString.h>
  #include <aws/dataexchange/model/JobErrorResourceTypes.h>
  #include <utility>
  
  namespace Aws
  {
  namespace Utils
  {
  namespace Json
  {
    class JsonValue;
    class JsonView;
  } // namespace Json
  } // namespace Utils
  namespace DataExchange
  {
  namespace Model
  {
  
    /**
     * An error that occurred with the job request.<p><h3>See Also:</h3>   <a
     * href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/JobError">AWS
     * API Reference</a></p>
     */
    class AWS_DATAEXCHANGE_API JobError
    {
    public:
      JobError();
      JobError(Aws::Utils::Json::JsonView jsonValue);
      JobError& operator=(Aws::Utils::Json::JsonView jsonValue);
      Aws::Utils::Json::JsonValue Jsonize() const;
  
  
      /**
       * The code for the job error.
       */
      inline const Code& GetCode() const{ return m_code; }
  
      /**
       * The code for the job error.
       */
      inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
  
      /**
       * The code for the job error.
       */
      inline void SetCode(const Code& value) { m_codeHasBeenSet = true; m_code = value; }
  
      /**
       * The code for the job error.
       */
      inline void SetCode(Code&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
  
      /**
       * The code for the job error.
       */
      inline JobError& WithCode(const Code& value) { SetCode(value); return *this;}
  
      /**
       * The code for the job error.
       */
      inline JobError& WithCode(Code&& value) { SetCode(std::move(value)); return *this;}
  
  
      /**
       * <p>The details about the job error.</p>
       */
      inline const Details& GetDetails() const{ return m_details; }
  
      /**
       * <p>The details about the job error.</p>
       */
      inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
  
      /**
       * <p>The details about the job error.</p>
       */
      inline void SetDetails(const Details& value) { m_detailsHasBeenSet = true; m_details = value; }
  
      /**
       * <p>The details about the job error.</p>
       */
      inline void SetDetails(Details&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
  
      /**
       * <p>The details about the job error.</p>
       */
      inline JobError& WithDetails(const Details& value) { SetDetails(value); return *this;}
  
      /**
       * <p>The details about the job error.</p>
       */
      inline JobError& WithDetails(Details&& value) { SetDetails(std::move(value)); return *this;}
  
  
      /**
       * <p>The name of the limit that was reached.</p>
       */
      inline const JobErrorLimitName& GetLimitName() const{ return m_limitName; }
  
      /**
       * <p>The name of the limit that was reached.</p>
       */
      inline bool LimitNameHasBeenSet() const { return m_limitNameHasBeenSet; }
  
      /**
       * <p>The name of the limit that was reached.</p>
       */
      inline void SetLimitName(const JobErrorLimitName& value) { m_limitNameHasBeenSet = true; m_limitName = value; }
  
      /**
       * <p>The name of the limit that was reached.</p>
       */
      inline void SetLimitName(JobErrorLimitName&& value) { m_limitNameHasBeenSet = true; m_limitName = std::move(value); }
  
      /**
       * <p>The name of the limit that was reached.</p>
       */
      inline JobError& WithLimitName(const JobErrorLimitName& value) { SetLimitName(value); return *this;}
  
      /**
       * <p>The name of the limit that was reached.</p>
       */
      inline JobError& WithLimitName(JobErrorLimitName&& value) { SetLimitName(std::move(value)); return *this;}
  
  
      /**
       * The value of the exceeded limit.
       */
      inline double GetLimitValue() const{ return m_limitValue; }
  
      /**
       * The value of the exceeded limit.
       */
      inline bool LimitValueHasBeenSet() const { return m_limitValueHasBeenSet; }
  
      /**
       * The value of the exceeded limit.
       */
      inline void SetLimitValue(double value) { m_limitValueHasBeenSet = true; m_limitValue = value; }
  
      /**
       * The value of the exceeded limit.
       */
      inline JobError& WithLimitValue(double value) { SetLimitValue(value); return *this;}
  
  
      /**
       * The message related to the job error.
       */
      inline const Aws::String& GetMessage() const{ return m_message; }
  
      /**
       * The message related to the job error.
       */
      inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
  
      /**
       * The message related to the job error.
       */
      inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
  
      /**
       * The message related to the job error.
       */
      inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
  
      /**
       * The message related to the job error.
       */
      inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
  
      /**
       * The message related to the job error.
       */
      inline JobError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
  
      /**
       * The message related to the job error.
       */
      inline JobError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
  
      /**
       * The message related to the job error.
       */
      inline JobError& WithMessage(const char* value) { SetMessage(value); return *this;}
  
  
      /**
       * The unique identifier for the resource related to the error.
       */
      inline const Aws::String& GetResourceId() const{ return m_resourceId; }
  
      /**
       * The unique identifier for the resource related to the error.
       */
      inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
  
      /**
       * The unique identifier for the resource related to the error.
       */
      inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
  
      /**
       * The unique identifier for the resource related to the error.
       */
      inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
  
      /**
       * The unique identifier for the resource related to the error.
       */
      inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
  
      /**
       * The unique identifier for the resource related to the error.
       */
      inline JobError& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
  
      /**
       * The unique identifier for the resource related to the error.
       */
      inline JobError& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
  
      /**
       * The unique identifier for the resource related to the error.
       */
      inline JobError& WithResourceId(const char* value) { SetResourceId(value); return *this;}
  
  
      /**
       * The type of resource related to the error.
       */
      inline const JobErrorResourceTypes& GetResourceType() const{ return m_resourceType; }
  
      /**
       * The type of resource related to the error.
       */
      inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
  
      /**
       * The type of resource related to the error.
       */
      inline void SetResourceType(const JobErrorResourceTypes& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
  
      /**
       * The type of resource related to the error.
       */
      inline void SetResourceType(JobErrorResourceTypes&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
  
      /**
       * The type of resource related to the error.
       */
      inline JobError& WithResourceType(const JobErrorResourceTypes& value) { SetResourceType(value); return *this;}
  
      /**
       * The type of resource related to the error.
       */
      inline JobError& WithResourceType(JobErrorResourceTypes&& value) { SetResourceType(std::move(value)); return *this;}
  
    private:
  
      Code m_code;
      bool m_codeHasBeenSet;
  
      Details m_details;
      bool m_detailsHasBeenSet;
  
      JobErrorLimitName m_limitName;
      bool m_limitNameHasBeenSet;
  
      double m_limitValue;
      bool m_limitValueHasBeenSet;
  
      Aws::String m_message;
      bool m_messageHasBeenSet;
  
      Aws::String m_resourceId;
      bool m_resourceIdHasBeenSet;
  
      JobErrorResourceTypes m_resourceType;
      bool m_resourceTypeHasBeenSet;
    };
  
  } // namespace Model
  } // namespace DataExchange
  } // namespace Aws
  