AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Computer.h
1
6#pragma once
7#include <aws/ds/DirectoryService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ds/model/Attribute.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DirectoryService
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_DIRECTORYSERVICE_API Computer() = default;
38 AWS_DIRECTORYSERVICE_API Computer(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DIRECTORYSERVICE_API Computer& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetComputerId() const { return m_computerId; }
48 inline bool ComputerIdHasBeenSet() const { return m_computerIdHasBeenSet; }
49 template<typename ComputerIdT = Aws::String>
50 void SetComputerId(ComputerIdT&& value) { m_computerIdHasBeenSet = true; m_computerId = std::forward<ComputerIdT>(value); }
51 template<typename ComputerIdT = Aws::String>
52 Computer& WithComputerId(ComputerIdT&& value) { SetComputerId(std::forward<ComputerIdT>(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 Computer& WithComputerName(ComputerNameT&& value) { SetComputerName(std::forward<ComputerNameT>(value)); return *this;}
66
68
72 inline const Aws::Vector<Attribute>& GetComputerAttributes() const { return m_computerAttributes; }
73 inline bool ComputerAttributesHasBeenSet() const { return m_computerAttributesHasBeenSet; }
74 template<typename ComputerAttributesT = Aws::Vector<Attribute>>
75 void SetComputerAttributes(ComputerAttributesT&& value) { m_computerAttributesHasBeenSet = true; m_computerAttributes = std::forward<ComputerAttributesT>(value); }
76 template<typename ComputerAttributesT = Aws::Vector<Attribute>>
77 Computer& WithComputerAttributes(ComputerAttributesT&& value) { SetComputerAttributes(std::forward<ComputerAttributesT>(value)); return *this;}
78 template<typename ComputerAttributesT = Attribute>
79 Computer& AddComputerAttributes(ComputerAttributesT&& value) { m_computerAttributesHasBeenSet = true; m_computerAttributes.emplace_back(std::forward<ComputerAttributesT>(value)); return *this; }
81 private:
82
83 Aws::String m_computerId;
84 bool m_computerIdHasBeenSet = false;
85
86 Aws::String m_computerName;
87 bool m_computerNameHasBeenSet = false;
88
89 Aws::Vector<Attribute> m_computerAttributes;
90 bool m_computerAttributesHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace DirectoryService
95} // 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:52
AWS_DIRECTORYSERVICE_API Computer & operator=(Aws::Utils::Json::JsonView jsonValue)
Computer & WithComputerName(ComputerNameT &&value)
Definition Computer.h:64
void SetComputerAttributes(ComputerAttributesT &&value)
Definition Computer.h:75
void SetComputerName(ComputerNameT &&value)
Definition Computer.h:62
const Aws::Vector< Attribute > & GetComputerAttributes() const
Definition Computer.h:72
Computer & WithComputerAttributes(ComputerAttributesT &&value)
Definition Computer.h:77
AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DIRECTORYSERVICE_API Computer()=default
const Aws::String & GetComputerId() const
Definition Computer.h:47
Computer & AddComputerAttributes(ComputerAttributesT &&value)
Definition Computer.h:79
void SetComputerId(ComputerIdT &&value)
Definition Computer.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue