/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace OSIS { namespace Model { /** *

Summary information for an OpenSearch Ingestion pipeline.

See * Also:

AWS * API Reference

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

The current status of the pipeline.

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

The current status of the pipeline.

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

The current status of the pipeline.

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

The current status of the pipeline.

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

The current status of the pipeline.

*/ inline PipelineSummary& WithStatus(const PipelineStatus& value) { SetStatus(value); return *this;} /** *

The current status of the pipeline.

*/ inline PipelineSummary& WithStatus(PipelineStatus&& value) { SetStatus(std::move(value)); return *this;} inline const PipelineStatusReason& GetStatusReason() const{ return m_statusReason; } inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; } inline void SetStatusReason(const PipelineStatusReason& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; } inline void SetStatusReason(PipelineStatusReason&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); } inline PipelineSummary& WithStatusReason(const PipelineStatusReason& value) { SetStatusReason(value); return *this;} inline PipelineSummary& WithStatusReason(PipelineStatusReason&& value) { SetStatusReason(std::move(value)); return *this;} /** *

The name of the pipeline.

*/ inline const Aws::String& GetPipelineName() const{ return m_pipelineName; } /** *

The name of the pipeline.

*/ inline bool PipelineNameHasBeenSet() const { return m_pipelineNameHasBeenSet; } /** *

The name of the pipeline.

*/ inline void SetPipelineName(const Aws::String& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = value; } /** *

The name of the pipeline.

*/ inline void SetPipelineName(Aws::String&& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = std::move(value); } /** *

The name of the pipeline.

*/ inline void SetPipelineName(const char* value) { m_pipelineNameHasBeenSet = true; m_pipelineName.assign(value); } /** *

The name of the pipeline.

*/ inline PipelineSummary& WithPipelineName(const Aws::String& value) { SetPipelineName(value); return *this;} /** *

The name of the pipeline.

*/ inline PipelineSummary& WithPipelineName(Aws::String&& value) { SetPipelineName(std::move(value)); return *this;} /** *

The name of the pipeline.

*/ inline PipelineSummary& WithPipelineName(const char* value) { SetPipelineName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the pipeline.

*/ inline const Aws::String& GetPipelineArn() const{ return m_pipelineArn; } /** *

The Amazon Resource Name (ARN) of the pipeline.

*/ inline bool PipelineArnHasBeenSet() const { return m_pipelineArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the pipeline.

*/ inline void SetPipelineArn(const Aws::String& value) { m_pipelineArnHasBeenSet = true; m_pipelineArn = value; } /** *

The Amazon Resource Name (ARN) of the pipeline.

*/ inline void SetPipelineArn(Aws::String&& value) { m_pipelineArnHasBeenSet = true; m_pipelineArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the pipeline.

*/ inline void SetPipelineArn(const char* value) { m_pipelineArnHasBeenSet = true; m_pipelineArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the pipeline.

*/ inline PipelineSummary& WithPipelineArn(const Aws::String& value) { SetPipelineArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the pipeline.

*/ inline PipelineSummary& WithPipelineArn(Aws::String&& value) { SetPipelineArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the pipeline.

*/ inline PipelineSummary& WithPipelineArn(const char* value) { SetPipelineArn(value); return *this;} /** *

The minimum pipeline capacity, in Ingestion Compute Units (ICUs).

*/ inline int GetMinUnits() const{ return m_minUnits; } /** *

The minimum pipeline capacity, in Ingestion Compute Units (ICUs).

*/ inline bool MinUnitsHasBeenSet() const { return m_minUnitsHasBeenSet; } /** *

The minimum pipeline capacity, in Ingestion Compute Units (ICUs).

*/ inline void SetMinUnits(int value) { m_minUnitsHasBeenSet = true; m_minUnits = value; } /** *

The minimum pipeline capacity, in Ingestion Compute Units (ICUs).

*/ inline PipelineSummary& WithMinUnits(int value) { SetMinUnits(value); return *this;} /** *

The maximum pipeline capacity, in Ingestion Compute Units (ICUs).

*/ inline int GetMaxUnits() const{ return m_maxUnits; } /** *

The maximum pipeline capacity, in Ingestion Compute Units (ICUs).

*/ inline bool MaxUnitsHasBeenSet() const { return m_maxUnitsHasBeenSet; } /** *

The maximum pipeline capacity, in Ingestion Compute Units (ICUs).

*/ inline void SetMaxUnits(int value) { m_maxUnitsHasBeenSet = true; m_maxUnits = value; } /** *

The maximum pipeline capacity, in Ingestion Compute Units (ICUs).

*/ inline PipelineSummary& WithMaxUnits(int value) { SetMaxUnits(value); return *this;} /** *

The date and time when the pipeline was created.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The date and time when the pipeline was created.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The date and time when the pipeline was created.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The date and time when the pipeline was created.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The date and time when the pipeline was created.

*/ inline PipelineSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The date and time when the pipeline was created.

*/ inline PipelineSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The date and time when the pipeline was last updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; } /** *

The date and time when the pipeline was last updated.

*/ inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; } /** *

The date and time when the pipeline was last updated.

*/ inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; } /** *

The date and time when the pipeline was last updated.

*/ inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); } /** *

The date and time when the pipeline was last updated.

*/ inline PipelineSummary& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;} /** *

The date and time when the pipeline was last updated.

*/ inline PipelineSummary& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;} private: PipelineStatus m_status; bool m_statusHasBeenSet = false; PipelineStatusReason m_statusReason; bool m_statusReasonHasBeenSet = false; Aws::String m_pipelineName; bool m_pipelineNameHasBeenSet = false; Aws::String m_pipelineArn; bool m_pipelineArnHasBeenSet = false; int m_minUnits; bool m_minUnitsHasBeenSet = false; int m_maxUnits; bool m_maxUnitsHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedAt; bool m_lastUpdatedAtHasBeenSet = false; }; } // namespace Model } // namespace OSIS } // namespace Aws