/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace DirectoryService { namespace Model { /** *

Contains the inputs for the CreateComputer operation.

See * Also:

AWS * API Reference

*/ class CreateComputerRequest : public DirectoryServiceRequest { public: AWS_DIRECTORYSERVICE_API CreateComputerRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateComputer"; } AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override; AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The identifier of the directory in which to create the computer account.

*/ inline const Aws::String& GetDirectoryId() const{ return m_directoryId; } /** *

The identifier of the directory in which to create the computer account.

*/ inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; } /** *

The identifier of the directory in which to create the computer account.

*/ inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; } /** *

The identifier of the directory in which to create the computer account.

*/ inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); } /** *

The identifier of the directory in which to create the computer account.

*/ inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); } /** *

The identifier of the directory in which to create the computer account.

*/ inline CreateComputerRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;} /** *

The identifier of the directory in which to create the computer account.

*/ inline CreateComputerRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;} /** *

The identifier of the directory in which to create the computer account.

*/ inline CreateComputerRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;} /** *

The name of the computer account.

*/ inline const Aws::String& GetComputerName() const{ return m_computerName; } /** *

The name of the computer account.

*/ inline bool ComputerNameHasBeenSet() const { return m_computerNameHasBeenSet; } /** *

The name of the computer account.

*/ inline void SetComputerName(const Aws::String& value) { m_computerNameHasBeenSet = true; m_computerName = value; } /** *

The name of the computer account.

*/ inline void SetComputerName(Aws::String&& value) { m_computerNameHasBeenSet = true; m_computerName = std::move(value); } /** *

The name of the computer account.

*/ inline void SetComputerName(const char* value) { m_computerNameHasBeenSet = true; m_computerName.assign(value); } /** *

The name of the computer account.

*/ inline CreateComputerRequest& WithComputerName(const Aws::String& value) { SetComputerName(value); return *this;} /** *

The name of the computer account.

*/ inline CreateComputerRequest& WithComputerName(Aws::String&& value) { SetComputerName(std::move(value)); return *this;} /** *

The name of the computer account.

*/ inline CreateComputerRequest& WithComputerName(const char* value) { SetComputerName(value); return *this;} /** *

A one-time password that is used to join the computer to the directory. You * should generate a random, strong password to use for this parameter.

*/ inline const Aws::String& GetPassword() const{ return m_password; } /** *

A one-time password that is used to join the computer to the directory. You * should generate a random, strong password to use for this parameter.

*/ inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; } /** *

A one-time password that is used to join the computer to the directory. You * should generate a random, strong password to use for this parameter.

*/ inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; } /** *

A one-time password that is used to join the computer to the directory. You * should generate a random, strong password to use for this parameter.

*/ inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); } /** *

A one-time password that is used to join the computer to the directory. You * should generate a random, strong password to use for this parameter.

*/ inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); } /** *

A one-time password that is used to join the computer to the directory. You * should generate a random, strong password to use for this parameter.

*/ inline CreateComputerRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;} /** *

A one-time password that is used to join the computer to the directory. You * should generate a random, strong password to use for this parameter.

*/ inline CreateComputerRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;} /** *

A one-time password that is used to join the computer to the directory. You * should generate a random, strong password to use for this parameter.

*/ inline CreateComputerRequest& WithPassword(const char* value) { SetPassword(value); return *this;} /** *

The fully-qualified distinguished name of the organizational unit to place * the computer account in.

*/ inline const Aws::String& GetOrganizationalUnitDistinguishedName() const{ return m_organizationalUnitDistinguishedName; } /** *

The fully-qualified distinguished name of the organizational unit to place * the computer account in.

*/ inline bool OrganizationalUnitDistinguishedNameHasBeenSet() const { return m_organizationalUnitDistinguishedNameHasBeenSet; } /** *

The fully-qualified distinguished name of the organizational unit to place * the computer account in.

*/ inline void SetOrganizationalUnitDistinguishedName(const Aws::String& value) { m_organizationalUnitDistinguishedNameHasBeenSet = true; m_organizationalUnitDistinguishedName = value; } /** *

The fully-qualified distinguished name of the organizational unit to place * the computer account in.

*/ inline void SetOrganizationalUnitDistinguishedName(Aws::String&& value) { m_organizationalUnitDistinguishedNameHasBeenSet = true; m_organizationalUnitDistinguishedName = std::move(value); } /** *

The fully-qualified distinguished name of the organizational unit to place * the computer account in.

*/ inline void SetOrganizationalUnitDistinguishedName(const char* value) { m_organizationalUnitDistinguishedNameHasBeenSet = true; m_organizationalUnitDistinguishedName.assign(value); } /** *

The fully-qualified distinguished name of the organizational unit to place * the computer account in.

*/ inline CreateComputerRequest& WithOrganizationalUnitDistinguishedName(const Aws::String& value) { SetOrganizationalUnitDistinguishedName(value); return *this;} /** *

The fully-qualified distinguished name of the organizational unit to place * the computer account in.

*/ inline CreateComputerRequest& WithOrganizationalUnitDistinguishedName(Aws::String&& value) { SetOrganizationalUnitDistinguishedName(std::move(value)); return *this;} /** *

The fully-qualified distinguished name of the organizational unit to place * the computer account in.

*/ inline CreateComputerRequest& WithOrganizationalUnitDistinguishedName(const char* value) { SetOrganizationalUnitDistinguishedName(value); return *this;} /** *

An array of Attribute objects that contain any LDAP attributes to * apply to the computer account.

*/ inline const Aws::Vector& GetComputerAttributes() const{ return m_computerAttributes; } /** *

An array of Attribute objects that contain any LDAP attributes to * apply to the computer account.

*/ inline bool ComputerAttributesHasBeenSet() const { return m_computerAttributesHasBeenSet; } /** *

An array of Attribute objects that contain any LDAP attributes to * apply to the computer account.

*/ inline void SetComputerAttributes(const Aws::Vector& value) { m_computerAttributesHasBeenSet = true; m_computerAttributes = value; } /** *

An array of Attribute objects that contain any LDAP attributes to * apply to the computer account.

*/ inline void SetComputerAttributes(Aws::Vector&& value) { m_computerAttributesHasBeenSet = true; m_computerAttributes = std::move(value); } /** *

An array of Attribute objects that contain any LDAP attributes to * apply to the computer account.

*/ inline CreateComputerRequest& WithComputerAttributes(const Aws::Vector& value) { SetComputerAttributes(value); return *this;} /** *

An array of Attribute objects that contain any LDAP attributes to * apply to the computer account.

*/ inline CreateComputerRequest& WithComputerAttributes(Aws::Vector&& value) { SetComputerAttributes(std::move(value)); return *this;} /** *

An array of Attribute objects that contain any LDAP attributes to * apply to the computer account.

*/ inline CreateComputerRequest& AddComputerAttributes(const Attribute& value) { m_computerAttributesHasBeenSet = true; m_computerAttributes.push_back(value); return *this; } /** *

An array of Attribute objects that contain any LDAP attributes to * apply to the computer account.

*/ inline CreateComputerRequest& AddComputerAttributes(Attribute&& value) { m_computerAttributesHasBeenSet = true; m_computerAttributes.push_back(std::move(value)); return *this; } private: Aws::String m_directoryId; bool m_directoryIdHasBeenSet = false; Aws::String m_computerName; bool m_computerNameHasBeenSet = false; Aws::String m_password; bool m_passwordHasBeenSet = false; Aws::String m_organizationalUnitDistinguishedName; bool m_organizationalUnitDistinguishedNameHasBeenSet = false; Aws::Vector m_computerAttributes; bool m_computerAttributesHasBeenSet = false; }; } // namespace Model } // namespace DirectoryService } // namespace Aws