AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateScheduledAuditRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/iot/model/AuditFrequency.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/iot/model/DayOfWeek.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/iot/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace IoT
19{
20namespace 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_IOT_API Aws::String SerializePayload() const override;
37
38
40
45 inline const AuditFrequency& GetFrequency() const{ return m_frequency; }
46 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
47 inline void SetFrequency(const AuditFrequency& value) { m_frequencyHasBeenSet = true; m_frequency = value; }
48 inline void SetFrequency(AuditFrequency&& value) { m_frequencyHasBeenSet = true; m_frequency = std::move(value); }
49 inline CreateScheduledAuditRequest& WithFrequency(const AuditFrequency& value) { SetFrequency(value); return *this;}
50 inline CreateScheduledAuditRequest& WithFrequency(AuditFrequency&& value) { SetFrequency(std::move(value)); return *this;}
52
54
61 inline const Aws::String& GetDayOfMonth() const{ return m_dayOfMonth; }
62 inline bool DayOfMonthHasBeenSet() const { return m_dayOfMonthHasBeenSet; }
63 inline void SetDayOfMonth(const Aws::String& value) { m_dayOfMonthHasBeenSet = true; m_dayOfMonth = value; }
64 inline void SetDayOfMonth(Aws::String&& value) { m_dayOfMonthHasBeenSet = true; m_dayOfMonth = std::move(value); }
65 inline void SetDayOfMonth(const char* value) { m_dayOfMonthHasBeenSet = true; m_dayOfMonth.assign(value); }
66 inline CreateScheduledAuditRequest& WithDayOfMonth(const Aws::String& value) { SetDayOfMonth(value); return *this;}
67 inline CreateScheduledAuditRequest& WithDayOfMonth(Aws::String&& value) { SetDayOfMonth(std::move(value)); return *this;}
68 inline CreateScheduledAuditRequest& WithDayOfMonth(const char* value) { SetDayOfMonth(value); return *this;}
70
72
79 inline const DayOfWeek& GetDayOfWeek() const{ return m_dayOfWeek; }
80 inline bool DayOfWeekHasBeenSet() const { return m_dayOfWeekHasBeenSet; }
81 inline void SetDayOfWeek(const DayOfWeek& value) { m_dayOfWeekHasBeenSet = true; m_dayOfWeek = value; }
82 inline void SetDayOfWeek(DayOfWeek&& value) { m_dayOfWeekHasBeenSet = true; m_dayOfWeek = std::move(value); }
83 inline CreateScheduledAuditRequest& WithDayOfWeek(const DayOfWeek& value) { SetDayOfWeek(value); return *this;}
84 inline CreateScheduledAuditRequest& WithDayOfWeek(DayOfWeek&& value) { SetDayOfWeek(std::move(value)); return *this;}
86
88
95 inline const Aws::Vector<Aws::String>& GetTargetCheckNames() const{ return m_targetCheckNames; }
96 inline bool TargetCheckNamesHasBeenSet() const { return m_targetCheckNamesHasBeenSet; }
97 inline void SetTargetCheckNames(const Aws::Vector<Aws::String>& value) { m_targetCheckNamesHasBeenSet = true; m_targetCheckNames = value; }
98 inline void SetTargetCheckNames(Aws::Vector<Aws::String>&& value) { m_targetCheckNamesHasBeenSet = true; m_targetCheckNames = std::move(value); }
101 inline CreateScheduledAuditRequest& AddTargetCheckNames(const Aws::String& value) { m_targetCheckNamesHasBeenSet = true; m_targetCheckNames.push_back(value); return *this; }
102 inline CreateScheduledAuditRequest& AddTargetCheckNames(Aws::String&& value) { m_targetCheckNamesHasBeenSet = true; m_targetCheckNames.push_back(std::move(value)); return *this; }
103 inline CreateScheduledAuditRequest& AddTargetCheckNames(const char* value) { m_targetCheckNamesHasBeenSet = true; m_targetCheckNames.push_back(value); return *this; }
105
107
110 inline const Aws::String& GetScheduledAuditName() const{ return m_scheduledAuditName; }
111 inline bool ScheduledAuditNameHasBeenSet() const { return m_scheduledAuditNameHasBeenSet; }
112 inline void SetScheduledAuditName(const Aws::String& value) { m_scheduledAuditNameHasBeenSet = true; m_scheduledAuditName = value; }
113 inline void SetScheduledAuditName(Aws::String&& value) { m_scheduledAuditNameHasBeenSet = true; m_scheduledAuditName = std::move(value); }
114 inline void SetScheduledAuditName(const char* value) { m_scheduledAuditNameHasBeenSet = true; m_scheduledAuditName.assign(value); }
116 inline CreateScheduledAuditRequest& WithScheduledAuditName(Aws::String&& value) { SetScheduledAuditName(std::move(value)); return *this;}
117 inline CreateScheduledAuditRequest& WithScheduledAuditName(const char* value) { SetScheduledAuditName(value); return *this;}
119
121
124 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
125 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
126 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
127 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
128 inline CreateScheduledAuditRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
129 inline CreateScheduledAuditRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
130 inline CreateScheduledAuditRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
131 inline CreateScheduledAuditRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
133 private:
134
135 AuditFrequency m_frequency;
136 bool m_frequencyHasBeenSet = false;
137
138 Aws::String m_dayOfMonth;
139 bool m_dayOfMonthHasBeenSet = false;
140
141 DayOfWeek m_dayOfWeek;
142 bool m_dayOfWeekHasBeenSet = false;
143
144 Aws::Vector<Aws::String> m_targetCheckNames;
145 bool m_targetCheckNamesHasBeenSet = false;
146
147 Aws::String m_scheduledAuditName;
148 bool m_scheduledAuditNameHasBeenSet = false;
149
150 Aws::Vector<Tag> m_tags;
151 bool m_tagsHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace IoT
156} // namespace Aws
const Aws::Vector< Aws::String > & GetTargetCheckNames() const
virtual const char * GetServiceRequestName() const override
void SetTargetCheckNames(Aws::Vector< Aws::String > &&value)
CreateScheduledAuditRequest & WithScheduledAuditName(Aws::String &&value)
CreateScheduledAuditRequest & AddTags(const Tag &value)
void SetTargetCheckNames(const Aws::Vector< Aws::String > &value)
CreateScheduledAuditRequest & AddTargetCheckNames(Aws::String &&value)
CreateScheduledAuditRequest & WithTags(const Aws::Vector< Tag > &value)
CreateScheduledAuditRequest & WithDayOfMonth(const char *value)
AWS_IOT_API Aws::String SerializePayload() const override
CreateScheduledAuditRequest & WithDayOfMonth(Aws::String &&value)
CreateScheduledAuditRequest & WithDayOfWeek(DayOfWeek &&value)
CreateScheduledAuditRequest & WithFrequency(const AuditFrequency &value)
CreateScheduledAuditRequest & AddTags(Tag &&value)
CreateScheduledAuditRequest & WithDayOfMonth(const Aws::String &value)
CreateScheduledAuditRequest & WithTargetCheckNames(const Aws::Vector< Aws::String > &value)
CreateScheduledAuditRequest & WithTags(Aws::Vector< Tag > &&value)
CreateScheduledAuditRequest & WithScheduledAuditName(const char *value)
CreateScheduledAuditRequest & WithScheduledAuditName(const Aws::String &value)
CreateScheduledAuditRequest & AddTargetCheckNames(const char *value)
CreateScheduledAuditRequest & WithFrequency(AuditFrequency &&value)
CreateScheduledAuditRequest & WithTargetCheckNames(Aws::Vector< Aws::String > &&value)
CreateScheduledAuditRequest & AddTargetCheckNames(const Aws::String &value)
CreateScheduledAuditRequest & WithDayOfWeek(const DayOfWeek &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector