/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace EMR { namespace Model { /** */ class ListNotebookExecutionsRequest : public EMRRequest { public: AWS_EMR_API ListNotebookExecutionsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ListNotebookExecutions"; } AWS_EMR_API Aws::String SerializePayload() const override; AWS_EMR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The unique ID of the editor associated with the notebook execution.

*/ inline const Aws::String& GetEditorId() const{ return m_editorId; } /** *

The unique ID of the editor associated with the notebook execution.

*/ inline bool EditorIdHasBeenSet() const { return m_editorIdHasBeenSet; } /** *

The unique ID of the editor associated with the notebook execution.

*/ inline void SetEditorId(const Aws::String& value) { m_editorIdHasBeenSet = true; m_editorId = value; } /** *

The unique ID of the editor associated with the notebook execution.

*/ inline void SetEditorId(Aws::String&& value) { m_editorIdHasBeenSet = true; m_editorId = std::move(value); } /** *

The unique ID of the editor associated with the notebook execution.

*/ inline void SetEditorId(const char* value) { m_editorIdHasBeenSet = true; m_editorId.assign(value); } /** *

The unique ID of the editor associated with the notebook execution.

*/ inline ListNotebookExecutionsRequest& WithEditorId(const Aws::String& value) { SetEditorId(value); return *this;} /** *

The unique ID of the editor associated with the notebook execution.

*/ inline ListNotebookExecutionsRequest& WithEditorId(Aws::String&& value) { SetEditorId(std::move(value)); return *this;} /** *

The unique ID of the editor associated with the notebook execution.

*/ inline ListNotebookExecutionsRequest& WithEditorId(const char* value) { SetEditorId(value); return *this;} /** *

The status filter for listing notebook executions.

  • * START_PENDING indicates that the cluster has received the execution * request but execution has not begun.

  • STARTING * indicates that the execution is starting on the cluster.

  • * RUNNING indicates that the execution is being processed by the * cluster.

  • FINISHING indicates that execution * processing is in the final stages.

  • FINISHED * indicates that the execution has completed without error.

  • * FAILING indicates that the execution is failing and will not finish * successfully.

  • FAILED indicates that the * execution failed.

  • STOP_PENDING indicates that * the cluster has received a StopNotebookExecution request and the * stop is pending.

  • STOPPING indicates that the * cluster is in the process of stopping the execution as a result of a * StopNotebookExecution request.

  • * STOPPED indicates that the execution stopped because of a * StopNotebookExecution request.

*/ inline const NotebookExecutionStatus& GetStatus() const{ return m_status; } /** *

The status filter for listing notebook executions.

  • * START_PENDING indicates that the cluster has received the execution * request but execution has not begun.

  • STARTING * indicates that the execution is starting on the cluster.

  • * RUNNING indicates that the execution is being processed by the * cluster.

  • FINISHING indicates that execution * processing is in the final stages.

  • FINISHED * indicates that the execution has completed without error.

  • * FAILING indicates that the execution is failing and will not finish * successfully.

  • FAILED indicates that the * execution failed.

  • STOP_PENDING indicates that * the cluster has received a StopNotebookExecution request and the * stop is pending.

  • STOPPING indicates that the * cluster is in the process of stopping the execution as a result of a * StopNotebookExecution request.

  • * STOPPED indicates that the execution stopped because of a * StopNotebookExecution request.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status filter for listing notebook executions.

  • * START_PENDING indicates that the cluster has received the execution * request but execution has not begun.

  • STARTING * indicates that the execution is starting on the cluster.

  • * RUNNING indicates that the execution is being processed by the * cluster.

  • FINISHING indicates that execution * processing is in the final stages.

  • FINISHED * indicates that the execution has completed without error.

  • * FAILING indicates that the execution is failing and will not finish * successfully.

  • FAILED indicates that the * execution failed.

  • STOP_PENDING indicates that * the cluster has received a StopNotebookExecution request and the * stop is pending.

  • STOPPING indicates that the * cluster is in the process of stopping the execution as a result of a * StopNotebookExecution request.

  • * STOPPED indicates that the execution stopped because of a * StopNotebookExecution request.

*/ inline void SetStatus(const NotebookExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status filter for listing notebook executions.

  • * START_PENDING indicates that the cluster has received the execution * request but execution has not begun.

  • STARTING * indicates that the execution is starting on the cluster.

  • * RUNNING indicates that the execution is being processed by the * cluster.

  • FINISHING indicates that execution * processing is in the final stages.

  • FINISHED * indicates that the execution has completed without error.

  • * FAILING indicates that the execution is failing and will not finish * successfully.

  • FAILED indicates that the * execution failed.

  • STOP_PENDING indicates that * the cluster has received a StopNotebookExecution request and the * stop is pending.

  • STOPPING indicates that the * cluster is in the process of stopping the execution as a result of a * StopNotebookExecution request.

  • * STOPPED indicates that the execution stopped because of a * StopNotebookExecution request.

*/ inline void SetStatus(NotebookExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status filter for listing notebook executions.

  • * START_PENDING indicates that the cluster has received the execution * request but execution has not begun.

  • STARTING * indicates that the execution is starting on the cluster.

  • * RUNNING indicates that the execution is being processed by the * cluster.

  • FINISHING indicates that execution * processing is in the final stages.

  • FINISHED * indicates that the execution has completed without error.

  • * FAILING indicates that the execution is failing and will not finish * successfully.

  • FAILED indicates that the * execution failed.

  • STOP_PENDING indicates that * the cluster has received a StopNotebookExecution request and the * stop is pending.

  • STOPPING indicates that the * cluster is in the process of stopping the execution as a result of a * StopNotebookExecution request.

  • * STOPPED indicates that the execution stopped because of a * StopNotebookExecution request.

*/ inline ListNotebookExecutionsRequest& WithStatus(const NotebookExecutionStatus& value) { SetStatus(value); return *this;} /** *

The status filter for listing notebook executions.

  • * START_PENDING indicates that the cluster has received the execution * request but execution has not begun.

  • STARTING * indicates that the execution is starting on the cluster.

  • * RUNNING indicates that the execution is being processed by the * cluster.

  • FINISHING indicates that execution * processing is in the final stages.

  • FINISHED * indicates that the execution has completed without error.

  • * FAILING indicates that the execution is failing and will not finish * successfully.

  • FAILED indicates that the * execution failed.

  • STOP_PENDING indicates that * the cluster has received a StopNotebookExecution request and the * stop is pending.

  • STOPPING indicates that the * cluster is in the process of stopping the execution as a result of a * StopNotebookExecution request.

  • * STOPPED indicates that the execution stopped because of a * StopNotebookExecution request.

*/ inline ListNotebookExecutionsRequest& WithStatus(NotebookExecutionStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The beginning of time range filter for listing notebook executions. The * default is the timestamp of 30 days ago.

*/ inline const Aws::Utils::DateTime& GetFrom() const{ return m_from; } /** *

The beginning of time range filter for listing notebook executions. The * default is the timestamp of 30 days ago.

*/ inline bool FromHasBeenSet() const { return m_fromHasBeenSet; } /** *

The beginning of time range filter for listing notebook executions. The * default is the timestamp of 30 days ago.

*/ inline void SetFrom(const Aws::Utils::DateTime& value) { m_fromHasBeenSet = true; m_from = value; } /** *

The beginning of time range filter for listing notebook executions. The * default is the timestamp of 30 days ago.

*/ inline void SetFrom(Aws::Utils::DateTime&& value) { m_fromHasBeenSet = true; m_from = std::move(value); } /** *

The beginning of time range filter for listing notebook executions. The * default is the timestamp of 30 days ago.

*/ inline ListNotebookExecutionsRequest& WithFrom(const Aws::Utils::DateTime& value) { SetFrom(value); return *this;} /** *

The beginning of time range filter for listing notebook executions. The * default is the timestamp of 30 days ago.

*/ inline ListNotebookExecutionsRequest& WithFrom(Aws::Utils::DateTime&& value) { SetFrom(std::move(value)); return *this;} /** *

The end of time range filter for listing notebook executions. The default is * the current timestamp.

*/ inline const Aws::Utils::DateTime& GetTo() const{ return m_to; } /** *

The end of time range filter for listing notebook executions. The default is * the current timestamp.

*/ inline bool ToHasBeenSet() const { return m_toHasBeenSet; } /** *

The end of time range filter for listing notebook executions. The default is * the current timestamp.

*/ inline void SetTo(const Aws::Utils::DateTime& value) { m_toHasBeenSet = true; m_to = value; } /** *

The end of time range filter for listing notebook executions. The default is * the current timestamp.

*/ inline void SetTo(Aws::Utils::DateTime&& value) { m_toHasBeenSet = true; m_to = std::move(value); } /** *

The end of time range filter for listing notebook executions. The default is * the current timestamp.

*/ inline ListNotebookExecutionsRequest& WithTo(const Aws::Utils::DateTime& value) { SetTo(value); return *this;} /** *

The end of time range filter for listing notebook executions. The default is * the current timestamp.

*/ inline ListNotebookExecutionsRequest& WithTo(Aws::Utils::DateTime&& value) { SetTo(std::move(value)); return *this;} /** *

The pagination token, returned by a previous * ListNotebookExecutions call, that indicates the start of the list * for this ListNotebookExecutions call.

*/ inline const Aws::String& GetMarker() const{ return m_marker; } /** *

The pagination token, returned by a previous * ListNotebookExecutions call, that indicates the start of the list * for this ListNotebookExecutions call.

*/ inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; } /** *

The pagination token, returned by a previous * ListNotebookExecutions call, that indicates the start of the list * for this ListNotebookExecutions call.

*/ inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; } /** *

The pagination token, returned by a previous * ListNotebookExecutions call, that indicates the start of the list * for this ListNotebookExecutions call.

*/ inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); } /** *

The pagination token, returned by a previous * ListNotebookExecutions call, that indicates the start of the list * for this ListNotebookExecutions call.

*/ inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); } /** *

The pagination token, returned by a previous * ListNotebookExecutions call, that indicates the start of the list * for this ListNotebookExecutions call.

*/ inline ListNotebookExecutionsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;} /** *

The pagination token, returned by a previous * ListNotebookExecutions call, that indicates the start of the list * for this ListNotebookExecutions call.

*/ inline ListNotebookExecutionsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;} /** *

The pagination token, returned by a previous * ListNotebookExecutions call, that indicates the start of the list * for this ListNotebookExecutions call.

*/ inline ListNotebookExecutionsRequest& WithMarker(const char* value) { SetMarker(value); return *this;} /** *

The unique ID of the execution engine.

*/ inline const Aws::String& GetExecutionEngineId() const{ return m_executionEngineId; } /** *

The unique ID of the execution engine.

*/ inline bool ExecutionEngineIdHasBeenSet() const { return m_executionEngineIdHasBeenSet; } /** *

The unique ID of the execution engine.

*/ inline void SetExecutionEngineId(const Aws::String& value) { m_executionEngineIdHasBeenSet = true; m_executionEngineId = value; } /** *

The unique ID of the execution engine.

*/ inline void SetExecutionEngineId(Aws::String&& value) { m_executionEngineIdHasBeenSet = true; m_executionEngineId = std::move(value); } /** *

The unique ID of the execution engine.

*/ inline void SetExecutionEngineId(const char* value) { m_executionEngineIdHasBeenSet = true; m_executionEngineId.assign(value); } /** *

The unique ID of the execution engine.

*/ inline ListNotebookExecutionsRequest& WithExecutionEngineId(const Aws::String& value) { SetExecutionEngineId(value); return *this;} /** *

The unique ID of the execution engine.

*/ inline ListNotebookExecutionsRequest& WithExecutionEngineId(Aws::String&& value) { SetExecutionEngineId(std::move(value)); return *this;} /** *

The unique ID of the execution engine.

*/ inline ListNotebookExecutionsRequest& WithExecutionEngineId(const char* value) { SetExecutionEngineId(value); return *this;} private: Aws::String m_editorId; bool m_editorIdHasBeenSet = false; NotebookExecutionStatus m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_from; bool m_fromHasBeenSet = false; Aws::Utils::DateTime m_to; bool m_toHasBeenSet = false; Aws::String m_marker; bool m_markerHasBeenSet = false; Aws::String m_executionEngineId; bool m_executionEngineIdHasBeenSet = false; }; } // namespace Model } // namespace EMR } // namespace Aws