AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
CreateComputerRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ds/DirectoryServiceRequest.h>
10#include <aws/ds/DirectoryService_EXPORTS.h>
11#include <aws/ds/model/Attribute.h>
12
13#include <utility>
14
15namespace Aws {
16namespace DirectoryService {
17namespace Model {
18
26 public:
27 AWS_DIRECTORYSERVICE_API CreateComputerRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateComputer"; }
34
35 AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override;
36
37 AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
40
43 inline const Aws::String& GetDirectoryId() const { return m_directoryId; }
44 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
45 template <typename DirectoryIdT = Aws::String>
46 void SetDirectoryId(DirectoryIdT&& value) {
47 m_directoryIdHasBeenSet = true;
48 m_directoryId = std::forward<DirectoryIdT>(value);
49 }
50 template <typename DirectoryIdT = Aws::String>
51 CreateComputerRequest& WithDirectoryId(DirectoryIdT&& value) {
52 SetDirectoryId(std::forward<DirectoryIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetComputerName() const { return m_computerName; }
62 inline bool ComputerNameHasBeenSet() const { return m_computerNameHasBeenSet; }
63 template <typename ComputerNameT = Aws::String>
64 void SetComputerName(ComputerNameT&& value) {
65 m_computerNameHasBeenSet = true;
66 m_computerName = std::forward<ComputerNameT>(value);
67 }
68 template <typename ComputerNameT = Aws::String>
69 CreateComputerRequest& WithComputerName(ComputerNameT&& value) {
70 SetComputerName(std::forward<ComputerNameT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetPassword() const { return m_password; }
81 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
82 template <typename PasswordT = Aws::String>
83 void SetPassword(PasswordT&& value) {
84 m_passwordHasBeenSet = true;
85 m_password = std::forward<PasswordT>(value);
86 }
87 template <typename PasswordT = Aws::String>
88 CreateComputerRequest& WithPassword(PasswordT&& value) {
89 SetPassword(std::forward<PasswordT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetOrganizationalUnitDistinguishedName() const { return m_organizationalUnitDistinguishedName; }
100 inline bool OrganizationalUnitDistinguishedNameHasBeenSet() const { return m_organizationalUnitDistinguishedNameHasBeenSet; }
101 template <typename OrganizationalUnitDistinguishedNameT = Aws::String>
102 void SetOrganizationalUnitDistinguishedName(OrganizationalUnitDistinguishedNameT&& value) {
103 m_organizationalUnitDistinguishedNameHasBeenSet = true;
104 m_organizationalUnitDistinguishedName = std::forward<OrganizationalUnitDistinguishedNameT>(value);
105 }
106 template <typename OrganizationalUnitDistinguishedNameT = Aws::String>
107 CreateComputerRequest& WithOrganizationalUnitDistinguishedName(OrganizationalUnitDistinguishedNameT&& value) {
108 SetOrganizationalUnitDistinguishedName(std::forward<OrganizationalUnitDistinguishedNameT>(value));
109 return *this;
110 }
112
114
118 inline const Aws::Vector<Attribute>& GetComputerAttributes() const { return m_computerAttributes; }
119 inline bool ComputerAttributesHasBeenSet() const { return m_computerAttributesHasBeenSet; }
120 template <typename ComputerAttributesT = Aws::Vector<Attribute>>
121 void SetComputerAttributes(ComputerAttributesT&& value) {
122 m_computerAttributesHasBeenSet = true;
123 m_computerAttributes = std::forward<ComputerAttributesT>(value);
124 }
125 template <typename ComputerAttributesT = Aws::Vector<Attribute>>
126 CreateComputerRequest& WithComputerAttributes(ComputerAttributesT&& value) {
127 SetComputerAttributes(std::forward<ComputerAttributesT>(value));
128 return *this;
129 }
130 template <typename ComputerAttributesT = Attribute>
131 CreateComputerRequest& AddComputerAttributes(ComputerAttributesT&& value) {
132 m_computerAttributesHasBeenSet = true;
133 m_computerAttributes.emplace_back(std::forward<ComputerAttributesT>(value));
134 return *this;
135 }
137 private:
138 Aws::String m_directoryId;
139
140 Aws::String m_computerName;
141
142 Aws::String m_password;
143
144 Aws::String m_organizationalUnitDistinguishedName;
145
146 Aws::Vector<Attribute> m_computerAttributes;
147 bool m_directoryIdHasBeenSet = false;
148 bool m_computerNameHasBeenSet = false;
149 bool m_passwordHasBeenSet = false;
150 bool m_organizationalUnitDistinguishedNameHasBeenSet = false;
151 bool m_computerAttributesHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace DirectoryService
156} // namespace Aws
virtual const char * GetServiceRequestName() const override
void SetOrganizationalUnitDistinguishedName(OrganizationalUnitDistinguishedNameT &&value)
AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateComputerRequest & AddComputerAttributes(ComputerAttributesT &&value)
CreateComputerRequest & WithPassword(PasswordT &&value)
AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override
CreateComputerRequest & WithOrganizationalUnitDistinguishedName(OrganizationalUnitDistinguishedNameT &&value)
CreateComputerRequest & WithDirectoryId(DirectoryIdT &&value)
AWS_DIRECTORYSERVICE_API CreateComputerRequest()=default
CreateComputerRequest & WithComputerAttributes(ComputerAttributesT &&value)
const Aws::Vector< Attribute > & GetComputerAttributes() const
CreateComputerRequest & WithComputerName(ComputerNameT &&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