AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateDirectorySetupRequest.h
1
6#pragma once
7#include <aws/ds/DirectoryService_EXPORTS.h>
8#include <aws/ds/DirectoryServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ds/model/UpdateType.h>
11#include <aws/ds/model/OSUpdateSettings.h>
12#include <utility>
13
14namespace Aws
15{
16namespace DirectoryService
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_DIRECTORYSERVICE_API UpdateDirectorySetupRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateDirectorySetup"; }
33
34 AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override;
35
36 AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
44 inline const Aws::String& GetDirectoryId() const { return m_directoryId; }
45 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
46 template<typename DirectoryIdT = Aws::String>
47 void SetDirectoryId(DirectoryIdT&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::forward<DirectoryIdT>(value); }
48 template<typename DirectoryIdT = Aws::String>
49 UpdateDirectorySetupRequest& WithDirectoryId(DirectoryIdT&& value) { SetDirectoryId(std::forward<DirectoryIdT>(value)); return *this;}
51
53
57 inline UpdateType GetUpdateType() const { return m_updateType; }
58 inline bool UpdateTypeHasBeenSet() const { return m_updateTypeHasBeenSet; }
59 inline void SetUpdateType(UpdateType value) { m_updateTypeHasBeenSet = true; m_updateType = value; }
62
64
68 inline const OSUpdateSettings& GetOSUpdateSettings() const { return m_oSUpdateSettings; }
69 inline bool OSUpdateSettingsHasBeenSet() const { return m_oSUpdateSettingsHasBeenSet; }
70 template<typename OSUpdateSettingsT = OSUpdateSettings>
71 void SetOSUpdateSettings(OSUpdateSettingsT&& value) { m_oSUpdateSettingsHasBeenSet = true; m_oSUpdateSettings = std::forward<OSUpdateSettingsT>(value); }
72 template<typename OSUpdateSettingsT = OSUpdateSettings>
73 UpdateDirectorySetupRequest& WithOSUpdateSettings(OSUpdateSettingsT&& value) { SetOSUpdateSettings(std::forward<OSUpdateSettingsT>(value)); return *this;}
75
77
81 inline bool GetCreateSnapshotBeforeUpdate() const { return m_createSnapshotBeforeUpdate; }
82 inline bool CreateSnapshotBeforeUpdateHasBeenSet() const { return m_createSnapshotBeforeUpdateHasBeenSet; }
83 inline void SetCreateSnapshotBeforeUpdate(bool value) { m_createSnapshotBeforeUpdateHasBeenSet = true; m_createSnapshotBeforeUpdate = value; }
86 private:
87
88 Aws::String m_directoryId;
89 bool m_directoryIdHasBeenSet = false;
90
91 UpdateType m_updateType{UpdateType::NOT_SET};
92 bool m_updateTypeHasBeenSet = false;
93
94 OSUpdateSettings m_oSUpdateSettings;
95 bool m_oSUpdateSettingsHasBeenSet = false;
96
97 bool m_createSnapshotBeforeUpdate{false};
98 bool m_createSnapshotBeforeUpdateHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace DirectoryService
103} // 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)
UpdateDirectorySetupRequest & WithDirectoryId(DirectoryIdT &&value)
UpdateDirectorySetupRequest & WithCreateSnapshotBeforeUpdate(bool value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String