/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 GetSamplingRulesResult { public: AWS_XRAY_API GetSamplingRulesResult(); AWS_XRAY_API GetSamplingRulesResult(const Aws::AmazonWebServiceResult& result); AWS_XRAY_API GetSamplingRulesResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Rule definitions and metadata.

*/ inline const Aws::Vector& GetSamplingRuleRecords() const{ return m_samplingRuleRecords; } /** *

Rule definitions and metadata.

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

Rule definitions and metadata.

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

Rule definitions and metadata.

*/ inline GetSamplingRulesResult& WithSamplingRuleRecords(const Aws::Vector& value) { SetSamplingRuleRecords(value); return *this;} /** *

Rule definitions and metadata.

*/ inline GetSamplingRulesResult& WithSamplingRuleRecords(Aws::Vector&& value) { SetSamplingRuleRecords(std::move(value)); return *this;} /** *

Rule definitions and metadata.

*/ inline GetSamplingRulesResult& AddSamplingRuleRecords(const SamplingRuleRecord& value) { m_samplingRuleRecords.push_back(value); return *this; } /** *

Rule definitions and metadata.

*/ inline GetSamplingRulesResult& AddSamplingRuleRecords(SamplingRuleRecord&& value) { m_samplingRuleRecords.push_back(std::move(value)); return *this; } /** *

Pagination token.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

Pagination token.

*/ inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } /** *

Pagination token.

*/ inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } /** *

Pagination token.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

Pagination token.

*/ inline GetSamplingRulesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

Pagination token.

*/ inline GetSamplingRulesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

Pagination token.

*/ inline GetSamplingRulesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetSamplingRulesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetSamplingRulesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetSamplingRulesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_samplingRuleRecords; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace XRay } // namespace Aws