AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssessmentTemplate.h
1
6#pragma once
7#include <aws/inspector/Inspector_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/inspector/model/Attribute.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Inspector
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_INSPECTOR_API AssessmentTemplate();
40 AWS_INSPECTOR_API AssessmentTemplate(Aws::Utils::Json::JsonView jsonValue);
42 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetArn() const{ return m_arn; }
50 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
51 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
52 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
53 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
54 inline AssessmentTemplate& WithArn(const Aws::String& value) { SetArn(value); return *this;}
55 inline AssessmentTemplate& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
56 inline AssessmentTemplate& WithArn(const char* value) { SetArn(value); return *this;}
58
60
63 inline const Aws::String& GetName() const{ return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
66 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 inline AssessmentTemplate& WithName(const Aws::String& value) { SetName(value); return *this;}
69 inline AssessmentTemplate& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
70 inline AssessmentTemplate& WithName(const char* value) { SetName(value); return *this;}
72
74
78 inline const Aws::String& GetAssessmentTargetArn() const{ return m_assessmentTargetArn; }
79 inline bool AssessmentTargetArnHasBeenSet() const { return m_assessmentTargetArnHasBeenSet; }
80 inline void SetAssessmentTargetArn(const Aws::String& value) { m_assessmentTargetArnHasBeenSet = true; m_assessmentTargetArn = value; }
81 inline void SetAssessmentTargetArn(Aws::String&& value) { m_assessmentTargetArnHasBeenSet = true; m_assessmentTargetArn = std::move(value); }
82 inline void SetAssessmentTargetArn(const char* value) { m_assessmentTargetArnHasBeenSet = true; m_assessmentTargetArn.assign(value); }
84 inline AssessmentTemplate& WithAssessmentTargetArn(Aws::String&& value) { SetAssessmentTargetArn(std::move(value)); return *this;}
85 inline AssessmentTemplate& WithAssessmentTargetArn(const char* value) { SetAssessmentTargetArn(value); return *this;}
87
89
94 inline int GetDurationInSeconds() const{ return m_durationInSeconds; }
95 inline bool DurationInSecondsHasBeenSet() const { return m_durationInSecondsHasBeenSet; }
96 inline void SetDurationInSeconds(int value) { m_durationInSecondsHasBeenSet = true; m_durationInSeconds = value; }
97 inline AssessmentTemplate& WithDurationInSeconds(int value) { SetDurationInSeconds(value); return *this;}
99
101
104 inline const Aws::Vector<Aws::String>& GetRulesPackageArns() const{ return m_rulesPackageArns; }
105 inline bool RulesPackageArnsHasBeenSet() const { return m_rulesPackageArnsHasBeenSet; }
106 inline void SetRulesPackageArns(const Aws::Vector<Aws::String>& value) { m_rulesPackageArnsHasBeenSet = true; m_rulesPackageArns = value; }
107 inline void SetRulesPackageArns(Aws::Vector<Aws::String>&& value) { m_rulesPackageArnsHasBeenSet = true; m_rulesPackageArns = std::move(value); }
109 inline AssessmentTemplate& WithRulesPackageArns(Aws::Vector<Aws::String>&& value) { SetRulesPackageArns(std::move(value)); return *this;}
110 inline AssessmentTemplate& AddRulesPackageArns(const Aws::String& value) { m_rulesPackageArnsHasBeenSet = true; m_rulesPackageArns.push_back(value); return *this; }
111 inline AssessmentTemplate& AddRulesPackageArns(Aws::String&& value) { m_rulesPackageArnsHasBeenSet = true; m_rulesPackageArns.push_back(std::move(value)); return *this; }
112 inline AssessmentTemplate& AddRulesPackageArns(const char* value) { m_rulesPackageArnsHasBeenSet = true; m_rulesPackageArns.push_back(value); return *this; }
114
116
120 inline const Aws::Vector<Attribute>& GetUserAttributesForFindings() const{ return m_userAttributesForFindings; }
121 inline bool UserAttributesForFindingsHasBeenSet() const { return m_userAttributesForFindingsHasBeenSet; }
122 inline void SetUserAttributesForFindings(const Aws::Vector<Attribute>& value) { m_userAttributesForFindingsHasBeenSet = true; m_userAttributesForFindings = value; }
123 inline void SetUserAttributesForFindings(Aws::Vector<Attribute>&& value) { m_userAttributesForFindingsHasBeenSet = true; m_userAttributesForFindings = std::move(value); }
126 inline AssessmentTemplate& AddUserAttributesForFindings(const Attribute& value) { m_userAttributesForFindingsHasBeenSet = true; m_userAttributesForFindings.push_back(value); return *this; }
127 inline AssessmentTemplate& AddUserAttributesForFindings(Attribute&& value) { m_userAttributesForFindingsHasBeenSet = true; m_userAttributesForFindings.push_back(std::move(value)); return *this; }
129
131
136 inline const Aws::String& GetLastAssessmentRunArn() const{ return m_lastAssessmentRunArn; }
137 inline bool LastAssessmentRunArnHasBeenSet() const { return m_lastAssessmentRunArnHasBeenSet; }
138 inline void SetLastAssessmentRunArn(const Aws::String& value) { m_lastAssessmentRunArnHasBeenSet = true; m_lastAssessmentRunArn = value; }
139 inline void SetLastAssessmentRunArn(Aws::String&& value) { m_lastAssessmentRunArnHasBeenSet = true; m_lastAssessmentRunArn = std::move(value); }
140 inline void SetLastAssessmentRunArn(const char* value) { m_lastAssessmentRunArnHasBeenSet = true; m_lastAssessmentRunArn.assign(value); }
142 inline AssessmentTemplate& WithLastAssessmentRunArn(Aws::String&& value) { SetLastAssessmentRunArn(std::move(value)); return *this;}
143 inline AssessmentTemplate& WithLastAssessmentRunArn(const char* value) { SetLastAssessmentRunArn(value); return *this;}
145
147
151 inline int GetAssessmentRunCount() const{ return m_assessmentRunCount; }
152 inline bool AssessmentRunCountHasBeenSet() const { return m_assessmentRunCountHasBeenSet; }
153 inline void SetAssessmentRunCount(int value) { m_assessmentRunCountHasBeenSet = true; m_assessmentRunCount = value; }
154 inline AssessmentTemplate& WithAssessmentRunCount(int value) { SetAssessmentRunCount(value); return *this;}
156
158
161 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
162 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
163 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
164 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
165 inline AssessmentTemplate& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
166 inline AssessmentTemplate& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
168 private:
169
170 Aws::String m_arn;
171 bool m_arnHasBeenSet = false;
172
173 Aws::String m_name;
174 bool m_nameHasBeenSet = false;
175
176 Aws::String m_assessmentTargetArn;
177 bool m_assessmentTargetArnHasBeenSet = false;
178
179 int m_durationInSeconds;
180 bool m_durationInSecondsHasBeenSet = false;
181
182 Aws::Vector<Aws::String> m_rulesPackageArns;
183 bool m_rulesPackageArnsHasBeenSet = false;
184
185 Aws::Vector<Attribute> m_userAttributesForFindings;
186 bool m_userAttributesForFindingsHasBeenSet = false;
187
188 Aws::String m_lastAssessmentRunArn;
189 bool m_lastAssessmentRunArnHasBeenSet = false;
190
191 int m_assessmentRunCount;
192 bool m_assessmentRunCountHasBeenSet = false;
193
194 Aws::Utils::DateTime m_createdAt;
195 bool m_createdAtHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace Inspector
200} // namespace Aws
AssessmentTemplate & WithAssessmentTargetArn(const Aws::String &value)
void SetAssessmentTargetArn(const Aws::String &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
const Aws::Vector< Attribute > & GetUserAttributesForFindings() const
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
AssessmentTemplate & WithName(const Aws::String &value)
AssessmentTemplate & WithName(Aws::String &&value)
void SetName(const Aws::String &value)
AssessmentTemplate & WithLastAssessmentRunArn(const char *value)
AssessmentTemplate & WithName(const char *value)
void SetRulesPackageArns(Aws::Vector< Aws::String > &&value)
AssessmentTemplate & WithLastAssessmentRunArn(const Aws::String &value)
AssessmentTemplate & AddUserAttributesForFindings(Attribute &&value)
AssessmentTemplate & WithCreatedAt(const Aws::Utils::DateTime &value)
const Aws::String & GetAssessmentTargetArn() const
AWS_INSPECTOR_API AssessmentTemplate & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR_API AssessmentTemplate(Aws::Utils::Json::JsonView jsonValue)
AssessmentTemplate & WithLastAssessmentRunArn(Aws::String &&value)
void SetArn(const Aws::String &value)
AssessmentTemplate & WithArn(const Aws::String &value)
AssessmentTemplate & AddRulesPackageArns(const char *value)
void SetLastAssessmentRunArn(Aws::String &&value)
const Aws::Vector< Aws::String > & GetRulesPackageArns() const
void SetUserAttributesForFindings(const Aws::Vector< Attribute > &value)
void SetUserAttributesForFindings(Aws::Vector< Attribute > &&value)
AssessmentTemplate & WithCreatedAt(Aws::Utils::DateTime &&value)
AssessmentTemplate & AddRulesPackageArns(const Aws::String &value)
void SetLastAssessmentRunArn(const Aws::String &value)
AssessmentTemplate & WithUserAttributesForFindings(const Aws::Vector< Attribute > &value)
AssessmentTemplate & WithUserAttributesForFindings(Aws::Vector< Attribute > &&value)
AssessmentTemplate & WithArn(const char *value)
AssessmentTemplate & WithAssessmentRunCount(int value)
const Aws::String & GetLastAssessmentRunArn() const
AssessmentTemplate & WithRulesPackageArns(const Aws::Vector< Aws::String > &value)
AssessmentTemplate & WithAssessmentTargetArn(Aws::String &&value)
AssessmentTemplate & AddUserAttributesForFindings(const Attribute &value)
AssessmentTemplate & WithRulesPackageArns(Aws::Vector< Aws::String > &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AssessmentTemplate & WithAssessmentTargetArn(const char *value)
AssessmentTemplate & WithDurationInSeconds(int value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
void SetAssessmentTargetArn(Aws::String &&value)
void SetRulesPackageArns(const Aws::Vector< Aws::String > &value)
AssessmentTemplate & WithArn(Aws::String &&value)
AssessmentTemplate & AddRulesPackageArns(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