AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
28 AWS_IOT_API CreateScheduledAuditRequest() = default;
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 AuditFrequency GetFrequency() const { return m_frequency; }
46 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
47 inline void SetFrequency(AuditFrequency value) { m_frequencyHasBeenSet = true; m_frequency = value; }
50
52
59 inline const Aws::String& GetDayOfMonth() const { return m_dayOfMonth; }
60 inline bool DayOfMonthHasBeenSet() const { return m_dayOfMonthHasBeenSet; }
61 template<typename DayOfMonthT = Aws::String>
62 void SetDayOfMonth(DayOfMonthT&& value) { m_dayOfMonthHasBeenSet = true; m_dayOfMonth = std::forward<DayOfMonthT>(value); }
63 template<typename DayOfMonthT = Aws::String>
64 CreateScheduledAuditRequest& WithDayOfMonth(DayOfMonthT&& value) { SetDayOfMonth(std::forward<DayOfMonthT>(value)); return *this;}
66
68
75 inline DayOfWeek GetDayOfWeek() const { return m_dayOfWeek; }
76 inline bool DayOfWeekHasBeenSet() const { return m_dayOfWeekHasBeenSet; }
77 inline void SetDayOfWeek(DayOfWeek value) { m_dayOfWeekHasBeenSet = true; m_dayOfWeek = value; }
78 inline CreateScheduledAuditRequest& WithDayOfWeek(DayOfWeek value) { SetDayOfWeek(value); return *this;}
80
82
89 inline const Aws::Vector<Aws::String>& GetTargetCheckNames() const { return m_targetCheckNames; }
90 inline bool TargetCheckNamesHasBeenSet() const { return m_targetCheckNamesHasBeenSet; }
91 template<typename TargetCheckNamesT = Aws::Vector<Aws::String>>
92 void SetTargetCheckNames(TargetCheckNamesT&& value) { m_targetCheckNamesHasBeenSet = true; m_targetCheckNames = std::forward<TargetCheckNamesT>(value); }
93 template<typename TargetCheckNamesT = Aws::Vector<Aws::String>>
94 CreateScheduledAuditRequest& WithTargetCheckNames(TargetCheckNamesT&& value) { SetTargetCheckNames(std::forward<TargetCheckNamesT>(value)); return *this;}
95 template<typename TargetCheckNamesT = Aws::String>
96 CreateScheduledAuditRequest& AddTargetCheckNames(TargetCheckNamesT&& value) { m_targetCheckNamesHasBeenSet = true; m_targetCheckNames.emplace_back(std::forward<TargetCheckNamesT>(value)); return *this; }
98
100
103 inline const Aws::String& GetScheduledAuditName() const { return m_scheduledAuditName; }
104 inline bool ScheduledAuditNameHasBeenSet() const { return m_scheduledAuditNameHasBeenSet; }
105 template<typename ScheduledAuditNameT = Aws::String>
106 void SetScheduledAuditName(ScheduledAuditNameT&& value) { m_scheduledAuditNameHasBeenSet = true; m_scheduledAuditName = std::forward<ScheduledAuditNameT>(value); }
107 template<typename ScheduledAuditNameT = Aws::String>
108 CreateScheduledAuditRequest& WithScheduledAuditName(ScheduledAuditNameT&& value) { SetScheduledAuditName(std::forward<ScheduledAuditNameT>(value)); return *this;}
110
112
115 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
116 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
117 template<typename TagsT = Aws::Vector<Tag>>
118 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
119 template<typename TagsT = Aws::Vector<Tag>>
120 CreateScheduledAuditRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
121 template<typename TagsT = Tag>
122 CreateScheduledAuditRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
124 private:
125
127 bool m_frequencyHasBeenSet = false;
128
129 Aws::String m_dayOfMonth;
130 bool m_dayOfMonthHasBeenSet = false;
131
132 DayOfWeek m_dayOfWeek{DayOfWeek::NOT_SET};
133 bool m_dayOfWeekHasBeenSet = false;
134
135 Aws::Vector<Aws::String> m_targetCheckNames;
136 bool m_targetCheckNamesHasBeenSet = false;
137
138 Aws::String m_scheduledAuditName;
139 bool m_scheduledAuditNameHasBeenSet = false;
140
141 Aws::Vector<Tag> m_tags;
142 bool m_tagsHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace IoT
147} // 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