AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateMaintenanceStartTimeRequest.h
1
6#pragma once
7#include <aws/storagegateway/StorageGateway_EXPORTS.h>
8#include <aws/storagegateway/StorageGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/storagegateway/model/SoftwareUpdatePreferences.h>
11#include <utility>
12
13namespace Aws
14{
15namespace StorageGateway
16{
17namespace Model
18{
19
32 {
33 public:
34 AWS_STORAGEGATEWAY_API UpdateMaintenanceStartTimeRequest();
35
36 // Service request name is the Operation name which will send this request out,
37 // each operation should has unique request name, so that we can get operation's name from this request.
38 // Note: this is not true for response, multiple operations may have the same response name,
39 // so we can not get operation's name from response.
40 inline virtual const char* GetServiceRequestName() const override { return "UpdateMaintenanceStartTime"; }
41
42 AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override;
43
44 AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
45
46
48
49 inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; }
50 inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
51 inline void SetGatewayARN(const Aws::String& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; }
52 inline void SetGatewayARN(Aws::String&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = std::move(value); }
53 inline void SetGatewayARN(const char* value) { m_gatewayARNHasBeenSet = true; m_gatewayARN.assign(value); }
54 inline UpdateMaintenanceStartTimeRequest& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;}
55 inline UpdateMaintenanceStartTimeRequest& WithGatewayARN(Aws::String&& value) { SetGatewayARN(std::move(value)); return *this;}
56 inline UpdateMaintenanceStartTimeRequest& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;}
58
60
65 inline int GetHourOfDay() const{ return m_hourOfDay; }
66 inline bool HourOfDayHasBeenSet() const { return m_hourOfDayHasBeenSet; }
67 inline void SetHourOfDay(int value) { m_hourOfDayHasBeenSet = true; m_hourOfDay = value; }
68 inline UpdateMaintenanceStartTimeRequest& WithHourOfDay(int value) { SetHourOfDay(value); return *this;}
70
72
77 inline int GetMinuteOfHour() const{ return m_minuteOfHour; }
78 inline bool MinuteOfHourHasBeenSet() const { return m_minuteOfHourHasBeenSet; }
79 inline void SetMinuteOfHour(int value) { m_minuteOfHourHasBeenSet = true; m_minuteOfHour = value; }
80 inline UpdateMaintenanceStartTimeRequest& WithMinuteOfHour(int value) { SetMinuteOfHour(value); return *this;}
82
84
89 inline int GetDayOfWeek() const{ return m_dayOfWeek; }
90 inline bool DayOfWeekHasBeenSet() const { return m_dayOfWeekHasBeenSet; }
91 inline void SetDayOfWeek(int value) { m_dayOfWeekHasBeenSet = true; m_dayOfWeek = value; }
92 inline UpdateMaintenanceStartTimeRequest& WithDayOfWeek(int value) { SetDayOfWeek(value); return *this;}
94
96
102 inline int GetDayOfMonth() const{ return m_dayOfMonth; }
103 inline bool DayOfMonthHasBeenSet() const { return m_dayOfMonthHasBeenSet; }
104 inline void SetDayOfMonth(int value) { m_dayOfMonthHasBeenSet = true; m_dayOfMonth = value; }
105 inline UpdateMaintenanceStartTimeRequest& WithDayOfMonth(int value) { SetDayOfMonth(value); return *this;}
107
109
120 inline const SoftwareUpdatePreferences& GetSoftwareUpdatePreferences() const{ return m_softwareUpdatePreferences; }
121 inline bool SoftwareUpdatePreferencesHasBeenSet() const { return m_softwareUpdatePreferencesHasBeenSet; }
122 inline void SetSoftwareUpdatePreferences(const SoftwareUpdatePreferences& value) { m_softwareUpdatePreferencesHasBeenSet = true; m_softwareUpdatePreferences = value; }
123 inline void SetSoftwareUpdatePreferences(SoftwareUpdatePreferences&& value) { m_softwareUpdatePreferencesHasBeenSet = true; m_softwareUpdatePreferences = std::move(value); }
127 private:
128
129 Aws::String m_gatewayARN;
130 bool m_gatewayARNHasBeenSet = false;
131
132 int m_hourOfDay;
133 bool m_hourOfDayHasBeenSet = false;
134
135 int m_minuteOfHour;
136 bool m_minuteOfHourHasBeenSet = false;
137
138 int m_dayOfWeek;
139 bool m_dayOfWeekHasBeenSet = false;
140
141 int m_dayOfMonth;
142 bool m_dayOfMonthHasBeenSet = false;
143
144 SoftwareUpdatePreferences m_softwareUpdatePreferences;
145 bool m_softwareUpdatePreferencesHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace StorageGateway
150} // namespace Aws
UpdateMaintenanceStartTimeRequest & WithGatewayARN(const char *value)
UpdateMaintenanceStartTimeRequest & WithSoftwareUpdatePreferences(const SoftwareUpdatePreferences &value)
UpdateMaintenanceStartTimeRequest & WithGatewayARN(const Aws::String &value)
AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override
UpdateMaintenanceStartTimeRequest & WithGatewayARN(Aws::String &&value)
UpdateMaintenanceStartTimeRequest & WithSoftwareUpdatePreferences(SoftwareUpdatePreferences &&value)
AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String