AWS SDK for C++  1.9.123
AWS SDK for C++
CreateScheduledAuditRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
13 #include <aws/iot/model/Tag.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace IoT
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateScheduledAudit"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
44  inline const AuditFrequency& GetFrequency() const{ return m_frequency; }
45 
51  inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
52 
58  inline void SetFrequency(const AuditFrequency& value) { m_frequencyHasBeenSet = true; m_frequency = value; }
59 
65  inline void SetFrequency(AuditFrequency&& value) { m_frequencyHasBeenSet = true; m_frequency = std::move(value); }
66 
72  inline CreateScheduledAuditRequest& WithFrequency(const AuditFrequency& value) { SetFrequency(value); return *this;}
73 
79  inline CreateScheduledAuditRequest& WithFrequency(AuditFrequency&& value) { SetFrequency(std::move(value)); return *this;}
80 
81 
89  inline const Aws::String& GetDayOfMonth() const{ return m_dayOfMonth; }
90 
98  inline bool DayOfMonthHasBeenSet() const { return m_dayOfMonthHasBeenSet; }
99 
107  inline void SetDayOfMonth(const Aws::String& value) { m_dayOfMonthHasBeenSet = true; m_dayOfMonth = value; }
108 
116  inline void SetDayOfMonth(Aws::String&& value) { m_dayOfMonthHasBeenSet = true; m_dayOfMonth = std::move(value); }
117 
125  inline void SetDayOfMonth(const char* value) { m_dayOfMonthHasBeenSet = true; m_dayOfMonth.assign(value); }
126 
134  inline CreateScheduledAuditRequest& WithDayOfMonth(const Aws::String& value) { SetDayOfMonth(value); return *this;}
135 
143  inline CreateScheduledAuditRequest& WithDayOfMonth(Aws::String&& value) { SetDayOfMonth(std::move(value)); return *this;}
144 
152  inline CreateScheduledAuditRequest& WithDayOfMonth(const char* value) { SetDayOfMonth(value); return *this;}
153 
154 
162  inline const DayOfWeek& GetDayOfWeek() const{ return m_dayOfWeek; }
163 
171  inline bool DayOfWeekHasBeenSet() const { return m_dayOfWeekHasBeenSet; }
172 
180  inline void SetDayOfWeek(const DayOfWeek& value) { m_dayOfWeekHasBeenSet = true; m_dayOfWeek = value; }
181 
189  inline void SetDayOfWeek(DayOfWeek&& value) { m_dayOfWeekHasBeenSet = true; m_dayOfWeek = std::move(value); }
190 
198  inline CreateScheduledAuditRequest& WithDayOfWeek(const DayOfWeek& value) { SetDayOfWeek(value); return *this;}
199 
207  inline CreateScheduledAuditRequest& WithDayOfWeek(DayOfWeek&& value) { SetDayOfWeek(std::move(value)); return *this;}
208 
209 
217  inline const Aws::Vector<Aws::String>& GetTargetCheckNames() const{ return m_targetCheckNames; }
218 
226  inline bool TargetCheckNamesHasBeenSet() const { return m_targetCheckNamesHasBeenSet; }
227 
235  inline void SetTargetCheckNames(const Aws::Vector<Aws::String>& value) { m_targetCheckNamesHasBeenSet = true; m_targetCheckNames = value; }
236 
244  inline void SetTargetCheckNames(Aws::Vector<Aws::String>&& value) { m_targetCheckNamesHasBeenSet = true; m_targetCheckNames = std::move(value); }
245 
253  inline CreateScheduledAuditRequest& WithTargetCheckNames(const Aws::Vector<Aws::String>& value) { SetTargetCheckNames(value); return *this;}
254 
262  inline CreateScheduledAuditRequest& WithTargetCheckNames(Aws::Vector<Aws::String>&& value) { SetTargetCheckNames(std::move(value)); return *this;}
263 
271  inline CreateScheduledAuditRequest& AddTargetCheckNames(const Aws::String& value) { m_targetCheckNamesHasBeenSet = true; m_targetCheckNames.push_back(value); return *this; }
272 
280  inline CreateScheduledAuditRequest& AddTargetCheckNames(Aws::String&& value) { m_targetCheckNamesHasBeenSet = true; m_targetCheckNames.push_back(std::move(value)); return *this; }
281 
289  inline CreateScheduledAuditRequest& AddTargetCheckNames(const char* value) { m_targetCheckNamesHasBeenSet = true; m_targetCheckNames.push_back(value); return *this; }
290 
291 
295  inline const Aws::String& GetScheduledAuditName() const{ return m_scheduledAuditName; }
296 
300  inline bool ScheduledAuditNameHasBeenSet() const { return m_scheduledAuditNameHasBeenSet; }
301 
305  inline void SetScheduledAuditName(const Aws::String& value) { m_scheduledAuditNameHasBeenSet = true; m_scheduledAuditName = value; }
306 
310  inline void SetScheduledAuditName(Aws::String&& value) { m_scheduledAuditNameHasBeenSet = true; m_scheduledAuditName = std::move(value); }
311 
315  inline void SetScheduledAuditName(const char* value) { m_scheduledAuditNameHasBeenSet = true; m_scheduledAuditName.assign(value); }
316 
320  inline CreateScheduledAuditRequest& WithScheduledAuditName(const Aws::String& value) { SetScheduledAuditName(value); return *this;}
321 
325  inline CreateScheduledAuditRequest& WithScheduledAuditName(Aws::String&& value) { SetScheduledAuditName(std::move(value)); return *this;}
326 
330  inline CreateScheduledAuditRequest& WithScheduledAuditName(const char* value) { SetScheduledAuditName(value); return *this;}
331 
332 
336  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
337 
341  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
342 
346  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
347 
351  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
352 
356  inline CreateScheduledAuditRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
357 
361  inline CreateScheduledAuditRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
362 
366  inline CreateScheduledAuditRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
367 
371  inline CreateScheduledAuditRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
372 
373  private:
374 
375  AuditFrequency m_frequency;
376  bool m_frequencyHasBeenSet;
377 
378  Aws::String m_dayOfMonth;
379  bool m_dayOfMonthHasBeenSet;
380 
381  DayOfWeek m_dayOfWeek;
382  bool m_dayOfWeekHasBeenSet;
383 
384  Aws::Vector<Aws::String> m_targetCheckNames;
385  bool m_targetCheckNamesHasBeenSet;
386 
387  Aws::String m_scheduledAuditName;
388  bool m_scheduledAuditNameHasBeenSet;
389 
390  Aws::Vector<Tag> m_tags;
391  bool m_tagsHasBeenSet;
392  };
393 
394 } // namespace Model
395 } // namespace IoT
396 } // namespace Aws
Aws::IoT::Model::CreateScheduledAuditRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateScheduledAuditRequest.h:346
Aws::IoT::Model::CreateScheduledAuditRequest::SetTargetCheckNames
void SetTargetCheckNames(const Aws::Vector< Aws::String > &value)
Definition: CreateScheduledAuditRequest.h:235
Aws::IoT::Model::CreateScheduledAuditRequest::WithTargetCheckNames
CreateScheduledAuditRequest & WithTargetCheckNames(const Aws::Vector< Aws::String > &value)
Definition: CreateScheduledAuditRequest.h:253
Aws::IoT::Model::CreateScheduledAuditRequest::WithTags
CreateScheduledAuditRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateScheduledAuditRequest.h:361
Aws::IoT::Model::CreateScheduledAuditRequest::GetScheduledAuditName
const Aws::String & GetScheduledAuditName() const
Definition: CreateScheduledAuditRequest.h:295
Aws::IoT::Model::CreateScheduledAuditRequest::WithFrequency
CreateScheduledAuditRequest & WithFrequency(AuditFrequency &&value)
Definition: CreateScheduledAuditRequest.h:79
Aws::IoT::Model::CreateScheduledAuditRequest::SetScheduledAuditName
void SetScheduledAuditName(Aws::String &&value)
Definition: CreateScheduledAuditRequest.h:310
Aws::IoT::Model::CreateScheduledAuditRequest::AddTags
CreateScheduledAuditRequest & AddTags(const Tag &value)
Definition: CreateScheduledAuditRequest.h:366
Aws::IoT::Model::CreateScheduledAuditRequest::SetTargetCheckNames
void SetTargetCheckNames(Aws::Vector< Aws::String > &&value)
Definition: CreateScheduledAuditRequest.h:244
Aws::IoT::Model::CreateScheduledAuditRequest::ScheduledAuditNameHasBeenSet
bool ScheduledAuditNameHasBeenSet() const
Definition: CreateScheduledAuditRequest.h:300
Aws::IoT::Model::CreateScheduledAuditRequest::GetFrequency
const AuditFrequency & GetFrequency() const
Definition: CreateScheduledAuditRequest.h:44
Aws::IoT::Model::CreateScheduledAuditRequest::SetDayOfMonth
void SetDayOfMonth(const Aws::String &value)
Definition: CreateScheduledAuditRequest.h:107
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::CreateScheduledAuditRequest::WithDayOfMonth
CreateScheduledAuditRequest & WithDayOfMonth(const char *value)
Definition: CreateScheduledAuditRequest.h:152
Aws::IoT::Model::CreateScheduledAuditRequest::CreateScheduledAuditRequest
CreateScheduledAuditRequest()
Aws::IoT::Model::CreateScheduledAuditRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateScheduledAuditRequest.h:34
AWSVector.h
Aws::IoT::Model::CreateScheduledAuditRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateScheduledAuditRequest.h:351
Aws::IoT::Model::CreateScheduledAuditRequest::AddTargetCheckNames
CreateScheduledAuditRequest & AddTargetCheckNames(const Aws::String &value)
Definition: CreateScheduledAuditRequest.h:271
Aws::IoT::Model::CreateScheduledAuditRequest::TargetCheckNamesHasBeenSet
bool TargetCheckNamesHasBeenSet() const
Definition: CreateScheduledAuditRequest.h:226
Aws::IoT::Model::CreateScheduledAuditRequest::SetScheduledAuditName
void SetScheduledAuditName(const char *value)
Definition: CreateScheduledAuditRequest.h:315
Aws::IoT::Model::CreateScheduledAuditRequest::FrequencyHasBeenSet
bool FrequencyHasBeenSet() const
Definition: CreateScheduledAuditRequest.h:51
Aws::IoT::Model::CreateScheduledAuditRequest::DayOfWeekHasBeenSet
bool DayOfWeekHasBeenSet() const
Definition: CreateScheduledAuditRequest.h:171
Aws::IoT::Model::CreateScheduledAuditRequest::WithDayOfMonth
CreateScheduledAuditRequest & WithDayOfMonth(Aws::String &&value)
Definition: CreateScheduledAuditRequest.h:143
Aws::IoT::Model::Tag
Definition: Tag.h:33
Aws::IoT::Model::CreateScheduledAuditRequest::GetTargetCheckNames
const Aws::Vector< Aws::String > & GetTargetCheckNames() const
Definition: CreateScheduledAuditRequest.h:217
Aws::IoT::Model::CreateScheduledAuditRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::CreateScheduledAuditRequest::WithTargetCheckNames
CreateScheduledAuditRequest & WithTargetCheckNames(Aws::Vector< Aws::String > &&value)
Definition: CreateScheduledAuditRequest.h:262
Aws::IoT::Model::CreateScheduledAuditRequest::AddTargetCheckNames
CreateScheduledAuditRequest & AddTargetCheckNames(const char *value)
Definition: CreateScheduledAuditRequest.h:289
Aws::IoT::Model::CreateScheduledAuditRequest::WithDayOfWeek
CreateScheduledAuditRequest & WithDayOfWeek(DayOfWeek &&value)
Definition: CreateScheduledAuditRequest.h:207
Aws::IoT::Model::CreateScheduledAuditRequest::SetDayOfMonth
void SetDayOfMonth(const char *value)
Definition: CreateScheduledAuditRequest.h:125
Aws::IoT::Model::CreateScheduledAuditRequest::WithScheduledAuditName
CreateScheduledAuditRequest & WithScheduledAuditName(const Aws::String &value)
Definition: CreateScheduledAuditRequest.h:320
Aws::IoT::Model::CreateScheduledAuditRequest::AddTargetCheckNames
CreateScheduledAuditRequest & AddTargetCheckNames(Aws::String &&value)
Definition: CreateScheduledAuditRequest.h:280
Aws::IoT::Model::CreateScheduledAuditRequest::WithScheduledAuditName
CreateScheduledAuditRequest & WithScheduledAuditName(const char *value)
Definition: CreateScheduledAuditRequest.h:330
Aws::IoT::Model::CreateScheduledAuditRequest::GetDayOfMonth
const Aws::String & GetDayOfMonth() const
Definition: CreateScheduledAuditRequest.h:89
Aws::IoT::Model::CreateScheduledAuditRequest::WithDayOfWeek
CreateScheduledAuditRequest & WithDayOfWeek(const DayOfWeek &value)
Definition: CreateScheduledAuditRequest.h:198
Aws::IoT::Model::CreateScheduledAuditRequest::WithFrequency
CreateScheduledAuditRequest & WithFrequency(const AuditFrequency &value)
Definition: CreateScheduledAuditRequest.h:72
AWSString.h
Aws::IoT::Model::CreateScheduledAuditRequest::SetDayOfMonth
void SetDayOfMonth(Aws::String &&value)
Definition: CreateScheduledAuditRequest.h:116
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::CreateScheduledAuditRequest::SetScheduledAuditName
void SetScheduledAuditName(const Aws::String &value)
Definition: CreateScheduledAuditRequest.h:305
Aws::IoT::Model::AuditFrequency
AuditFrequency
Definition: AuditFrequency.h:17
Aws::IoT::Model::CreateScheduledAuditRequest::AddTags
CreateScheduledAuditRequest & AddTags(Tag &&value)
Definition: CreateScheduledAuditRequest.h:371
Aws::IoT::Model::CreateScheduledAuditRequest::SetFrequency
void SetFrequency(AuditFrequency &&value)
Definition: CreateScheduledAuditRequest.h:65
Aws::IoT::Model::CreateScheduledAuditRequest::WithDayOfMonth
CreateScheduledAuditRequest & WithDayOfMonth(const Aws::String &value)
Definition: CreateScheduledAuditRequest.h:134
Aws::IoT::Model::CreateScheduledAuditRequest::GetDayOfWeek
const DayOfWeek & GetDayOfWeek() const
Definition: CreateScheduledAuditRequest.h:162
Aws::IoT::Model::CreateScheduledAuditRequest::WithScheduledAuditName
CreateScheduledAuditRequest & WithScheduledAuditName(Aws::String &&value)
Definition: CreateScheduledAuditRequest.h:325
AuditFrequency.h
DayOfWeek.h
Aws::IoT::Model::CreateScheduledAuditRequest
Definition: CreateScheduledAuditRequest.h:26
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::CreateScheduledAuditRequest::SetFrequency
void SetFrequency(const AuditFrequency &value)
Definition: CreateScheduledAuditRequest.h:58
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::CreateScheduledAuditRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateScheduledAuditRequest.h:336
Aws::IoT::Model::DayOfWeek
DayOfWeek
Definition: DayOfWeek.h:17
Aws::IoT::Model::CreateScheduledAuditRequest::DayOfMonthHasBeenSet
bool DayOfMonthHasBeenSet() const
Definition: CreateScheduledAuditRequest.h:98
IoTRequest.h
Aws::IoT::Model::CreateScheduledAuditRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateScheduledAuditRequest.h:341
Aws::IoT::Model::CreateScheduledAuditRequest::SetDayOfWeek
void SetDayOfWeek(const DayOfWeek &value)
Definition: CreateScheduledAuditRequest.h:180
Aws::IoT::Model::CreateScheduledAuditRequest::WithTags
CreateScheduledAuditRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateScheduledAuditRequest.h:356
Tag.h
IoT_EXPORTS.h
Aws::IoT::Model::CreateScheduledAuditRequest::SetDayOfWeek
void SetDayOfWeek(DayOfWeek &&value)
Definition: CreateScheduledAuditRequest.h:189