AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SamplingRuleRecord.h
1
6#pragma once
7#include <aws/xray/XRay_EXPORTS.h>
8#include <aws/xray/model/SamplingRule.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace XRay
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_XRAY_API SamplingRuleRecord();
41
42
44
47 inline const SamplingRule& GetSamplingRule() const{ return m_samplingRule; }
48 inline bool SamplingRuleHasBeenSet() const { return m_samplingRuleHasBeenSet; }
49 inline void SetSamplingRule(const SamplingRule& value) { m_samplingRuleHasBeenSet = true; m_samplingRule = value; }
50 inline void SetSamplingRule(SamplingRule&& value) { m_samplingRuleHasBeenSet = true; m_samplingRule = std::move(value); }
51 inline SamplingRuleRecord& WithSamplingRule(const SamplingRule& value) { SetSamplingRule(value); return *this;}
52 inline SamplingRuleRecord& WithSamplingRule(SamplingRule&& value) { SetSamplingRule(std::move(value)); return *this;}
54
56
59 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
60 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
61 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
62 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
63 inline SamplingRuleRecord& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
64 inline SamplingRuleRecord& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
66
68
71 inline const Aws::Utils::DateTime& GetModifiedAt() const{ return m_modifiedAt; }
72 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
73 inline void SetModifiedAt(const Aws::Utils::DateTime& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = value; }
74 inline void SetModifiedAt(Aws::Utils::DateTime&& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = std::move(value); }
75 inline SamplingRuleRecord& WithModifiedAt(const Aws::Utils::DateTime& value) { SetModifiedAt(value); return *this;}
76 inline SamplingRuleRecord& WithModifiedAt(Aws::Utils::DateTime&& value) { SetModifiedAt(std::move(value)); return *this;}
78 private:
79
80 SamplingRule m_samplingRule;
81 bool m_samplingRuleHasBeenSet = false;
82
83 Aws::Utils::DateTime m_createdAt;
84 bool m_createdAtHasBeenSet = false;
85
86 Aws::Utils::DateTime m_modifiedAt;
87 bool m_modifiedAtHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace XRay
92} // namespace Aws
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetModifiedAt(Aws::Utils::DateTime &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
SamplingRuleRecord & WithCreatedAt(const Aws::Utils::DateTime &value)
void SetSamplingRule(const SamplingRule &value)
SamplingRuleRecord & WithModifiedAt(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetModifiedAt() const
SamplingRuleRecord & WithModifiedAt(Aws::Utils::DateTime &&value)
void SetSamplingRule(SamplingRule &&value)
void SetModifiedAt(const Aws::Utils::DateTime &value)
SamplingRuleRecord & WithSamplingRule(SamplingRule &&value)
AWS_XRAY_API SamplingRuleRecord(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedAt() const
SamplingRuleRecord & WithCreatedAt(Aws::Utils::DateTime &&value)
const SamplingRule & GetSamplingRule() const
AWS_XRAY_API SamplingRuleRecord & operator=(Aws::Utils::Json::JsonView jsonValue)
SamplingRuleRecord & WithSamplingRule(const SamplingRule &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
Aws::Utils::Json::JsonValue JsonValue