AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
UpdateDirectorySetupRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ds/DirectoryServiceRequest.h>
9#include <aws/ds/DirectoryService_EXPORTS.h>
10#include <aws/ds/model/DirectorySizeUpdateSettings.h>
11#include <aws/ds/model/NetworkUpdateSettings.h>
12#include <aws/ds/model/OSUpdateSettings.h>
13#include <aws/ds/model/UpdateType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace DirectoryService {
19namespace Model {
20
24 public:
25 AWS_DIRECTORYSERVICE_API UpdateDirectorySetupRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateDirectorySetup"; }
32
33 AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override;
34
35 AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
41 inline const Aws::String& GetDirectoryId() const { return m_directoryId; }
42 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
43 template <typename DirectoryIdT = Aws::String>
44 void SetDirectoryId(DirectoryIdT&& value) {
45 m_directoryIdHasBeenSet = true;
46 m_directoryId = std::forward<DirectoryIdT>(value);
47 }
48 template <typename DirectoryIdT = Aws::String>
50 SetDirectoryId(std::forward<DirectoryIdT>(value));
51 return *this;
52 }
54
56
59 inline UpdateType GetUpdateType() const { return m_updateType; }
60 inline bool UpdateTypeHasBeenSet() const { return m_updateTypeHasBeenSet; }
61 inline void SetUpdateType(UpdateType value) {
62 m_updateTypeHasBeenSet = true;
63 m_updateType = value;
64 }
66 SetUpdateType(value);
67 return *this;
68 }
70
72
76 inline const OSUpdateSettings& GetOSUpdateSettings() const { return m_oSUpdateSettings; }
77 inline bool OSUpdateSettingsHasBeenSet() const { return m_oSUpdateSettingsHasBeenSet; }
78 template <typename OSUpdateSettingsT = OSUpdateSettings>
79 void SetOSUpdateSettings(OSUpdateSettingsT&& value) {
80 m_oSUpdateSettingsHasBeenSet = true;
81 m_oSUpdateSettings = std::forward<OSUpdateSettingsT>(value);
82 }
83 template <typename OSUpdateSettingsT = OSUpdateSettings>
85 SetOSUpdateSettings(std::forward<OSUpdateSettingsT>(value));
86 return *this;
87 }
89
91
94 inline const DirectorySizeUpdateSettings& GetDirectorySizeUpdateSettings() const { return m_directorySizeUpdateSettings; }
95 inline bool DirectorySizeUpdateSettingsHasBeenSet() const { return m_directorySizeUpdateSettingsHasBeenSet; }
96 template <typename DirectorySizeUpdateSettingsT = DirectorySizeUpdateSettings>
97 void SetDirectorySizeUpdateSettings(DirectorySizeUpdateSettingsT&& value) {
98 m_directorySizeUpdateSettingsHasBeenSet = true;
99 m_directorySizeUpdateSettings = std::forward<DirectorySizeUpdateSettingsT>(value);
100 }
101 template <typename DirectorySizeUpdateSettingsT = DirectorySizeUpdateSettings>
102 UpdateDirectorySetupRequest& WithDirectorySizeUpdateSettings(DirectorySizeUpdateSettingsT&& value) {
103 SetDirectorySizeUpdateSettings(std::forward<DirectorySizeUpdateSettingsT>(value));
104 return *this;
105 }
107
109
112 inline const NetworkUpdateSettings& GetNetworkUpdateSettings() const { return m_networkUpdateSettings; }
113 inline bool NetworkUpdateSettingsHasBeenSet() const { return m_networkUpdateSettingsHasBeenSet; }
114 template <typename NetworkUpdateSettingsT = NetworkUpdateSettings>
115 void SetNetworkUpdateSettings(NetworkUpdateSettingsT&& value) {
116 m_networkUpdateSettingsHasBeenSet = true;
117 m_networkUpdateSettings = std::forward<NetworkUpdateSettingsT>(value);
118 }
119 template <typename NetworkUpdateSettingsT = NetworkUpdateSettings>
121 SetNetworkUpdateSettings(std::forward<NetworkUpdateSettingsT>(value));
122 return *this;
123 }
125
127
131 inline bool GetCreateSnapshotBeforeUpdate() const { return m_createSnapshotBeforeUpdate; }
132 inline bool CreateSnapshotBeforeUpdateHasBeenSet() const { return m_createSnapshotBeforeUpdateHasBeenSet; }
133 inline void SetCreateSnapshotBeforeUpdate(bool value) {
134 m_createSnapshotBeforeUpdateHasBeenSet = true;
135 m_createSnapshotBeforeUpdate = value;
136 }
139 return *this;
140 }
142 private:
143 Aws::String m_directoryId;
144
145 UpdateType m_updateType{UpdateType::NOT_SET};
146
147 OSUpdateSettings m_oSUpdateSettings;
148
149 DirectorySizeUpdateSettings m_directorySizeUpdateSettings;
150
151 NetworkUpdateSettings m_networkUpdateSettings;
152
153 bool m_createSnapshotBeforeUpdate{false};
154 bool m_directoryIdHasBeenSet = false;
155 bool m_updateTypeHasBeenSet = false;
156 bool m_oSUpdateSettingsHasBeenSet = false;
157 bool m_directorySizeUpdateSettingsHasBeenSet = false;
158 bool m_networkUpdateSettingsHasBeenSet = false;
159 bool m_createSnapshotBeforeUpdateHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace DirectoryService
164} // namespace Aws
AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override
AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateDirectorySetupRequest & WithOSUpdateSettings(OSUpdateSettingsT &&value)
AWS_DIRECTORYSERVICE_API UpdateDirectorySetupRequest()=default
UpdateDirectorySetupRequest & WithUpdateType(UpdateType value)
void SetDirectorySizeUpdateSettings(DirectorySizeUpdateSettingsT &&value)
UpdateDirectorySetupRequest & WithNetworkUpdateSettings(NetworkUpdateSettingsT &&value)
UpdateDirectorySetupRequest & WithDirectoryId(DirectoryIdT &&value)
UpdateDirectorySetupRequest & WithCreateSnapshotBeforeUpdate(bool value)
const DirectorySizeUpdateSettings & GetDirectorySizeUpdateSettings() const
UpdateDirectorySetupRequest & WithDirectorySizeUpdateSettings(DirectorySizeUpdateSettingsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String