AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 const AuditFrequency& GetFrequency() const{ return m_frequency; }
45 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
46 inline void SetFrequency(const AuditFrequency& value) { m_frequencyHasBeenSet = true; m_frequency = value; }
47 inline void SetFrequency(AuditFrequency&& value) { m_frequencyHasBeenSet = true; m_frequency = std::move(value); }
48 inline UpdateScheduledAuditRequest& WithFrequency(const AuditFrequency& value) { SetFrequency(value); return *this;}
49 inline UpdateScheduledAuditRequest& WithFrequency(AuditFrequency&& value) { SetFrequency(std::move(value)); return *this;}
51
53
60 inline const Aws::String& GetDayOfMonth() const{ return m_dayOfMonth; }
61 inline bool DayOfMonthHasBeenSet() const { return m_dayOfMonthHasBeenSet; }
62 inline void SetDayOfMonth(const Aws::String& value) { m_dayOfMonthHasBeenSet = true; m_dayOfMonth = value; }
63 inline void SetDayOfMonth(Aws::String&& value) { m_dayOfMonthHasBeenSet = true; m_dayOfMonth = std::move(value); }
64 inline void SetDayOfMonth(const char* value) { m_dayOfMonthHasBeenSet = true; m_dayOfMonth.assign(value); }
65 inline UpdateScheduledAuditRequest& WithDayOfMonth(const Aws::String& value) { SetDayOfMonth(value); return *this;}
66 inline UpdateScheduledAuditRequest& WithDayOfMonth(Aws::String&& value) { SetDayOfMonth(std::move(value)); return *this;}
67 inline UpdateScheduledAuditRequest& WithDayOfMonth(const char* value) { SetDayOfMonth(value); return *this;}
69
71
78 inline const DayOfWeek& GetDayOfWeek() const{ return m_dayOfWeek; }
79 inline bool DayOfWeekHasBeenSet() const { return m_dayOfWeekHasBeenSet; }
80 inline void SetDayOfWeek(const DayOfWeek& value) { m_dayOfWeekHasBeenSet = true; m_dayOfWeek = value; }
81 inline void SetDayOfWeek(DayOfWeek&& value) { m_dayOfWeekHasBeenSet = true; m_dayOfWeek = std::move(value); }
82 inline UpdateScheduledAuditRequest& WithDayOfWeek(const DayOfWeek& value) { SetDayOfWeek(value); return *this;}
83 inline UpdateScheduledAuditRequest& WithDayOfWeek(DayOfWeek&& value) { SetDayOfWeek(std::move(value)); return *this;}
85
87
94 inline const Aws::Vector<Aws::String>& GetTargetCheckNames() const{ return m_targetCheckNames; }
95 inline bool TargetCheckNamesHasBeenSet() const { return m_targetCheckNamesHasBeenSet; }
96 inline void SetTargetCheckNames(const Aws::Vector<Aws::String>& value) { m_targetCheckNamesHasBeenSet = true; m_targetCheckNames = value; }
97 inline void SetTargetCheckNames(Aws::Vector<Aws::String>&& value) { m_targetCheckNamesHasBeenSet = true; m_targetCheckNames = std::move(value); }
100 inline UpdateScheduledAuditRequest& AddTargetCheckNames(const Aws::String& value) { m_targetCheckNamesHasBeenSet = true; m_targetCheckNames.push_back(value); return *this; }
101 inline UpdateScheduledAuditRequest& AddTargetCheckNames(Aws::String&& value) { m_targetCheckNamesHasBeenSet = true; m_targetCheckNames.push_back(std::move(value)); return *this; }
102 inline UpdateScheduledAuditRequest& AddTargetCheckNames(const char* value) { m_targetCheckNamesHasBeenSet = true; m_targetCheckNames.push_back(value); return *this; }
104
106
109 inline const Aws::String& GetScheduledAuditName() const{ return m_scheduledAuditName; }
110 inline bool ScheduledAuditNameHasBeenSet() const { return m_scheduledAuditNameHasBeenSet; }
111 inline void SetScheduledAuditName(const Aws::String& value) { m_scheduledAuditNameHasBeenSet = true; m_scheduledAuditName = value; }
112 inline void SetScheduledAuditName(Aws::String&& value) { m_scheduledAuditNameHasBeenSet = true; m_scheduledAuditName = std::move(value); }
113 inline void SetScheduledAuditName(const char* value) { m_scheduledAuditNameHasBeenSet = true; m_scheduledAuditName.assign(value); }
115 inline UpdateScheduledAuditRequest& WithScheduledAuditName(Aws::String&& value) { SetScheduledAuditName(std::move(value)); return *this;}
116 inline UpdateScheduledAuditRequest& WithScheduledAuditName(const char* value) { SetScheduledAuditName(value); return *this;}
118 private:
119
120 AuditFrequency m_frequency;
121 bool m_frequencyHasBeenSet = false;
122
123 Aws::String m_dayOfMonth;
124 bool m_dayOfMonthHasBeenSet = false;
125
126 DayOfWeek m_dayOfWeek;
127 bool m_dayOfWeekHasBeenSet = false;
128
129 Aws::Vector<Aws::String> m_targetCheckNames;
130 bool m_targetCheckNamesHasBeenSet = false;
131
132 Aws::String m_scheduledAuditName;
133 bool m_scheduledAuditNameHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace IoT
138} // namespace Aws
UpdateScheduledAuditRequest & WithDayOfMonth(Aws::String &&value)
const Aws::Vector< Aws::String > & GetTargetCheckNames() const
UpdateScheduledAuditRequest & WithScheduledAuditName(const Aws::String &value)
void SetTargetCheckNames(Aws::Vector< Aws::String > &&value)
UpdateScheduledAuditRequest & WithScheduledAuditName(Aws::String &&value)
UpdateScheduledAuditRequest & WithScheduledAuditName(const char *value)
UpdateScheduledAuditRequest & WithFrequency(AuditFrequency &&value)
virtual const char * GetServiceRequestName() const override
AWS_IOT_API Aws::String SerializePayload() const override
UpdateScheduledAuditRequest & AddTargetCheckNames(const Aws::String &value)
UpdateScheduledAuditRequest & WithDayOfWeek(DayOfWeek &&value)
UpdateScheduledAuditRequest & WithDayOfMonth(const char *value)
UpdateScheduledAuditRequest & WithFrequency(const AuditFrequency &value)
void SetTargetCheckNames(const Aws::Vector< Aws::String > &value)
UpdateScheduledAuditRequest & AddTargetCheckNames(Aws::String &&value)
UpdateScheduledAuditRequest & WithDayOfWeek(const DayOfWeek &value)
UpdateScheduledAuditRequest & WithTargetCheckNames(const Aws::Vector< Aws::String > &value)
UpdateScheduledAuditRequest & WithDayOfMonth(const Aws::String &value)
UpdateScheduledAuditRequest & AddTargetCheckNames(const char *value)
UpdateScheduledAuditRequest & WithTargetCheckNames(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector