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

Maps a particular data source sync job to a particular data * source.

See Also:

AWS * API Reference

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

The ID of the data source that is running the sync job.

*/ inline const Aws::String& GetDataSourceId() const{ return m_dataSourceId; } /** *

The ID of the data source that is running the sync job.

*/ inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; } /** *

The ID of the data source that is running the sync job.

*/ inline void SetDataSourceId(const Aws::String& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = value; } /** *

The ID of the data source that is running the sync job.

*/ inline void SetDataSourceId(Aws::String&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::move(value); } /** *

The ID of the data source that is running the sync job.

*/ inline void SetDataSourceId(const char* value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId.assign(value); } /** *

The ID of the data source that is running the sync job.

*/ inline DataSourceSyncJobMetricTarget& WithDataSourceId(const Aws::String& value) { SetDataSourceId(value); return *this;} /** *

The ID of the data source that is running the sync job.

*/ inline DataSourceSyncJobMetricTarget& WithDataSourceId(Aws::String&& value) { SetDataSourceId(std::move(value)); return *this;} /** *

The ID of the data source that is running the sync job.

*/ inline DataSourceSyncJobMetricTarget& WithDataSourceId(const char* value) { SetDataSourceId(value); return *this;} /** *

The ID of the sync job that is running on the data source.

*/ inline const Aws::String& GetDataSourceSyncJobId() const{ return m_dataSourceSyncJobId; } /** *

The ID of the sync job that is running on the data source.

*/ inline bool DataSourceSyncJobIdHasBeenSet() const { return m_dataSourceSyncJobIdHasBeenSet; } /** *

The ID of the sync job that is running on the data source.

*/ inline void SetDataSourceSyncJobId(const Aws::String& value) { m_dataSourceSyncJobIdHasBeenSet = true; m_dataSourceSyncJobId = value; } /** *

The ID of the sync job that is running on the data source.

*/ inline void SetDataSourceSyncJobId(Aws::String&& value) { m_dataSourceSyncJobIdHasBeenSet = true; m_dataSourceSyncJobId = std::move(value); } /** *

The ID of the sync job that is running on the data source.

*/ inline void SetDataSourceSyncJobId(const char* value) { m_dataSourceSyncJobIdHasBeenSet = true; m_dataSourceSyncJobId.assign(value); } /** *

The ID of the sync job that is running on the data source.

*/ inline DataSourceSyncJobMetricTarget& WithDataSourceSyncJobId(const Aws::String& value) { SetDataSourceSyncJobId(value); return *this;} /** *

The ID of the sync job that is running on the data source.

*/ inline DataSourceSyncJobMetricTarget& WithDataSourceSyncJobId(Aws::String&& value) { SetDataSourceSyncJobId(std::move(value)); return *this;} /** *

The ID of the sync job that is running on the data source.

*/ inline DataSourceSyncJobMetricTarget& WithDataSourceSyncJobId(const char* value) { SetDataSourceSyncJobId(value); return *this;} private: Aws::String m_dataSourceId; bool m_dataSourceIdHasBeenSet; Aws::String m_dataSourceSyncJobId; bool m_dataSourceSyncJobIdHasBeenSet; }; } // namespace Model } // namespace kendra } // namespace Aws