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

Contains information about a computer account in a directory.

See * Also:

AWS API * Reference

*/ class Computer { public: AWS_DIRECTORYSERVICE_API Computer(); AWS_DIRECTORYSERVICE_API Computer(Aws::Utils::Json::JsonView jsonValue); AWS_DIRECTORYSERVICE_API Computer& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The identifier of the computer.

*/ inline const Aws::String& GetComputerId() const{ return m_computerId; } /** *

The identifier of the computer.

*/ inline bool ComputerIdHasBeenSet() const { return m_computerIdHasBeenSet; } /** *

The identifier of the computer.

*/ inline void SetComputerId(const Aws::String& value) { m_computerIdHasBeenSet = true; m_computerId = value; } /** *

The identifier of the computer.

*/ inline void SetComputerId(Aws::String&& value) { m_computerIdHasBeenSet = true; m_computerId = std::move(value); } /** *

The identifier of the computer.

*/ inline void SetComputerId(const char* value) { m_computerIdHasBeenSet = true; m_computerId.assign(value); } /** *

The identifier of the computer.

*/ inline Computer& WithComputerId(const Aws::String& value) { SetComputerId(value); return *this;} /** *

The identifier of the computer.

*/ inline Computer& WithComputerId(Aws::String&& value) { SetComputerId(std::move(value)); return *this;} /** *

The identifier of the computer.

*/ inline Computer& WithComputerId(const char* value) { SetComputerId(value); return *this;} /** *

The computer name.

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

The computer name.

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

The computer name.

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

The computer name.

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

The computer name.

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

The computer name.

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

The computer name.

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

The computer name.

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

An array of Attribute objects containing the LDAP attributes that * belong to the computer account.

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

An array of Attribute objects containing the LDAP attributes that * belong to the computer account.

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

An array of Attribute objects containing the LDAP attributes that * belong to the computer account.

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

An array of Attribute objects containing the LDAP attributes that * belong to the computer account.

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

An array of Attribute objects containing the LDAP attributes that * belong to the computer account.

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

An array of Attribute objects containing the LDAP attributes that * belong to the computer account.

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

An array of Attribute objects containing the LDAP attributes that * belong to the computer account.

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

An array of Attribute objects containing the LDAP attributes that * belong to the computer account.

*/ inline Computer& AddComputerAttributes(Attribute&& value) { m_computerAttributesHasBeenSet = true; m_computerAttributes.push_back(std::move(value)); return *this; } private: Aws::String m_computerId; bool m_computerIdHasBeenSet = false; Aws::String m_computerName; bool m_computerNameHasBeenSet = false; Aws::Vector m_computerAttributes; bool m_computerAttributesHasBeenSet = false; }; } // namespace Model } // namespace DirectoryService } // namespace Aws