AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#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 CodeGuruReviewer
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_CODEGURUREVIEWER_API RuleMetadata() = default;
39 AWS_CODEGURUREVIEWER_API RuleMetadata(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEGURUREVIEWER_API RuleMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetRuleId() const { return m_ruleId; }
49 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
50 template<typename RuleIdT = Aws::String>
51 void SetRuleId(RuleIdT&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::forward<RuleIdT>(value); }
52 template<typename RuleIdT = Aws::String>
53 RuleMetadata& WithRuleId(RuleIdT&& value) { SetRuleId(std::forward<RuleIdT>(value)); return *this;}
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) { m_ruleNameHasBeenSet = true; m_ruleName = std::forward<RuleNameT>(value); }
64 template<typename RuleNameT = Aws::String>
65 RuleMetadata& WithRuleName(RuleNameT&& value) { SetRuleName(std::forward<RuleNameT>(value)); return *this;}
67
69
72 inline const Aws::String& GetShortDescription() const { return m_shortDescription; }
73 inline bool ShortDescriptionHasBeenSet() const { return m_shortDescriptionHasBeenSet; }
74 template<typename ShortDescriptionT = Aws::String>
75 void SetShortDescription(ShortDescriptionT&& value) { m_shortDescriptionHasBeenSet = true; m_shortDescription = std::forward<ShortDescriptionT>(value); }
76 template<typename ShortDescriptionT = Aws::String>
77 RuleMetadata& WithShortDescription(ShortDescriptionT&& value) { SetShortDescription(std::forward<ShortDescriptionT>(value)); return *this;}
79
81
84 inline const Aws::String& GetLongDescription() const { return m_longDescription; }
85 inline bool LongDescriptionHasBeenSet() const { return m_longDescriptionHasBeenSet; }
86 template<typename LongDescriptionT = Aws::String>
87 void SetLongDescription(LongDescriptionT&& value) { m_longDescriptionHasBeenSet = true; m_longDescription = std::forward<LongDescriptionT>(value); }
88 template<typename LongDescriptionT = Aws::String>
89 RuleMetadata& WithLongDescription(LongDescriptionT&& value) { SetLongDescription(std::forward<LongDescriptionT>(value)); return *this;}
91
93
96 inline const Aws::Vector<Aws::String>& GetRuleTags() const { return m_ruleTags; }
97 inline bool RuleTagsHasBeenSet() const { return m_ruleTagsHasBeenSet; }
98 template<typename RuleTagsT = Aws::Vector<Aws::String>>
99 void SetRuleTags(RuleTagsT&& value) { m_ruleTagsHasBeenSet = true; m_ruleTags = std::forward<RuleTagsT>(value); }
100 template<typename RuleTagsT = Aws::Vector<Aws::String>>
101 RuleMetadata& WithRuleTags(RuleTagsT&& value) { SetRuleTags(std::forward<RuleTagsT>(value)); return *this;}
102 template<typename RuleTagsT = Aws::String>
103 RuleMetadata& AddRuleTags(RuleTagsT&& value) { m_ruleTagsHasBeenSet = true; m_ruleTags.emplace_back(std::forward<RuleTagsT>(value)); return *this; }
105 private:
106
107 Aws::String m_ruleId;
108 bool m_ruleIdHasBeenSet = false;
109
110 Aws::String m_ruleName;
111 bool m_ruleNameHasBeenSet = false;
112
113 Aws::String m_shortDescription;
114 bool m_shortDescriptionHasBeenSet = false;
115
116 Aws::String m_longDescription;
117 bool m_longDescriptionHasBeenSet = false;
118
119 Aws::Vector<Aws::String> m_ruleTags;
120 bool m_ruleTagsHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace CodeGuruReviewer
125} // 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