AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
RuleMetadata.h
1
6#pragma once
7#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeGuruReviewer {
21namespace Model {
22
32 public:
33 AWS_CODEGURUREVIEWER_API RuleMetadata() = default;
34 AWS_CODEGURUREVIEWER_API RuleMetadata(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CODEGURUREVIEWER_API RuleMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetRuleId() const { return m_ruleId; }
43 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
44 template <typename RuleIdT = Aws::String>
45 void SetRuleId(RuleIdT&& value) {
46 m_ruleIdHasBeenSet = true;
47 m_ruleId = std::forward<RuleIdT>(value);
48 }
49 template <typename RuleIdT = Aws::String>
50 RuleMetadata& WithRuleId(RuleIdT&& value) {
51 SetRuleId(std::forward<RuleIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetRuleName() const { return m_ruleName; }
61 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
62 template <typename RuleNameT = Aws::String>
63 void SetRuleName(RuleNameT&& value) {
64 m_ruleNameHasBeenSet = true;
65 m_ruleName = std::forward<RuleNameT>(value);
66 }
67 template <typename RuleNameT = Aws::String>
68 RuleMetadata& WithRuleName(RuleNameT&& value) {
69 SetRuleName(std::forward<RuleNameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetShortDescription() const { return m_shortDescription; }
79 inline bool ShortDescriptionHasBeenSet() const { return m_shortDescriptionHasBeenSet; }
80 template <typename ShortDescriptionT = Aws::String>
81 void SetShortDescription(ShortDescriptionT&& value) {
82 m_shortDescriptionHasBeenSet = true;
83 m_shortDescription = std::forward<ShortDescriptionT>(value);
84 }
85 template <typename ShortDescriptionT = Aws::String>
86 RuleMetadata& WithShortDescription(ShortDescriptionT&& value) {
87 SetShortDescription(std::forward<ShortDescriptionT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetLongDescription() const { return m_longDescription; }
97 inline bool LongDescriptionHasBeenSet() const { return m_longDescriptionHasBeenSet; }
98 template <typename LongDescriptionT = Aws::String>
99 void SetLongDescription(LongDescriptionT&& value) {
100 m_longDescriptionHasBeenSet = true;
101 m_longDescription = std::forward<LongDescriptionT>(value);
102 }
103 template <typename LongDescriptionT = Aws::String>
104 RuleMetadata& WithLongDescription(LongDescriptionT&& value) {
105 SetLongDescription(std::forward<LongDescriptionT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Vector<Aws::String>& GetRuleTags() const { return m_ruleTags; }
115 inline bool RuleTagsHasBeenSet() const { return m_ruleTagsHasBeenSet; }
116 template <typename RuleTagsT = Aws::Vector<Aws::String>>
117 void SetRuleTags(RuleTagsT&& value) {
118 m_ruleTagsHasBeenSet = true;
119 m_ruleTags = std::forward<RuleTagsT>(value);
120 }
121 template <typename RuleTagsT = Aws::Vector<Aws::String>>
122 RuleMetadata& WithRuleTags(RuleTagsT&& value) {
123 SetRuleTags(std::forward<RuleTagsT>(value));
124 return *this;
125 }
126 template <typename RuleTagsT = Aws::String>
127 RuleMetadata& AddRuleTags(RuleTagsT&& value) {
128 m_ruleTagsHasBeenSet = true;
129 m_ruleTags.emplace_back(std::forward<RuleTagsT>(value));
130 return *this;
131 }
133 private:
134 Aws::String m_ruleId;
135
136 Aws::String m_ruleName;
137
138 Aws::String m_shortDescription;
139
140 Aws::String m_longDescription;
141
142 Aws::Vector<Aws::String> m_ruleTags;
143 bool m_ruleIdHasBeenSet = false;
144 bool m_ruleNameHasBeenSet = false;
145 bool m_shortDescriptionHasBeenSet = false;
146 bool m_longDescriptionHasBeenSet = false;
147 bool m_ruleTagsHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace CodeGuruReviewer
152} // namespace Aws
const Aws::String & GetRuleId() const
AWS_CODEGURUREVIEWER_API RuleMetadata(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEGURUREVIEWER_API RuleMetadata()=default
const Aws::String & GetRuleName() const
void SetLongDescription(LongDescriptionT &&value)
const Aws::String & GetShortDescription() const
AWS_CODEGURUREVIEWER_API RuleMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleMetadata & WithRuleTags(RuleTagsT &&value)
RuleMetadata & WithRuleId(RuleIdT &&value)
RuleMetadata & WithShortDescription(ShortDescriptionT &&value)
RuleMetadata & WithRuleName(RuleNameT &&value)
void SetShortDescription(ShortDescriptionT &&value)
RuleMetadata & AddRuleTags(RuleTagsT &&value)
const Aws::Vector< Aws::String > & GetRuleTags() const
AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const
RuleMetadata & WithLongDescription(LongDescriptionT &&value)
const Aws::String & GetLongDescription() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue