AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ConnectDirectoryRequest.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/DirectorySize.h>
11#include <aws/ds/model/DirectoryConnectSettings.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/ds/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace DirectoryService
19{
20namespace Model
21{
22
30 {
31 public:
32 AWS_DIRECTORYSERVICE_API ConnectDirectoryRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "ConnectDirectory"; }
39
40 AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override;
41
42 AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
43
44
46
50 inline const Aws::String& GetName() const { return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 template<typename NameT = Aws::String>
53 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
54 template<typename NameT = Aws::String>
55 ConnectDirectoryRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
57
59
63 inline const Aws::String& GetShortName() const { return m_shortName; }
64 inline bool ShortNameHasBeenSet() const { return m_shortNameHasBeenSet; }
65 template<typename ShortNameT = Aws::String>
66 void SetShortName(ShortNameT&& value) { m_shortNameHasBeenSet = true; m_shortName = std::forward<ShortNameT>(value); }
67 template<typename ShortNameT = Aws::String>
68 ConnectDirectoryRequest& WithShortName(ShortNameT&& value) { SetShortName(std::forward<ShortNameT>(value)); return *this;}
70
72
75 inline const Aws::String& GetPassword() const { return m_password; }
76 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
77 template<typename PasswordT = Aws::String>
78 void SetPassword(PasswordT&& value) { m_passwordHasBeenSet = true; m_password = std::forward<PasswordT>(value); }
79 template<typename PasswordT = Aws::String>
80 ConnectDirectoryRequest& WithPassword(PasswordT&& value) { SetPassword(std::forward<PasswordT>(value)); return *this;}
82
84
87 inline const Aws::String& GetDescription() const { return m_description; }
88 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
89 template<typename DescriptionT = Aws::String>
90 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
91 template<typename DescriptionT = Aws::String>
92 ConnectDirectoryRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
94
96
99 inline DirectorySize GetSize() const { return m_size; }
100 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
101 inline void SetSize(DirectorySize value) { m_sizeHasBeenSet = true; m_size = value; }
102 inline ConnectDirectoryRequest& WithSize(DirectorySize value) { SetSize(value); return *this;}
104
106
110 inline const DirectoryConnectSettings& GetConnectSettings() const { return m_connectSettings; }
111 inline bool ConnectSettingsHasBeenSet() const { return m_connectSettingsHasBeenSet; }
112 template<typename ConnectSettingsT = DirectoryConnectSettings>
113 void SetConnectSettings(ConnectSettingsT&& value) { m_connectSettingsHasBeenSet = true; m_connectSettings = std::forward<ConnectSettingsT>(value); }
114 template<typename ConnectSettingsT = DirectoryConnectSettings>
115 ConnectDirectoryRequest& WithConnectSettings(ConnectSettingsT&& value) { SetConnectSettings(std::forward<ConnectSettingsT>(value)); return *this;}
117
119
122 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
123 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
124 template<typename TagsT = Aws::Vector<Tag>>
125 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
126 template<typename TagsT = Aws::Vector<Tag>>
127 ConnectDirectoryRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
128 template<typename TagsT = Tag>
129 ConnectDirectoryRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
131 private:
132
133 Aws::String m_name;
134 bool m_nameHasBeenSet = false;
135
136 Aws::String m_shortName;
137 bool m_shortNameHasBeenSet = false;
138
139 Aws::String m_password;
140 bool m_passwordHasBeenSet = false;
141
142 Aws::String m_description;
143 bool m_descriptionHasBeenSet = false;
144
146 bool m_sizeHasBeenSet = false;
147
148 DirectoryConnectSettings m_connectSettings;
149 bool m_connectSettingsHasBeenSet = false;
150
151 Aws::Vector<Tag> m_tags;
152 bool m_tagsHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace DirectoryService
157} // namespace Aws
ConnectDirectoryRequest & WithShortName(ShortNameT &&value)
virtual const char * GetServiceRequestName() const override
ConnectDirectoryRequest & WithDescription(DescriptionT &&value)
const DirectoryConnectSettings & GetConnectSettings() const
AWS_DIRECTORYSERVICE_API ConnectDirectoryRequest()=default
ConnectDirectoryRequest & WithSize(DirectorySize value)
AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override
ConnectDirectoryRequest & WithPassword(PasswordT &&value)
AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ConnectDirectoryRequest & WithConnectSettings(ConnectSettingsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector