AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
Computer.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/DirectoryService_EXPORTS.h>
10#include <aws/ds/model/Attribute.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DirectoryService {
22namespace Model {
23
30class Computer {
31 public:
32 AWS_DIRECTORYSERVICE_API Computer() = default;
33 AWS_DIRECTORYSERVICE_API Computer(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DIRECTORYSERVICE_API Computer& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetComputerId() const { return m_computerId; }
42 inline bool ComputerIdHasBeenSet() const { return m_computerIdHasBeenSet; }
43 template <typename ComputerIdT = Aws::String>
44 void SetComputerId(ComputerIdT&& value) {
45 m_computerIdHasBeenSet = true;
46 m_computerId = std::forward<ComputerIdT>(value);
47 }
48 template <typename ComputerIdT = Aws::String>
49 Computer& WithComputerId(ComputerIdT&& value) {
50 SetComputerId(std::forward<ComputerIdT>(value));
51 return *this;
52 }
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) {
63 m_computerNameHasBeenSet = true;
64 m_computerName = std::forward<ComputerNameT>(value);
65 }
66 template <typename ComputerNameT = Aws::String>
67 Computer& WithComputerName(ComputerNameT&& value) {
68 SetComputerName(std::forward<ComputerNameT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::Vector<Attribute>& GetComputerAttributes() const { return m_computerAttributes; }
79 inline bool ComputerAttributesHasBeenSet() const { return m_computerAttributesHasBeenSet; }
80 template <typename ComputerAttributesT = Aws::Vector<Attribute>>
81 void SetComputerAttributes(ComputerAttributesT&& value) {
82 m_computerAttributesHasBeenSet = true;
83 m_computerAttributes = std::forward<ComputerAttributesT>(value);
84 }
85 template <typename ComputerAttributesT = Aws::Vector<Attribute>>
86 Computer& WithComputerAttributes(ComputerAttributesT&& value) {
87 SetComputerAttributes(std::forward<ComputerAttributesT>(value));
88 return *this;
89 }
90 template <typename ComputerAttributesT = Attribute>
91 Computer& AddComputerAttributes(ComputerAttributesT&& value) {
92 m_computerAttributesHasBeenSet = true;
93 m_computerAttributes.emplace_back(std::forward<ComputerAttributesT>(value));
94 return *this;
95 }
97 private:
98 Aws::String m_computerId;
99
100 Aws::String m_computerName;
101
102 Aws::Vector<Attribute> m_computerAttributes;
103 bool m_computerIdHasBeenSet = false;
104 bool m_computerNameHasBeenSet = false;
105 bool m_computerAttributesHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace DirectoryService
110} // namespace Aws
const Aws::String & GetComputerName() const
Definition Computer.h:59
AWS_DIRECTORYSERVICE_API Computer(Aws::Utils::Json::JsonView jsonValue)
Computer & WithComputerId(ComputerIdT &&value)
Definition Computer.h:49
AWS_DIRECTORYSERVICE_API Computer & operator=(Aws::Utils::Json::JsonView jsonValue)
Computer & WithComputerName(ComputerNameT &&value)
Definition Computer.h:67
void SetComputerAttributes(ComputerAttributesT &&value)
Definition Computer.h:81
void SetComputerName(ComputerNameT &&value)
Definition Computer.h:62
const Aws::Vector< Attribute > & GetComputerAttributes() const
Definition Computer.h:78
Computer & WithComputerAttributes(ComputerAttributesT &&value)
Definition Computer.h:86
AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DIRECTORYSERVICE_API Computer()=default
const Aws::String & GetComputerId() const
Definition Computer.h:41
Computer & AddComputerAttributes(ComputerAttributesT &&value)
Definition Computer.h:91
void SetComputerId(ComputerIdT &&value)
Definition Computer.h:44
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue