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/core/utils/memory/stl/AWSString.h>
  #include <aws/core/utils/DateTime.h>
  #include <aws/dataexchange/model/ResponseDetails.h>
  #include <aws/core/utils/memory/stl/AWSVector.h>
  #include <aws/dataexchange/model/State.h>
  #include <aws/dataexchange/model/Type.h>
  #include <aws/dataexchange/model/JobError.h>
  #include <utility>
  
  namespace Aws
  {
  template<typename RESULT_TYPE>
  class AmazonWebServiceResult;
  
  namespace Utils
  {
  namespace Json
  {
    class JsonValue;
  } // namespace Json
  } // namespace Utils
  namespace DataExchange
  {
  namespace Model
  {
    class AWS_DATAEXCHANGE_API CreateJobResult
    {
    public:
      CreateJobResult();
      CreateJobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
      CreateJobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
  
  
      /**
       * <p>The ARN for the job.</p>
       */
      inline const Aws::String& GetArn() const{ return m_arn; }
  
      /**
       * <p>The ARN for the job.</p>
       */
      inline void SetArn(const Aws::String& value) { m_arn = value; }
  
      /**
       * <p>The ARN for the job.</p>
       */
      inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
  
      /**
       * <p>The ARN for the job.</p>
       */
      inline void SetArn(const char* value) { m_arn.assign(value); }
  
      /**
       * <p>The ARN for the job.</p>
       */
      inline CreateJobResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
  
      /**
       * <p>The ARN for the job.</p>
       */
      inline CreateJobResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
  
      /**
       * <p>The ARN for the job.</p>
       */
      inline CreateJobResult& WithArn(const char* value) { SetArn(value); return *this;}
  
  
      /**
       * <p>The date and time that the job was created, in ISO 8601 format.</p>
       */
      inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
  
      /**
       * <p>The date and time that the job was created, in ISO 8601 format.</p>
       */
      inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; }
  
      /**
       * <p>The date and time that the job was created, in ISO 8601 format.</p>
       */
      inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); }
  
      /**
       * <p>The date and time that the job was created, in ISO 8601 format.</p>
       */
      inline CreateJobResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
  
      /**
       * <p>The date and time that the job was created, in ISO 8601 format.</p>
       */
      inline CreateJobResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
  
  
      /**
       * <p>Details about the job.</p>
       */
      inline const ResponseDetails& GetDetails() const{ return m_details; }
  
      /**
       * <p>Details about the job.</p>
       */
      inline void SetDetails(const ResponseDetails& value) { m_details = value; }
  
      /**
       * <p>Details about the job.</p>
       */
      inline void SetDetails(ResponseDetails&& value) { m_details = std::move(value); }
  
      /**
       * <p>Details about the job.</p>
       */
      inline CreateJobResult& WithDetails(const ResponseDetails& value) { SetDetails(value); return *this;}
  
      /**
       * <p>Details about the job.</p>
       */
      inline CreateJobResult& WithDetails(ResponseDetails&& value) { SetDetails(std::move(value)); return *this;}
  
  
      /**
       * <p>The errors associated with jobs.</p>
       */
      inline const Aws::Vector<JobError>& GetErrors() const{ return m_errors; }
  
      /**
       * <p>The errors associated with jobs.</p>
       */
      inline void SetErrors(const Aws::Vector<JobError>& value) { m_errors = value; }
  
      /**
       * <p>The errors associated with jobs.</p>
       */
      inline void SetErrors(Aws::Vector<JobError>&& value) { m_errors = std::move(value); }
  
      /**
       * <p>The errors associated with jobs.</p>
       */
      inline CreateJobResult& WithErrors(const Aws::Vector<JobError>& value) { SetErrors(value); return *this;}
  
      /**
       * <p>The errors associated with jobs.</p>
       */
      inline CreateJobResult& WithErrors(Aws::Vector<JobError>&& value) { SetErrors(std::move(value)); return *this;}
  
      /**
       * <p>The errors associated with jobs.</p>
       */
      inline CreateJobResult& AddErrors(const JobError& value) { m_errors.push_back(value); return *this; }
  
      /**
       * <p>The errors associated with jobs.</p>
       */
      inline CreateJobResult& AddErrors(JobError&& value) { m_errors.push_back(std::move(value)); return *this; }
  
  
      /**
       * <p>The unique identifier for the job.</p>
       */
      inline const Aws::String& GetId() const{ return m_id; }
  
      /**
       * <p>The unique identifier for the job.</p>
       */
      inline void SetId(const Aws::String& value) { m_id = value; }
  
      /**
       * <p>The unique identifier for the job.</p>
       */
      inline void SetId(Aws::String&& value) { m_id = std::move(value); }
  
      /**
       * <p>The unique identifier for the job.</p>
       */
      inline void SetId(const char* value) { m_id.assign(value); }
  
      /**
       * <p>The unique identifier for the job.</p>
       */
      inline CreateJobResult& WithId(const Aws::String& value) { SetId(value); return *this;}
  
      /**
       * <p>The unique identifier for the job.</p>
       */
      inline CreateJobResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
  
      /**
       * <p>The unique identifier for the job.</p>
       */
      inline CreateJobResult& WithId(const char* value) { SetId(value); return *this;}
  
  
      /**
       * <p>The state of the job.</p>
       */
      inline const State& GetState() const{ return m_state; }
  
      /**
       * <p>The state of the job.</p>
       */
      inline void SetState(const State& value) { m_state = value; }
  
      /**
       * <p>The state of the job.</p>
       */
      inline void SetState(State&& value) { m_state = std::move(value); }
  
      /**
       * <p>The state of the job.</p>
       */
      inline CreateJobResult& WithState(const State& value) { SetState(value); return *this;}
  
      /**
       * <p>The state of the job.</p>
       */
      inline CreateJobResult& WithState(State&& value) { SetState(std::move(value)); return *this;}
  
  
      /**
       * <p>The job type.</p>
       */
      inline const Type& GetType() const{ return m_type; }
  
      /**
       * <p>The job type.</p>
       */
      inline void SetType(const Type& value) { m_type = value; }
  
      /**
       * <p>The job type.</p>
       */
      inline void SetType(Type&& value) { m_type = std::move(value); }
  
      /**
       * <p>The job type.</p>
       */
      inline CreateJobResult& WithType(const Type& value) { SetType(value); return *this;}
  
      /**
       * <p>The job type.</p>
       */
      inline CreateJobResult& WithType(Type&& value) { SetType(std::move(value)); return *this;}
  
  
      /**
       * <p>The date and time that the job was last updated, in ISO 8601 format.</p>
       */
      inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
  
      /**
       * <p>The date and time that the job was last updated, in ISO 8601 format.</p>
       */
      inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAt = value; }
  
      /**
       * <p>The date and time that the job was last updated, in ISO 8601 format.</p>
       */
      inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAt = std::move(value); }
  
      /**
       * <p>The date and time that the job was last updated, in ISO 8601 format.</p>
       */
      inline CreateJobResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
  
      /**
       * <p>The date and time that the job was last updated, in ISO 8601 format.</p>
       */
      inline CreateJobResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
  
    private:
  
      Aws::String m_arn;
  
      Aws::Utils::DateTime m_createdAt;
  
      ResponseDetails m_details;
  
      Aws::Vector<JobError> m_errors;
  
      Aws::String m_id;
  
      State m_state;
  
      Type m_type;
  
      Aws::Utils::DateTime m_updatedAt;
    };
  
  } // namespace Model
  } // namespace DataExchange
  } // namespace Aws
  