text: ﻿/**
   * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
   * SPDX-License-Identifier: Apache-2.0.
   */
  
  #pragma once
  #include <aws/glue/Glue_EXPORTS.h>
  #include <aws/core/utils/memory/stl/AWSString.h>
  #include <aws/glue/model/StatementState.h>
  #include <aws/glue/model/StatementOutput.h>
  #include <utility>
  
  namespace Aws
  {
  namespace Utils
  {
  namespace Json
  {
    class JsonValue;
    class JsonView;
  } // namespace Json
  } // namespace Utils
  namespace Glue
  {
  namespace Model
  {
  
    /**
     * <p>The statement or request for a particular action to occur in a
     * session.</p><p><h3>See Also:</h3>   <a
     * href="http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/Statement">AWS API
     * Reference</a></p>
     */
    class AWS_GLUE_API Statement
    {
    public:
      Statement();
      Statement(Aws::Utils::Json::JsonView jsonValue);
      Statement& operator=(Aws::Utils::Json::JsonView jsonValue);
      Aws::Utils::Json::JsonValue Jsonize() const;
  
  
      /**
       * <p>The ID of the statement.</p>
       */
      inline int GetId() const{ return m_id; }
  
      /**
       * <p>The ID of the statement.</p>
       */
      inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
  
      /**
       * <p>The ID of the statement.</p>
       */
      inline void SetId(int value) { m_idHasBeenSet = true; m_id = value; }
  
      /**
       * <p>The ID of the statement.</p>
       */
      inline Statement& WithId(int value) { SetId(value); return *this;}
  
  
      /**
       * <p>The execution code of the statement.</p>
       */
      inline const Aws::String& GetCode() const{ return m_code; }
  
      /**
       * <p>The execution code of the statement.</p>
       */
      inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
  
      /**
       * <p>The execution code of the statement.</p>
       */
      inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
  
      /**
       * <p>The execution code of the statement.</p>
       */
      inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
  
      /**
       * <p>The execution code of the statement.</p>
       */
      inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
  
      /**
       * <p>The execution code of the statement.</p>
       */
      inline Statement& WithCode(const Aws::String& value) { SetCode(value); return *this;}
  
      /**
       * <p>The execution code of the statement.</p>
       */
      inline Statement& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
  
      /**
       * <p>The execution code of the statement.</p>
       */
      inline Statement& WithCode(const char* value) { SetCode(value); return *this;}
  
  
      /**
       * <p>The state while request is actioned.</p>
       */
      inline const StatementState& GetState() const{ return m_state; }
  
      /**
       * <p>The state while request is actioned.</p>
       */
      inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
  
      /**
       * <p>The state while request is actioned.</p>
       */
      inline void SetState(const StatementState& value) { m_stateHasBeenSet = true; m_state = value; }
  
      /**
       * <p>The state while request is actioned.</p>
       */
      inline void SetState(StatementState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
  
      /**
       * <p>The state while request is actioned.</p>
       */
      inline Statement& WithState(const StatementState& value) { SetState(value); return *this;}
  
      /**
       * <p>The state while request is actioned.</p>
       */
      inline Statement& WithState(StatementState&& value) { SetState(std::move(value)); return *this;}
  
  
      /**
       * <p>The output in JSON.</p>
       */
      inline const StatementOutput& GetOutput() const{ return m_output; }
  
      /**
       * <p>The output in JSON.</p>
       */
      inline bool OutputHasBeenSet() const { return m_outputHasBeenSet; }
  
      /**
       * <p>The output in JSON.</p>
       */
      inline void SetOutput(const StatementOutput& value) { m_outputHasBeenSet = true; m_output = value; }
  
      /**
       * <p>The output in JSON.</p>
       */
      inline void SetOutput(StatementOutput&& value) { m_outputHasBeenSet = true; m_output = std::move(value); }
  
      /**
       * <p>The output in JSON.</p>
       */
      inline Statement& WithOutput(const StatementOutput& value) { SetOutput(value); return *this;}
  
      /**
       * <p>The output in JSON.</p>
       */
      inline Statement& WithOutput(StatementOutput&& value) { SetOutput(std::move(value)); return *this;}
  
  
      /**
       * <p>The code execution progress.</p>
       */
      inline double GetProgress() const{ return m_progress; }
  
      /**
       * <p>The code execution progress.</p>
       */
      inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
  
      /**
       * <p>The code execution progress.</p>
       */
      inline void SetProgress(double value) { m_progressHasBeenSet = true; m_progress = value; }
  
      /**
       * <p>The code execution progress.</p>
       */
      inline Statement& WithProgress(double value) { SetProgress(value); return *this;}
  
  
      /**
       * <p>The unix time and date that the job definition was started.</p>
       */
      inline long long GetStartedOn() const{ return m_startedOn; }
  
      /**
       * <p>The unix time and date that the job definition was started.</p>
       */
      inline bool StartedOnHasBeenSet() const { return m_startedOnHasBeenSet; }
  
      /**
       * <p>The unix time and date that the job definition was started.</p>
       */
      inline void SetStartedOn(long long value) { m_startedOnHasBeenSet = true; m_startedOn = value; }
  
      /**
       * <p>The unix time and date that the job definition was started.</p>
       */
      inline Statement& WithStartedOn(long long value) { SetStartedOn(value); return *this;}
  
  
      /**
       * <p>The unix time and date that the job definition was completed.</p>
       */
      inline long long GetCompletedOn() const{ return m_completedOn; }
  
      /**
       * <p>The unix time and date that the job definition was completed.</p>
       */
      inline bool CompletedOnHasBeenSet() const { return m_completedOnHasBeenSet; }
  
      /**
       * <p>The unix time and date that the job definition was completed.</p>
       */
      inline void SetCompletedOn(long long value) { m_completedOnHasBeenSet = true; m_completedOn = value; }
  
      /**
       * <p>The unix time and date that the job definition was completed.</p>
       */
      inline Statement& WithCompletedOn(long long value) { SetCompletedOn(value); return *this;}
  
    private:
  
      int m_id;
      bool m_idHasBeenSet;
  
      Aws::String m_code;
      bool m_codeHasBeenSet;
  
      StatementState m_state;
      bool m_stateHasBeenSet;
  
      StatementOutput m_output;
      bool m_outputHasBeenSet;
  
      double m_progress;
      bool m_progressHasBeenSet;
  
      long long m_startedOn;
      bool m_startedOnHasBeenSet;
  
      long long m_completedOn;
      bool m_completedOnHasBeenSet;
    };
  
  } // namespace Model
  } // namespace Glue
  } // namespace Aws
  