AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateScheduledAuditRequest.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 <utility>
14
15namespace Aws
16{
17namespace IoT
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_IOT_API UpdateScheduledAuditRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateScheduledAudit"; }
34
35 AWS_IOT_API Aws::String SerializePayload() const override;
36
37
39
44 inline AuditFrequency GetFrequency() const { return m_frequency; }
45 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
46 inline void SetFrequency(AuditFrequency value) { m_frequencyHasBeenSet = true; m_frequency = value; }
49
51
58 inline const Aws::String& GetDayOfMonth() const { return m_dayOfMonth; }
59 inline bool DayOfMonthHasBeenSet() const { return m_dayOfMonthHasBeenSet; }
60 template<typename DayOfMonthT = Aws::String>
61 void SetDayOfMonth(DayOfMonthT&& value) { m_dayOfMonthHasBeenSet = true; m_dayOfMonth = std::forward<DayOfMonthT>(value); }
62 template<typename DayOfMonthT = Aws::String>
63 UpdateScheduledAuditRequest& WithDayOfMonth(DayOfMonthT&& value) { SetDayOfMonth(std::forward<DayOfMonthT>(value)); return *this;}
65
67
74 inline DayOfWeek GetDayOfWeek() const { return m_dayOfWeek; }
75 inline bool DayOfWeekHasBeenSet() const { return m_dayOfWeekHasBeenSet; }
76 inline void SetDayOfWeek(DayOfWeek value) { m_dayOfWeekHasBeenSet = true; m_dayOfWeek = value; }
77 inline UpdateScheduledAuditRequest& WithDayOfWeek(DayOfWeek value) { SetDayOfWeek(value); return *this;}
79
81
88 inline const Aws::Vector<Aws::String>& GetTargetCheckNames() const { return m_targetCheckNames; }
89 inline bool TargetCheckNamesHasBeenSet() const { return m_targetCheckNamesHasBeenSet; }
90 template<typename TargetCheckNamesT = Aws::Vector<Aws::String>>
91 void SetTargetCheckNames(TargetCheckNamesT&& value) { m_targetCheckNamesHasBeenSet = true; m_targetCheckNames = std::forward<TargetCheckNamesT>(value); }
92 template<typename TargetCheckNamesT = Aws::Vector<Aws::String>>
93 UpdateScheduledAuditRequest& WithTargetCheckNames(TargetCheckNamesT&& value) { SetTargetCheckNames(std::forward<TargetCheckNamesT>(value)); return *this;}
94 template<typename TargetCheckNamesT = Aws::String>
95 UpdateScheduledAuditRequest& AddTargetCheckNames(TargetCheckNamesT&& value) { m_targetCheckNamesHasBeenSet = true; m_targetCheckNames.emplace_back(std::forward<TargetCheckNamesT>(value)); return *this; }
97
99
102 inline const Aws::String& GetScheduledAuditName() const { return m_scheduledAuditName; }
103 inline bool ScheduledAuditNameHasBeenSet() const { return m_scheduledAuditNameHasBeenSet; }
104 template<typename ScheduledAuditNameT = Aws::String>
105 void SetScheduledAuditName(ScheduledAuditNameT&& value) { m_scheduledAuditNameHasBeenSet = true; m_scheduledAuditName = std::forward<ScheduledAuditNameT>(value); }
106 template<typename ScheduledAuditNameT = Aws::String>
107 UpdateScheduledAuditRequest& WithScheduledAuditName(ScheduledAuditNameT&& value) { SetScheduledAuditName(std::forward<ScheduledAuditNameT>(value)); return *this;}
109 private:
110
112 bool m_frequencyHasBeenSet = false;
113
114 Aws::String m_dayOfMonth;
115 bool m_dayOfMonthHasBeenSet = false;
116
117 DayOfWeek m_dayOfWeek{DayOfWeek::NOT_SET};
118 bool m_dayOfWeekHasBeenSet = false;
119
120 Aws::Vector<Aws::String> m_targetCheckNames;
121 bool m_targetCheckNamesHasBeenSet = false;
122
123 Aws::String m_scheduledAuditName;
124 bool m_scheduledAuditNameHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace IoT
129} // 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