/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Glue { namespace Model { /** *

The statement or request for a particular action to occur in a * session.

See Also:

AWS API * Reference

*/ class Statement { public: AWS_GLUE_API Statement(); AWS_GLUE_API Statement(Aws::Utils::Json::JsonView jsonValue); AWS_GLUE_API Statement& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ID of the statement.

*/ inline int GetId() const{ return m_id; } /** *

The ID of the statement.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The ID of the statement.

*/ inline void SetId(int value) { m_idHasBeenSet = true; m_id = value; } /** *

The ID of the statement.

*/ inline Statement& WithId(int value) { SetId(value); return *this;} /** *

The execution code of the statement.

*/ inline const Aws::String& GetCode() const{ return m_code; } /** *

The execution code of the statement.

*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *

The execution code of the statement.

*/ inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; } /** *

The execution code of the statement.

*/ inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *

The execution code of the statement.

*/ inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); } /** *

The execution code of the statement.

*/ inline Statement& WithCode(const Aws::String& value) { SetCode(value); return *this;} /** *

The execution code of the statement.

*/ inline Statement& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;} /** *

The execution code of the statement.

*/ inline Statement& WithCode(const char* value) { SetCode(value); return *this;} /** *

The state while request is actioned.

*/ inline const StatementState& GetState() const{ return m_state; } /** *

The state while request is actioned.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The state while request is actioned.

*/ inline void SetState(const StatementState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The state while request is actioned.

*/ inline void SetState(StatementState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The state while request is actioned.

*/ inline Statement& WithState(const StatementState& value) { SetState(value); return *this;} /** *

The state while request is actioned.

*/ inline Statement& WithState(StatementState&& value) { SetState(std::move(value)); return *this;} /** *

The output in JSON.

*/ inline const StatementOutput& GetOutput() const{ return m_output; } /** *

The output in JSON.

*/ inline bool OutputHasBeenSet() const { return m_outputHasBeenSet; } /** *

The output in JSON.

*/ inline void SetOutput(const StatementOutput& value) { m_outputHasBeenSet = true; m_output = value; } /** *

The output in JSON.

*/ inline void SetOutput(StatementOutput&& value) { m_outputHasBeenSet = true; m_output = std::move(value); } /** *

The output in JSON.

*/ inline Statement& WithOutput(const StatementOutput& value) { SetOutput(value); return *this;} /** *

The output in JSON.

*/ inline Statement& WithOutput(StatementOutput&& value) { SetOutput(std::move(value)); return *this;} /** *

The code execution progress.

*/ inline double GetProgress() const{ return m_progress; } /** *

The code execution progress.

*/ inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; } /** *

The code execution progress.

*/ inline void SetProgress(double value) { m_progressHasBeenSet = true; m_progress = value; } /** *

The code execution progress.

*/ inline Statement& WithProgress(double value) { SetProgress(value); return *this;} /** *

The unix time and date that the job definition was started.

*/ inline long long GetStartedOn() const{ return m_startedOn; } /** *

The unix time and date that the job definition was started.

*/ inline bool StartedOnHasBeenSet() const { return m_startedOnHasBeenSet; } /** *

The unix time and date that the job definition was started.

*/ inline void SetStartedOn(long long value) { m_startedOnHasBeenSet = true; m_startedOn = value; } /** *

The unix time and date that the job definition was started.

*/ inline Statement& WithStartedOn(long long value) { SetStartedOn(value); return *this;} /** *

The unix time and date that the job definition was completed.

*/ inline long long GetCompletedOn() const{ return m_completedOn; } /** *

The unix time and date that the job definition was completed.

*/ inline bool CompletedOnHasBeenSet() const { return m_completedOnHasBeenSet; } /** *

The unix time and date that the job definition was completed.

*/ inline void SetCompletedOn(long long value) { m_completedOnHasBeenSet = true; m_completedOn = value; } /** *

The unix time and date that the job definition was completed.

*/ inline Statement& WithCompletedOn(long long value) { SetCompletedOn(value); return *this;} private: int m_id; bool m_idHasBeenSet = false; Aws::String m_code; bool m_codeHasBeenSet = false; StatementState m_state; bool m_stateHasBeenSet = false; StatementOutput m_output; bool m_outputHasBeenSet = false; double m_progress; bool m_progressHasBeenSet = false; long long m_startedOn; bool m_startedOnHasBeenSet = false; long long m_completedOn; bool m_completedOnHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws