AWS SDK for C++  1.9.109
AWS SDK for C++
CreateSamplingRuleResult.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 template<typename RESULT_TYPE>
14 class AmazonWebServiceResult;
15 
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21 } // namespace Json
22 } // namespace Utils
23 namespace XRay
24 {
25 namespace Model
26 {
28  {
29  public:
33 
34 
38  inline const SamplingRuleRecord& GetSamplingRuleRecord() const{ return m_samplingRuleRecord; }
39 
43  inline void SetSamplingRuleRecord(const SamplingRuleRecord& value) { m_samplingRuleRecord = value; }
44 
48  inline void SetSamplingRuleRecord(SamplingRuleRecord&& value) { m_samplingRuleRecord = std::move(value); }
49 
53  inline CreateSamplingRuleResult& WithSamplingRuleRecord(const SamplingRuleRecord& value) { SetSamplingRuleRecord(value); return *this;}
54 
58  inline CreateSamplingRuleResult& WithSamplingRuleRecord(SamplingRuleRecord&& value) { SetSamplingRuleRecord(std::move(value)); return *this;}
59 
60  private:
61 
62  SamplingRuleRecord m_samplingRuleRecord;
63  };
64 
65 } // namespace Model
66 } // namespace XRay
67 } // namespace Aws
Aws::XRay::Model::CreateSamplingRuleResult::operator=
CreateSamplingRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::XRay::Model::CreateSamplingRuleResult::CreateSamplingRuleResult
CreateSamplingRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::XRay::Model::CreateSamplingRuleResult::WithSamplingRuleRecord
CreateSamplingRuleResult & WithSamplingRuleRecord(const SamplingRuleRecord &value)
Definition: CreateSamplingRuleResult.h:53
Aws::XRay::Model::CreateSamplingRuleResult::SetSamplingRuleRecord
void SetSamplingRuleRecord(const SamplingRuleRecord &value)
Definition: CreateSamplingRuleResult.h:43
Aws::XRay::Model::CreateSamplingRuleResult::GetSamplingRuleRecord
const SamplingRuleRecord & GetSamplingRuleRecord() const
Definition: CreateSamplingRuleResult.h:38
Aws::XRay::Model::CreateSamplingRuleResult::WithSamplingRuleRecord
CreateSamplingRuleResult & WithSamplingRuleRecord(SamplingRuleRecord &&value)
Definition: CreateSamplingRuleResult.h:58
XRay_EXPORTS.h
Aws::XRay::Model::CreateSamplingRuleResult::CreateSamplingRuleResult
CreateSamplingRuleResult()
AWS_XRAY_API
#define AWS_XRAY_API
Definition: XRay_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::XRay::Model::SamplingRuleRecord
Definition: SamplingRuleRecord.h:35
Aws::XRay::Model::CreateSamplingRuleResult
Definition: CreateSamplingRuleResult.h:28
Aws::XRay::Model::CreateSamplingRuleResult::SetSamplingRuleRecord
void SetSamplingRuleRecord(SamplingRuleRecord &&value)
Definition: CreateSamplingRuleResult.h:48
SamplingRuleRecord.h