AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
51 inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); }
52 inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
53 inline RuleMetadata& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
54 inline RuleMetadata& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
55 inline RuleMetadata& WithRuleId(const char* value) { SetRuleId(value); return *this;}
57
59
62 inline const Aws::String& GetRuleName() const{ return m_ruleName; }
63 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
64 inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
65 inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
66 inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
67 inline RuleMetadata& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
68 inline RuleMetadata& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
69 inline RuleMetadata& WithRuleName(const char* value) { SetRuleName(value); return *this;}
71
73
76 inline const Aws::String& GetShortDescription() const{ return m_shortDescription; }
77 inline bool ShortDescriptionHasBeenSet() const { return m_shortDescriptionHasBeenSet; }
78 inline void SetShortDescription(const Aws::String& value) { m_shortDescriptionHasBeenSet = true; m_shortDescription = value; }
79 inline void SetShortDescription(Aws::String&& value) { m_shortDescriptionHasBeenSet = true; m_shortDescription = std::move(value); }
80 inline void SetShortDescription(const char* value) { m_shortDescriptionHasBeenSet = true; m_shortDescription.assign(value); }
81 inline RuleMetadata& WithShortDescription(const Aws::String& value) { SetShortDescription(value); return *this;}
82 inline RuleMetadata& WithShortDescription(Aws::String&& value) { SetShortDescription(std::move(value)); return *this;}
83 inline RuleMetadata& WithShortDescription(const char* value) { SetShortDescription(value); return *this;}
85
87
90 inline const Aws::String& GetLongDescription() const{ return m_longDescription; }
91 inline bool LongDescriptionHasBeenSet() const { return m_longDescriptionHasBeenSet; }
92 inline void SetLongDescription(const Aws::String& value) { m_longDescriptionHasBeenSet = true; m_longDescription = value; }
93 inline void SetLongDescription(Aws::String&& value) { m_longDescriptionHasBeenSet = true; m_longDescription = std::move(value); }
94 inline void SetLongDescription(const char* value) { m_longDescriptionHasBeenSet = true; m_longDescription.assign(value); }
95 inline RuleMetadata& WithLongDescription(const Aws::String& value) { SetLongDescription(value); return *this;}
96 inline RuleMetadata& WithLongDescription(Aws::String&& value) { SetLongDescription(std::move(value)); return *this;}
97 inline RuleMetadata& WithLongDescription(const char* value) { SetLongDescription(value); return *this;}
99
101
104 inline const Aws::Vector<Aws::String>& GetRuleTags() const{ return m_ruleTags; }
105 inline bool RuleTagsHasBeenSet() const { return m_ruleTagsHasBeenSet; }
106 inline void SetRuleTags(const Aws::Vector<Aws::String>& value) { m_ruleTagsHasBeenSet = true; m_ruleTags = value; }
107 inline void SetRuleTags(Aws::Vector<Aws::String>&& value) { m_ruleTagsHasBeenSet = true; m_ruleTags = std::move(value); }
108 inline RuleMetadata& WithRuleTags(const Aws::Vector<Aws::String>& value) { SetRuleTags(value); return *this;}
109 inline RuleMetadata& WithRuleTags(Aws::Vector<Aws::String>&& value) { SetRuleTags(std::move(value)); return *this;}
110 inline RuleMetadata& AddRuleTags(const Aws::String& value) { m_ruleTagsHasBeenSet = true; m_ruleTags.push_back(value); return *this; }
111 inline RuleMetadata& AddRuleTags(Aws::String&& value) { m_ruleTagsHasBeenSet = true; m_ruleTags.push_back(std::move(value)); return *this; }
112 inline RuleMetadata& AddRuleTags(const char* value) { m_ruleTagsHasBeenSet = true; m_ruleTags.push_back(value); return *this; }
114 private:
115
116 Aws::String m_ruleId;
117 bool m_ruleIdHasBeenSet = false;
118
119 Aws::String m_ruleName;
120 bool m_ruleNameHasBeenSet = false;
121
122 Aws::String m_shortDescription;
123 bool m_shortDescriptionHasBeenSet = false;
124
125 Aws::String m_longDescription;
126 bool m_longDescriptionHasBeenSet = false;
127
128 Aws::Vector<Aws::String> m_ruleTags;
129 bool m_ruleTagsHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace CodeGuruReviewer
134} // namespace Aws
RuleMetadata & WithRuleId(Aws::String &&value)
const Aws::String & GetRuleId() const
RuleMetadata & WithLongDescription(Aws::String &&value)
void SetRuleId(const Aws::String &value)
RuleMetadata & AddRuleTags(const Aws::String &value)
void SetRuleName(Aws::String &&value)
AWS_CODEGURUREVIEWER_API RuleMetadata(Aws::Utils::Json::JsonView jsonValue)
RuleMetadata & WithRuleName(const char *value)
RuleMetadata & WithShortDescription(Aws::String &&value)
const Aws::String & GetRuleName() const
RuleMetadata & WithLongDescription(const Aws::String &value)
void SetLongDescription(const char *value)
void SetLongDescription(const Aws::String &value)
RuleMetadata & WithRuleId(const char *value)
void SetShortDescription(const Aws::String &value)
RuleMetadata & AddRuleTags(Aws::String &&value)
const Aws::String & GetShortDescription() const
void SetRuleTags(const Aws::Vector< Aws::String > &value)
AWS_CODEGURUREVIEWER_API RuleMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleMetadata & WithRuleId(const Aws::String &value)
void SetLongDescription(Aws::String &&value)
void SetShortDescription(Aws::String &&value)
RuleMetadata & WithRuleName(Aws::String &&value)
const Aws::Vector< Aws::String > & GetRuleTags() const
AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const
RuleMetadata & WithShortDescription(const char *value)
RuleMetadata & WithLongDescription(const char *value)
RuleMetadata & AddRuleTags(const char *value)
void SetRuleTags(Aws::Vector< Aws::String > &&value)
RuleMetadata & WithRuleName(const Aws::String &value)
RuleMetadata & WithShortDescription(const Aws::String &value)
void SetRuleName(const Aws::String &value)
RuleMetadata & WithRuleTags(const Aws::Vector< Aws::String > &value)
void SetShortDescription(const char *value)
AWS_CODEGURUREVIEWER_API RuleMetadata()
const Aws::String & GetLongDescription() const
RuleMetadata & WithRuleTags(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue