AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
IndexingRule.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/xray/XRay_EXPORTS.h>
10#include <aws/xray/model/IndexingRuleValue.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace XRay {
22namespace Model {
23
32 public:
33 AWS_XRAY_API IndexingRule() = default;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 IndexingRule& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
61 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
62 template <typename ModifiedAtT = Aws::Utils::DateTime>
63 void SetModifiedAt(ModifiedAtT&& value) {
64 m_modifiedAtHasBeenSet = true;
65 m_modifiedAt = std::forward<ModifiedAtT>(value);
66 }
67 template <typename ModifiedAtT = Aws::Utils::DateTime>
68 IndexingRule& WithModifiedAt(ModifiedAtT&& value) {
69 SetModifiedAt(std::forward<ModifiedAtT>(value));
70 return *this;
71 }
73
75
78 inline const IndexingRuleValue& GetRule() const { return m_rule; }
79 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
80 template <typename RuleT = IndexingRuleValue>
81 void SetRule(RuleT&& value) {
82 m_ruleHasBeenSet = true;
83 m_rule = std::forward<RuleT>(value);
84 }
85 template <typename RuleT = IndexingRuleValue>
86 IndexingRule& WithRule(RuleT&& value) {
87 SetRule(std::forward<RuleT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_name;
93
94 Aws::Utils::DateTime m_modifiedAt{};
95
96 IndexingRuleValue m_rule;
97 bool m_nameHasBeenSet = false;
98 bool m_modifiedAtHasBeenSet = false;
99 bool m_ruleHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace XRay
104} // namespace Aws
void SetName(NameT &&value)
const IndexingRuleValue & GetRule() const
AWS_XRAY_API IndexingRule(Aws::Utils::Json::JsonView jsonValue)
AWS_XRAY_API IndexingRule()=default
const Aws::String & GetName() const
void SetModifiedAt(ModifiedAtT &&value)
void SetRule(RuleT &&value)
AWS_XRAY_API IndexingRule & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetModifiedAt() const
IndexingRule & WithModifiedAt(ModifiedAtT &&value)
IndexingRule & WithRule(RuleT &&value)
IndexingRule & WithName(NameT &&value)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue