AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
UpdateScheduledAuditRequest.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
14#include <utility>
15
16namespace Aws {
17namespace IoT {
18namespace Model {
19
23 public:
24 AWS_IOT_API UpdateScheduledAuditRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateScheduledAudit"; }
31
32 AWS_IOT_API Aws::String SerializePayload() const override;
33
35
40 inline AuditFrequency GetFrequency() const { return m_frequency; }
41 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
42 inline void SetFrequency(AuditFrequency value) {
43 m_frequencyHasBeenSet = true;
44 m_frequency = value;
45 }
47 SetFrequency(value);
48 return *this;
49 }
51
53
60 inline const Aws::String& GetDayOfMonth() const { return m_dayOfMonth; }
61 inline bool DayOfMonthHasBeenSet() const { return m_dayOfMonthHasBeenSet; }
62 template <typename DayOfMonthT = Aws::String>
63 void SetDayOfMonth(DayOfMonthT&& value) {
64 m_dayOfMonthHasBeenSet = true;
65 m_dayOfMonth = std::forward<DayOfMonthT>(value);
66 }
67 template <typename DayOfMonthT = Aws::String>
69 SetDayOfMonth(std::forward<DayOfMonthT>(value));
70 return *this;
71 }
73
75
82 inline DayOfWeek GetDayOfWeek() const { return m_dayOfWeek; }
83 inline bool DayOfWeekHasBeenSet() const { return m_dayOfWeekHasBeenSet; }
84 inline void SetDayOfWeek(DayOfWeek value) {
85 m_dayOfWeekHasBeenSet = true;
86 m_dayOfWeek = value;
87 }
89 SetDayOfWeek(value);
90 return *this;
91 }
93
95
102 inline const Aws::Vector<Aws::String>& GetTargetCheckNames() const { return m_targetCheckNames; }
103 inline bool TargetCheckNamesHasBeenSet() const { return m_targetCheckNamesHasBeenSet; }
104 template <typename TargetCheckNamesT = Aws::Vector<Aws::String>>
105 void SetTargetCheckNames(TargetCheckNamesT&& value) {
106 m_targetCheckNamesHasBeenSet = true;
107 m_targetCheckNames = std::forward<TargetCheckNamesT>(value);
108 }
109 template <typename TargetCheckNamesT = Aws::Vector<Aws::String>>
111 SetTargetCheckNames(std::forward<TargetCheckNamesT>(value));
112 return *this;
113 }
114 template <typename TargetCheckNamesT = Aws::String>
116 m_targetCheckNamesHasBeenSet = true;
117 m_targetCheckNames.emplace_back(std::forward<TargetCheckNamesT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::String& GetScheduledAuditName() const { return m_scheduledAuditName; }
127 inline bool ScheduledAuditNameHasBeenSet() const { return m_scheduledAuditNameHasBeenSet; }
128 template <typename ScheduledAuditNameT = Aws::String>
129 void SetScheduledAuditName(ScheduledAuditNameT&& value) {
130 m_scheduledAuditNameHasBeenSet = true;
131 m_scheduledAuditName = std::forward<ScheduledAuditNameT>(value);
132 }
133 template <typename ScheduledAuditNameT = Aws::String>
135 SetScheduledAuditName(std::forward<ScheduledAuditNameT>(value));
136 return *this;
137 }
139 private:
141
142 Aws::String m_dayOfMonth;
143
144 DayOfWeek m_dayOfWeek{DayOfWeek::NOT_SET};
145
146 Aws::Vector<Aws::String> m_targetCheckNames;
147
148 Aws::String m_scheduledAuditName;
149 bool m_frequencyHasBeenSet = false;
150 bool m_dayOfMonthHasBeenSet = false;
151 bool m_dayOfWeekHasBeenSet = false;
152 bool m_targetCheckNamesHasBeenSet = false;
153 bool m_scheduledAuditNameHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace IoT
158} // namespace Aws
const Aws::Vector< Aws::String > & GetTargetCheckNames() const
UpdateScheduledAuditRequest & WithFrequency(AuditFrequency value)
UpdateScheduledAuditRequest & WithTargetCheckNames(TargetCheckNamesT &&value)
UpdateScheduledAuditRequest & WithDayOfMonth(DayOfMonthT &&value)
virtual const char * GetServiceRequestName() const override
AWS_IOT_API Aws::String SerializePayload() const override
AWS_IOT_API UpdateScheduledAuditRequest()=default
UpdateScheduledAuditRequest & AddTargetCheckNames(TargetCheckNamesT &&value)
UpdateScheduledAuditRequest & WithDayOfWeek(DayOfWeek value)
UpdateScheduledAuditRequest & WithScheduledAuditName(ScheduledAuditNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector