AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename GatewayARNT = Aws::String>
52 void SetGatewayARN(GatewayARNT&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = std::forward<GatewayARNT>(value); }
53 template<typename GatewayARNT = Aws::String>
54 UpdateMaintenanceStartTimeRequest& WithGatewayARN(GatewayARNT&& value) { SetGatewayARN(std::forward<GatewayARNT>(value)); return *this;}
56
58
63 inline int GetHourOfDay() const { return m_hourOfDay; }
64 inline bool HourOfDayHasBeenSet() const { return m_hourOfDayHasBeenSet; }
65 inline void SetHourOfDay(int value) { m_hourOfDayHasBeenSet = true; m_hourOfDay = value; }
66 inline UpdateMaintenanceStartTimeRequest& WithHourOfDay(int value) { SetHourOfDay(value); return *this;}
68
70
75 inline int GetMinuteOfHour() const { return m_minuteOfHour; }
76 inline bool MinuteOfHourHasBeenSet() const { return m_minuteOfHourHasBeenSet; }
77 inline void SetMinuteOfHour(int value) { m_minuteOfHourHasBeenSet = true; m_minuteOfHour = value; }
78 inline UpdateMaintenanceStartTimeRequest& WithMinuteOfHour(int value) { SetMinuteOfHour(value); return *this;}
80
82
87 inline int GetDayOfWeek() const { return m_dayOfWeek; }
88 inline bool DayOfWeekHasBeenSet() const { return m_dayOfWeekHasBeenSet; }
89 inline void SetDayOfWeek(int value) { m_dayOfWeekHasBeenSet = true; m_dayOfWeek = value; }
90 inline UpdateMaintenanceStartTimeRequest& WithDayOfWeek(int value) { SetDayOfWeek(value); return *this;}
92
94
100 inline int GetDayOfMonth() const { return m_dayOfMonth; }
101 inline bool DayOfMonthHasBeenSet() const { return m_dayOfMonthHasBeenSet; }
102 inline void SetDayOfMonth(int value) { m_dayOfMonthHasBeenSet = true; m_dayOfMonth = value; }
103 inline UpdateMaintenanceStartTimeRequest& WithDayOfMonth(int value) { SetDayOfMonth(value); return *this;}
105
107
118 inline const SoftwareUpdatePreferences& GetSoftwareUpdatePreferences() const { return m_softwareUpdatePreferences; }
119 inline bool SoftwareUpdatePreferencesHasBeenSet() const { return m_softwareUpdatePreferencesHasBeenSet; }
120 template<typename SoftwareUpdatePreferencesT = SoftwareUpdatePreferences>
121 void SetSoftwareUpdatePreferences(SoftwareUpdatePreferencesT&& value) { m_softwareUpdatePreferencesHasBeenSet = true; m_softwareUpdatePreferences = std::forward<SoftwareUpdatePreferencesT>(value); }
122 template<typename SoftwareUpdatePreferencesT = SoftwareUpdatePreferences>
123 UpdateMaintenanceStartTimeRequest& WithSoftwareUpdatePreferences(SoftwareUpdatePreferencesT&& value) { SetSoftwareUpdatePreferences(std::forward<SoftwareUpdatePreferencesT>(value)); return *this;}
125 private:
126
127 Aws::String m_gatewayARN;
128 bool m_gatewayARNHasBeenSet = false;
129
130 int m_hourOfDay{0};
131 bool m_hourOfDayHasBeenSet = false;
132
133 int m_minuteOfHour{0};
134 bool m_minuteOfHourHasBeenSet = false;
135
136 int m_dayOfWeek{0};
137 bool m_dayOfWeekHasBeenSet = false;
138
139 int m_dayOfMonth{0};
140 bool m_dayOfMonthHasBeenSet = false;
141
142 SoftwareUpdatePreferences m_softwareUpdatePreferences;
143 bool m_softwareUpdatePreferencesHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace StorageGateway
148} // namespace Aws
UpdateMaintenanceStartTimeRequest & WithGatewayARN(GatewayARNT &&value)
UpdateMaintenanceStartTimeRequest & WithSoftwareUpdatePreferences(SoftwareUpdatePreferencesT &&value)
AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override
AWS_STORAGEGATEWAY_API UpdateMaintenanceStartTimeRequest()=default
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