AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
CreateScheduledAuditRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iot/IoTRequest.h>
10#include <aws/iot/IoT_EXPORTS.h>
11#include <aws/iot/model/AuditFrequency.h>
12#include <aws/iot/model/DayOfWeek.h>
13#include <aws/iot/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace IoT {
19namespace Model {
20
24 public:
25 AWS_IOT_API CreateScheduledAuditRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateScheduledAudit"; }
32
33 AWS_IOT_API Aws::String SerializePayload() const override;
34
36
41 inline AuditFrequency GetFrequency() const { return m_frequency; }
42 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
43 inline void SetFrequency(AuditFrequency value) {
44 m_frequencyHasBeenSet = true;
45 m_frequency = value;
46 }
48 SetFrequency(value);
49 return *this;
50 }
52
54
61 inline const Aws::String& GetDayOfMonth() const { return m_dayOfMonth; }
62 inline bool DayOfMonthHasBeenSet() const { return m_dayOfMonthHasBeenSet; }
63 template <typename DayOfMonthT = Aws::String>
64 void SetDayOfMonth(DayOfMonthT&& value) {
65 m_dayOfMonthHasBeenSet = true;
66 m_dayOfMonth = std::forward<DayOfMonthT>(value);
67 }
68 template <typename DayOfMonthT = Aws::String>
70 SetDayOfMonth(std::forward<DayOfMonthT>(value));
71 return *this;
72 }
74
76
83 inline DayOfWeek GetDayOfWeek() const { return m_dayOfWeek; }
84 inline bool DayOfWeekHasBeenSet() const { return m_dayOfWeekHasBeenSet; }
85 inline void SetDayOfWeek(DayOfWeek value) {
86 m_dayOfWeekHasBeenSet = true;
87 m_dayOfWeek = value;
88 }
90 SetDayOfWeek(value);
91 return *this;
92 }
94
96
103 inline const Aws::Vector<Aws::String>& GetTargetCheckNames() const { return m_targetCheckNames; }
104 inline bool TargetCheckNamesHasBeenSet() const { return m_targetCheckNamesHasBeenSet; }
105 template <typename TargetCheckNamesT = Aws::Vector<Aws::String>>
106 void SetTargetCheckNames(TargetCheckNamesT&& value) {
107 m_targetCheckNamesHasBeenSet = true;
108 m_targetCheckNames = std::forward<TargetCheckNamesT>(value);
109 }
110 template <typename TargetCheckNamesT = Aws::Vector<Aws::String>>
112 SetTargetCheckNames(std::forward<TargetCheckNamesT>(value));
113 return *this;
114 }
115 template <typename TargetCheckNamesT = Aws::String>
117 m_targetCheckNamesHasBeenSet = true;
118 m_targetCheckNames.emplace_back(std::forward<TargetCheckNamesT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::String& GetScheduledAuditName() const { return m_scheduledAuditName; }
128 inline bool ScheduledAuditNameHasBeenSet() const { return m_scheduledAuditNameHasBeenSet; }
129 template <typename ScheduledAuditNameT = Aws::String>
130 void SetScheduledAuditName(ScheduledAuditNameT&& value) {
131 m_scheduledAuditNameHasBeenSet = true;
132 m_scheduledAuditName = std::forward<ScheduledAuditNameT>(value);
133 }
134 template <typename ScheduledAuditNameT = Aws::String>
136 SetScheduledAuditName(std::forward<ScheduledAuditNameT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
146 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
147 template <typename TagsT = Aws::Vector<Tag>>
148 void SetTags(TagsT&& value) {
149 m_tagsHasBeenSet = true;
150 m_tags = std::forward<TagsT>(value);
151 }
152 template <typename TagsT = Aws::Vector<Tag>>
154 SetTags(std::forward<TagsT>(value));
155 return *this;
156 }
157 template <typename TagsT = Tag>
159 m_tagsHasBeenSet = true;
160 m_tags.emplace_back(std::forward<TagsT>(value));
161 return *this;
162 }
164 private:
166 bool m_frequencyHasBeenSet = false;
167
168 Aws::String m_dayOfMonth;
169 bool m_dayOfMonthHasBeenSet = false;
170
171 DayOfWeek m_dayOfWeek{DayOfWeek::NOT_SET};
172 bool m_dayOfWeekHasBeenSet = false;
173
174 Aws::Vector<Aws::String> m_targetCheckNames;
175 bool m_targetCheckNamesHasBeenSet = false;
176
177 Aws::String m_scheduledAuditName;
178 bool m_scheduledAuditNameHasBeenSet = false;
179
180 Aws::Vector<Tag> m_tags;
181 bool m_tagsHasBeenSet = false;
182};
183
184} // namespace Model
185} // namespace IoT
186} // namespace Aws
const Aws::Vector< Aws::String > & GetTargetCheckNames() const
virtual const char * GetServiceRequestName() const override
CreateScheduledAuditRequest & WithTags(TagsT &&value)
CreateScheduledAuditRequest & WithFrequency(AuditFrequency value)
AWS_IOT_API Aws::String SerializePayload() const override
CreateScheduledAuditRequest & WithScheduledAuditName(ScheduledAuditNameT &&value)
CreateScheduledAuditRequest & WithDayOfMonth(DayOfMonthT &&value)
CreateScheduledAuditRequest & WithDayOfWeek(DayOfWeek value)
CreateScheduledAuditRequest & AddTags(TagsT &&value)
AWS_IOT_API CreateScheduledAuditRequest()=default
CreateScheduledAuditRequest & AddTargetCheckNames(TargetCheckNamesT &&value)
CreateScheduledAuditRequest & WithTargetCheckNames(TargetCheckNamesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector