AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateComputerRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/ds/model/Attribute.h>
12#include <utility>
13
14namespace Aws
15{
16namespace DirectoryService
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_DIRECTORYSERVICE_API CreateComputerRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateComputer"; }
37
38 AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override;
39
40 AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41
42
44
47 inline const Aws::String& GetDirectoryId() const { return m_directoryId; }
48 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
49 template<typename DirectoryIdT = Aws::String>
50 void SetDirectoryId(DirectoryIdT&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::forward<DirectoryIdT>(value); }
51 template<typename DirectoryIdT = Aws::String>
52 CreateComputerRequest& WithDirectoryId(DirectoryIdT&& value) { SetDirectoryId(std::forward<DirectoryIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetComputerName() const { return m_computerName; }
60 inline bool ComputerNameHasBeenSet() const { return m_computerNameHasBeenSet; }
61 template<typename ComputerNameT = Aws::String>
62 void SetComputerName(ComputerNameT&& value) { m_computerNameHasBeenSet = true; m_computerName = std::forward<ComputerNameT>(value); }
63 template<typename ComputerNameT = Aws::String>
64 CreateComputerRequest& WithComputerName(ComputerNameT&& value) { SetComputerName(std::forward<ComputerNameT>(value)); return *this;}
66
68
72 inline const Aws::String& GetPassword() const { return m_password; }
73 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
74 template<typename PasswordT = Aws::String>
75 void SetPassword(PasswordT&& value) { m_passwordHasBeenSet = true; m_password = std::forward<PasswordT>(value); }
76 template<typename PasswordT = Aws::String>
77 CreateComputerRequest& WithPassword(PasswordT&& value) { SetPassword(std::forward<PasswordT>(value)); return *this;}
79
81
85 inline const Aws::String& GetOrganizationalUnitDistinguishedName() const { return m_organizationalUnitDistinguishedName; }
86 inline bool OrganizationalUnitDistinguishedNameHasBeenSet() const { return m_organizationalUnitDistinguishedNameHasBeenSet; }
87 template<typename OrganizationalUnitDistinguishedNameT = Aws::String>
88 void SetOrganizationalUnitDistinguishedName(OrganizationalUnitDistinguishedNameT&& value) { m_organizationalUnitDistinguishedNameHasBeenSet = true; m_organizationalUnitDistinguishedName = std::forward<OrganizationalUnitDistinguishedNameT>(value); }
89 template<typename OrganizationalUnitDistinguishedNameT = Aws::String>
90 CreateComputerRequest& WithOrganizationalUnitDistinguishedName(OrganizationalUnitDistinguishedNameT&& value) { SetOrganizationalUnitDistinguishedName(std::forward<OrganizationalUnitDistinguishedNameT>(value)); return *this;}
92
94
98 inline const Aws::Vector<Attribute>& GetComputerAttributes() const { return m_computerAttributes; }
99 inline bool ComputerAttributesHasBeenSet() const { return m_computerAttributesHasBeenSet; }
100 template<typename ComputerAttributesT = Aws::Vector<Attribute>>
101 void SetComputerAttributes(ComputerAttributesT&& value) { m_computerAttributesHasBeenSet = true; m_computerAttributes = std::forward<ComputerAttributesT>(value); }
102 template<typename ComputerAttributesT = Aws::Vector<Attribute>>
103 CreateComputerRequest& WithComputerAttributes(ComputerAttributesT&& value) { SetComputerAttributes(std::forward<ComputerAttributesT>(value)); return *this;}
104 template<typename ComputerAttributesT = Attribute>
105 CreateComputerRequest& AddComputerAttributes(ComputerAttributesT&& value) { m_computerAttributesHasBeenSet = true; m_computerAttributes.emplace_back(std::forward<ComputerAttributesT>(value)); return *this; }
107 private:
108
109 Aws::String m_directoryId;
110 bool m_directoryIdHasBeenSet = false;
111
112 Aws::String m_computerName;
113 bool m_computerNameHasBeenSet = false;
114
115 Aws::String m_password;
116 bool m_passwordHasBeenSet = false;
117
118 Aws::String m_organizationalUnitDistinguishedName;
119 bool m_organizationalUnitDistinguishedNameHasBeenSet = false;
120
121 Aws::Vector<Attribute> m_computerAttributes;
122 bool m_computerAttributesHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace DirectoryService
127} // 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