AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateMicrosoftADRequest.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/DirectoryVpcSettings.h>
11#include <aws/ds/model/DirectoryEdition.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
29 {
30 public:
31 AWS_DIRECTORYSERVICE_API CreateMicrosoftADRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateMicrosoftAD"; }
38
39 AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override;
40
41 AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42
43
45
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 CreateMicrosoftADRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
57
59
65 inline const Aws::String& GetShortName() const { return m_shortName; }
66 inline bool ShortNameHasBeenSet() const { return m_shortNameHasBeenSet; }
67 template<typename ShortNameT = Aws::String>
68 void SetShortName(ShortNameT&& value) { m_shortNameHasBeenSet = true; m_shortName = std::forward<ShortNameT>(value); }
69 template<typename ShortNameT = Aws::String>
70 CreateMicrosoftADRequest& WithShortName(ShortNameT&& value) { SetShortName(std::forward<ShortNameT>(value)); return *this;}
72
74
79 inline const Aws::String& GetPassword() const { return m_password; }
80 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
81 template<typename PasswordT = Aws::String>
82 void SetPassword(PasswordT&& value) { m_passwordHasBeenSet = true; m_password = std::forward<PasswordT>(value); }
83 template<typename PasswordT = Aws::String>
84 CreateMicrosoftADRequest& WithPassword(PasswordT&& value) { SetPassword(std::forward<PasswordT>(value)); return *this;}
86
88
93 inline const Aws::String& GetDescription() const { return m_description; }
94 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
95 template<typename DescriptionT = Aws::String>
96 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
97 template<typename DescriptionT = Aws::String>
98 CreateMicrosoftADRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
100
102
106 inline const DirectoryVpcSettings& GetVpcSettings() const { return m_vpcSettings; }
107 inline bool VpcSettingsHasBeenSet() const { return m_vpcSettingsHasBeenSet; }
108 template<typename VpcSettingsT = DirectoryVpcSettings>
109 void SetVpcSettings(VpcSettingsT&& value) { m_vpcSettingsHasBeenSet = true; m_vpcSettings = std::forward<VpcSettingsT>(value); }
110 template<typename VpcSettingsT = DirectoryVpcSettings>
111 CreateMicrosoftADRequest& WithVpcSettings(VpcSettingsT&& value) { SetVpcSettings(std::forward<VpcSettingsT>(value)); return *this;}
113
115
119 inline DirectoryEdition GetEdition() const { return m_edition; }
120 inline bool EditionHasBeenSet() const { return m_editionHasBeenSet; }
121 inline void SetEdition(DirectoryEdition value) { m_editionHasBeenSet = true; m_edition = value; }
122 inline CreateMicrosoftADRequest& WithEdition(DirectoryEdition value) { SetEdition(value); return *this;}
124
126
129 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
130 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
131 template<typename TagsT = Aws::Vector<Tag>>
132 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
133 template<typename TagsT = Aws::Vector<Tag>>
134 CreateMicrosoftADRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
135 template<typename TagsT = Tag>
136 CreateMicrosoftADRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
138 private:
139
140 Aws::String m_name;
141 bool m_nameHasBeenSet = false;
142
143 Aws::String m_shortName;
144 bool m_shortNameHasBeenSet = false;
145
146 Aws::String m_password;
147 bool m_passwordHasBeenSet = false;
148
149 Aws::String m_description;
150 bool m_descriptionHasBeenSet = false;
151
152 DirectoryVpcSettings m_vpcSettings;
153 bool m_vpcSettingsHasBeenSet = false;
154
156 bool m_editionHasBeenSet = false;
157
158 Aws::Vector<Tag> m_tags;
159 bool m_tagsHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace DirectoryService
164} // namespace Aws
AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override
CreateMicrosoftADRequest & WithDescription(DescriptionT &&value)
CreateMicrosoftADRequest & WithVpcSettings(VpcSettingsT &&value)
CreateMicrosoftADRequest & WithShortName(ShortNameT &&value)
AWS_DIRECTORYSERVICE_API CreateMicrosoftADRequest()=default
AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateMicrosoftADRequest & WithEdition(DirectoryEdition value)
CreateMicrosoftADRequest & WithPassword(PasswordT &&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