/** * 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 ConfigService { namespace Model { /** *

The current sync status between the source and the aggregator * account.

See Also:

AWS * API Reference

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

The source account ID or an organization.

*/ inline const Aws::String& GetSourceId() const{ return m_sourceId; } /** *

The source account ID or an organization.

*/ inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; } /** *

The source account ID or an organization.

*/ inline void SetSourceId(const Aws::String& value) { m_sourceIdHasBeenSet = true; m_sourceId = value; } /** *

The source account ID or an organization.

*/ inline void SetSourceId(Aws::String&& value) { m_sourceIdHasBeenSet = true; m_sourceId = std::move(value); } /** *

The source account ID or an organization.

*/ inline void SetSourceId(const char* value) { m_sourceIdHasBeenSet = true; m_sourceId.assign(value); } /** *

The source account ID or an organization.

*/ inline AggregatedSourceStatus& WithSourceId(const Aws::String& value) { SetSourceId(value); return *this;} /** *

The source account ID or an organization.

*/ inline AggregatedSourceStatus& WithSourceId(Aws::String&& value) { SetSourceId(std::move(value)); return *this;} /** *

The source account ID or an organization.

*/ inline AggregatedSourceStatus& WithSourceId(const char* value) { SetSourceId(value); return *this;} /** *

The source account or an organization.

*/ inline const AggregatedSourceType& GetSourceType() const{ return m_sourceType; } /** *

The source account or an organization.

*/ inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; } /** *

The source account or an organization.

*/ inline void SetSourceType(const AggregatedSourceType& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; } /** *

The source account or an organization.

*/ inline void SetSourceType(AggregatedSourceType&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); } /** *

The source account or an organization.

*/ inline AggregatedSourceStatus& WithSourceType(const AggregatedSourceType& value) { SetSourceType(value); return *this;} /** *

The source account or an organization.

*/ inline AggregatedSourceStatus& WithSourceType(AggregatedSourceType&& value) { SetSourceType(std::move(value)); return *this;} /** *

The region authorized to collect aggregated data.

*/ inline const Aws::String& GetAwsRegion() const{ return m_awsRegion; } /** *

The region authorized to collect aggregated data.

*/ inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; } /** *

The region authorized to collect aggregated data.

*/ inline void SetAwsRegion(const Aws::String& value) { m_awsRegionHasBeenSet = true; m_awsRegion = value; } /** *

The region authorized to collect aggregated data.

*/ inline void SetAwsRegion(Aws::String&& value) { m_awsRegionHasBeenSet = true; m_awsRegion = std::move(value); } /** *

The region authorized to collect aggregated data.

*/ inline void SetAwsRegion(const char* value) { m_awsRegionHasBeenSet = true; m_awsRegion.assign(value); } /** *

The region authorized to collect aggregated data.

*/ inline AggregatedSourceStatus& WithAwsRegion(const Aws::String& value) { SetAwsRegion(value); return *this;} /** *

The region authorized to collect aggregated data.

*/ inline AggregatedSourceStatus& WithAwsRegion(Aws::String&& value) { SetAwsRegion(std::move(value)); return *this;} /** *

The region authorized to collect aggregated data.

*/ inline AggregatedSourceStatus& WithAwsRegion(const char* value) { SetAwsRegion(value); return *this;} /** *

Filters the last updated status type.

  • Valid value FAILED * indicates errors while moving data.

  • Valid value SUCCEEDED * indicates the data was successfully moved.

  • Valid value * OUTDATED indicates the data is not the most recent.

*/ inline const AggregatedSourceStatusType& GetLastUpdateStatus() const{ return m_lastUpdateStatus; } /** *

Filters the last updated status type.

  • Valid value FAILED * indicates errors while moving data.

  • Valid value SUCCEEDED * indicates the data was successfully moved.

  • Valid value * OUTDATED indicates the data is not the most recent.

*/ inline bool LastUpdateStatusHasBeenSet() const { return m_lastUpdateStatusHasBeenSet; } /** *

Filters the last updated status type.

  • Valid value FAILED * indicates errors while moving data.

  • Valid value SUCCEEDED * indicates the data was successfully moved.

  • Valid value * OUTDATED indicates the data is not the most recent.

*/ inline void SetLastUpdateStatus(const AggregatedSourceStatusType& value) { m_lastUpdateStatusHasBeenSet = true; m_lastUpdateStatus = value; } /** *

Filters the last updated status type.

  • Valid value FAILED * indicates errors while moving data.

  • Valid value SUCCEEDED * indicates the data was successfully moved.

  • Valid value * OUTDATED indicates the data is not the most recent.

*/ inline void SetLastUpdateStatus(AggregatedSourceStatusType&& value) { m_lastUpdateStatusHasBeenSet = true; m_lastUpdateStatus = std::move(value); } /** *

Filters the last updated status type.

  • Valid value FAILED * indicates errors while moving data.

  • Valid value SUCCEEDED * indicates the data was successfully moved.

  • Valid value * OUTDATED indicates the data is not the most recent.

*/ inline AggregatedSourceStatus& WithLastUpdateStatus(const AggregatedSourceStatusType& value) { SetLastUpdateStatus(value); return *this;} /** *

Filters the last updated status type.

  • Valid value FAILED * indicates errors while moving data.

  • Valid value SUCCEEDED * indicates the data was successfully moved.

  • Valid value * OUTDATED indicates the data is not the most recent.

*/ inline AggregatedSourceStatus& WithLastUpdateStatus(AggregatedSourceStatusType&& value) { SetLastUpdateStatus(std::move(value)); return *this;} /** *

The time of the last update.

*/ inline const Aws::Utils::DateTime& GetLastUpdateTime() const{ return m_lastUpdateTime; } /** *

The time of the last update.

*/ inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; } /** *

The time of the last update.

*/ inline void SetLastUpdateTime(const Aws::Utils::DateTime& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = value; } /** *

The time of the last update.

*/ inline void SetLastUpdateTime(Aws::Utils::DateTime&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::move(value); } /** *

The time of the last update.

*/ inline AggregatedSourceStatus& WithLastUpdateTime(const Aws::Utils::DateTime& value) { SetLastUpdateTime(value); return *this;} /** *

The time of the last update.

*/ inline AggregatedSourceStatus& WithLastUpdateTime(Aws::Utils::DateTime&& value) { SetLastUpdateTime(std::move(value)); return *this;} /** *

The error code that Config returned when the source account aggregation last * failed.

*/ inline const Aws::String& GetLastErrorCode() const{ return m_lastErrorCode; } /** *

The error code that Config returned when the source account aggregation last * failed.

*/ inline bool LastErrorCodeHasBeenSet() const { return m_lastErrorCodeHasBeenSet; } /** *

The error code that Config returned when the source account aggregation last * failed.

*/ inline void SetLastErrorCode(const Aws::String& value) { m_lastErrorCodeHasBeenSet = true; m_lastErrorCode = value; } /** *

The error code that Config returned when the source account aggregation last * failed.

*/ inline void SetLastErrorCode(Aws::String&& value) { m_lastErrorCodeHasBeenSet = true; m_lastErrorCode = std::move(value); } /** *

The error code that Config returned when the source account aggregation last * failed.

*/ inline void SetLastErrorCode(const char* value) { m_lastErrorCodeHasBeenSet = true; m_lastErrorCode.assign(value); } /** *

The error code that Config returned when the source account aggregation last * failed.

*/ inline AggregatedSourceStatus& WithLastErrorCode(const Aws::String& value) { SetLastErrorCode(value); return *this;} /** *

The error code that Config returned when the source account aggregation last * failed.

*/ inline AggregatedSourceStatus& WithLastErrorCode(Aws::String&& value) { SetLastErrorCode(std::move(value)); return *this;} /** *

The error code that Config returned when the source account aggregation last * failed.

*/ inline AggregatedSourceStatus& WithLastErrorCode(const char* value) { SetLastErrorCode(value); return *this;} /** *

The message indicating that the source account aggregation failed due to an * error.

*/ inline const Aws::String& GetLastErrorMessage() const{ return m_lastErrorMessage; } /** *

The message indicating that the source account aggregation failed due to an * error.

*/ inline bool LastErrorMessageHasBeenSet() const { return m_lastErrorMessageHasBeenSet; } /** *

The message indicating that the source account aggregation failed due to an * error.

*/ inline void SetLastErrorMessage(const Aws::String& value) { m_lastErrorMessageHasBeenSet = true; m_lastErrorMessage = value; } /** *

The message indicating that the source account aggregation failed due to an * error.

*/ inline void SetLastErrorMessage(Aws::String&& value) { m_lastErrorMessageHasBeenSet = true; m_lastErrorMessage = std::move(value); } /** *

The message indicating that the source account aggregation failed due to an * error.

*/ inline void SetLastErrorMessage(const char* value) { m_lastErrorMessageHasBeenSet = true; m_lastErrorMessage.assign(value); } /** *

The message indicating that the source account aggregation failed due to an * error.

*/ inline AggregatedSourceStatus& WithLastErrorMessage(const Aws::String& value) { SetLastErrorMessage(value); return *this;} /** *

The message indicating that the source account aggregation failed due to an * error.

*/ inline AggregatedSourceStatus& WithLastErrorMessage(Aws::String&& value) { SetLastErrorMessage(std::move(value)); return *this;} /** *

The message indicating that the source account aggregation failed due to an * error.

*/ inline AggregatedSourceStatus& WithLastErrorMessage(const char* value) { SetLastErrorMessage(value); return *this;} private: Aws::String m_sourceId; bool m_sourceIdHasBeenSet = false; AggregatedSourceType m_sourceType; bool m_sourceTypeHasBeenSet = false; Aws::String m_awsRegion; bool m_awsRegionHasBeenSet = false; AggregatedSourceStatusType m_lastUpdateStatus; bool m_lastUpdateStatusHasBeenSet = false; Aws::Utils::DateTime m_lastUpdateTime; bool m_lastUpdateTimeHasBeenSet = false; Aws::String m_lastErrorCode; bool m_lastErrorCodeHasBeenSet = false; Aws::String m_lastErrorMessage; bool m_lastErrorMessageHasBeenSet = false; }; } // namespace Model } // namespace ConfigService } // namespace Aws