/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace XRay { namespace Model { class AWS_XRAY_API GetSamplingTargetsResult { public: GetSamplingTargetsResult(); GetSamplingTargetsResult(const Aws::AmazonWebServiceResult& result); GetSamplingTargetsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Updated rules that the service should use to sample requests.

*/ inline const Aws::Vector& GetSamplingTargetDocuments() const{ return m_samplingTargetDocuments; } /** *

Updated rules that the service should use to sample requests.

*/ inline void SetSamplingTargetDocuments(const Aws::Vector& value) { m_samplingTargetDocuments = value; } /** *

Updated rules that the service should use to sample requests.

*/ inline void SetSamplingTargetDocuments(Aws::Vector&& value) { m_samplingTargetDocuments = std::move(value); } /** *

Updated rules that the service should use to sample requests.

*/ inline GetSamplingTargetsResult& WithSamplingTargetDocuments(const Aws::Vector& value) { SetSamplingTargetDocuments(value); return *this;} /** *

Updated rules that the service should use to sample requests.

*/ inline GetSamplingTargetsResult& WithSamplingTargetDocuments(Aws::Vector&& value) { SetSamplingTargetDocuments(std::move(value)); return *this;} /** *

Updated rules that the service should use to sample requests.

*/ inline GetSamplingTargetsResult& AddSamplingTargetDocuments(const SamplingTargetDocument& value) { m_samplingTargetDocuments.push_back(value); return *this; } /** *

Updated rules that the service should use to sample requests.

*/ inline GetSamplingTargetsResult& AddSamplingTargetDocuments(SamplingTargetDocument&& value) { m_samplingTargetDocuments.push_back(std::move(value)); return *this; } /** *

The last time a user changed the sampling rule configuration. If the sampling * rule configuration changed since the service last retrieved it, the service * should call GetSamplingRules to get the latest version.

*/ inline const Aws::Utils::DateTime& GetLastRuleModification() const{ return m_lastRuleModification; } /** *

The last time a user changed the sampling rule configuration. If the sampling * rule configuration changed since the service last retrieved it, the service * should call GetSamplingRules to get the latest version.

*/ inline void SetLastRuleModification(const Aws::Utils::DateTime& value) { m_lastRuleModification = value; } /** *

The last time a user changed the sampling rule configuration. If the sampling * rule configuration changed since the service last retrieved it, the service * should call GetSamplingRules to get the latest version.

*/ inline void SetLastRuleModification(Aws::Utils::DateTime&& value) { m_lastRuleModification = std::move(value); } /** *

The last time a user changed the sampling rule configuration. If the sampling * rule configuration changed since the service last retrieved it, the service * should call GetSamplingRules to get the latest version.

*/ inline GetSamplingTargetsResult& WithLastRuleModification(const Aws::Utils::DateTime& value) { SetLastRuleModification(value); return *this;} /** *

The last time a user changed the sampling rule configuration. If the sampling * rule configuration changed since the service last retrieved it, the service * should call GetSamplingRules to get the latest version.

*/ inline GetSamplingTargetsResult& WithLastRuleModification(Aws::Utils::DateTime&& value) { SetLastRuleModification(std::move(value)); return *this;} /** *

Information about SamplingStatisticsDocument that X-Ray could not * process.

*/ inline const Aws::Vector& GetUnprocessedStatistics() const{ return m_unprocessedStatistics; } /** *

Information about SamplingStatisticsDocument that X-Ray could not * process.

*/ inline void SetUnprocessedStatistics(const Aws::Vector& value) { m_unprocessedStatistics = value; } /** *

Information about SamplingStatisticsDocument that X-Ray could not * process.

*/ inline void SetUnprocessedStatistics(Aws::Vector&& value) { m_unprocessedStatistics = std::move(value); } /** *

Information about SamplingStatisticsDocument that X-Ray could not * process.

*/ inline GetSamplingTargetsResult& WithUnprocessedStatistics(const Aws::Vector& value) { SetUnprocessedStatistics(value); return *this;} /** *

Information about SamplingStatisticsDocument that X-Ray could not * process.

*/ inline GetSamplingTargetsResult& WithUnprocessedStatistics(Aws::Vector&& value) { SetUnprocessedStatistics(std::move(value)); return *this;} /** *

Information about SamplingStatisticsDocument that X-Ray could not * process.

*/ inline GetSamplingTargetsResult& AddUnprocessedStatistics(const UnprocessedStatistics& value) { m_unprocessedStatistics.push_back(value); return *this; } /** *

Information about SamplingStatisticsDocument that X-Ray could not * process.

*/ inline GetSamplingTargetsResult& AddUnprocessedStatistics(UnprocessedStatistics&& value) { m_unprocessedStatistics.push_back(std::move(value)); return *this; } private: Aws::Vector m_samplingTargetDocuments; Aws::Utils::DateTime m_lastRuleModification; Aws::Vector m_unprocessedStatistics; }; } // namespace Model } // namespace XRay } // namespace Aws