AWS SDK for C++  1.8.184
AWS SDK for C++
Computer.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/ds/model/Attribute.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace DirectoryService
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetComputerId() const{ return m_computerId; }
47 
51  inline bool ComputerIdHasBeenSet() const { return m_computerIdHasBeenSet; }
52 
56  inline void SetComputerId(const Aws::String& value) { m_computerIdHasBeenSet = true; m_computerId = value; }
57 
61  inline void SetComputerId(Aws::String&& value) { m_computerIdHasBeenSet = true; m_computerId = std::move(value); }
62 
66  inline void SetComputerId(const char* value) { m_computerIdHasBeenSet = true; m_computerId.assign(value); }
67 
71  inline Computer& WithComputerId(const Aws::String& value) { SetComputerId(value); return *this;}
72 
76  inline Computer& WithComputerId(Aws::String&& value) { SetComputerId(std::move(value)); return *this;}
77 
81  inline Computer& WithComputerId(const char* value) { SetComputerId(value); return *this;}
82 
83 
87  inline const Aws::String& GetComputerName() const{ return m_computerName; }
88 
92  inline bool ComputerNameHasBeenSet() const { return m_computerNameHasBeenSet; }
93 
97  inline void SetComputerName(const Aws::String& value) { m_computerNameHasBeenSet = true; m_computerName = value; }
98 
102  inline void SetComputerName(Aws::String&& value) { m_computerNameHasBeenSet = true; m_computerName = std::move(value); }
103 
107  inline void SetComputerName(const char* value) { m_computerNameHasBeenSet = true; m_computerName.assign(value); }
108 
112  inline Computer& WithComputerName(const Aws::String& value) { SetComputerName(value); return *this;}
113 
117  inline Computer& WithComputerName(Aws::String&& value) { SetComputerName(std::move(value)); return *this;}
118 
122  inline Computer& WithComputerName(const char* value) { SetComputerName(value); return *this;}
123 
124 
129  inline const Aws::Vector<Attribute>& GetComputerAttributes() const{ return m_computerAttributes; }
130 
135  inline bool ComputerAttributesHasBeenSet() const { return m_computerAttributesHasBeenSet; }
136 
141  inline void SetComputerAttributes(const Aws::Vector<Attribute>& value) { m_computerAttributesHasBeenSet = true; m_computerAttributes = value; }
142 
147  inline void SetComputerAttributes(Aws::Vector<Attribute>&& value) { m_computerAttributesHasBeenSet = true; m_computerAttributes = std::move(value); }
148 
153  inline Computer& WithComputerAttributes(const Aws::Vector<Attribute>& value) { SetComputerAttributes(value); return *this;}
154 
159  inline Computer& WithComputerAttributes(Aws::Vector<Attribute>&& value) { SetComputerAttributes(std::move(value)); return *this;}
160 
165  inline Computer& AddComputerAttributes(const Attribute& value) { m_computerAttributesHasBeenSet = true; m_computerAttributes.push_back(value); return *this; }
166 
171  inline Computer& AddComputerAttributes(Attribute&& value) { m_computerAttributesHasBeenSet = true; m_computerAttributes.push_back(std::move(value)); return *this; }
172 
173  private:
174 
175  Aws::String m_computerId;
176  bool m_computerIdHasBeenSet;
177 
178  Aws::String m_computerName;
179  bool m_computerNameHasBeenSet;
180 
181  Aws::Vector<Attribute> m_computerAttributes;
182  bool m_computerAttributesHasBeenSet;
183  };
184 
185 } // namespace Model
186 } // namespace DirectoryService
187 } // namespace Aws
Aws::DirectoryService::Model::Computer::Computer
Computer()
Aws::DirectoryService::Model::Computer::SetComputerId
void SetComputerId(const char *value)
Definition: Computer.h:66
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::DirectoryService::Model::Computer::WithComputerName
Computer & WithComputerName(Aws::String &&value)
Definition: Computer.h:117
Aws::DirectoryService::Model::Computer::SetComputerId
void SetComputerId(Aws::String &&value)
Definition: Computer.h:61
Aws::DirectoryService::Model::Computer::WithComputerId
Computer & WithComputerId(Aws::String &&value)
Definition: Computer.h:76
Attribute.h
Aws::DirectoryService::Model::Computer::SetComputerName
void SetComputerName(Aws::String &&value)
Definition: Computer.h:102
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::Computer::SetComputerId
void SetComputerId(const Aws::String &value)
Definition: Computer.h:56
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DirectoryService::Model::Computer::GetComputerId
const Aws::String & GetComputerId() const
Definition: Computer.h:46
Aws::DirectoryService::Model::Computer::GetComputerName
const Aws::String & GetComputerName() const
Definition: Computer.h:87
AWSVector.h
Aws::DirectoryService::Model::Computer::SetComputerAttributes
void SetComputerAttributes(Aws::Vector< Attribute > &&value)
Definition: Computer.h:147
Aws::DirectoryService::Model::Computer::WithComputerAttributes
Computer & WithComputerAttributes(const Aws::Vector< Attribute > &value)
Definition: Computer.h:153
Aws::DirectoryService::Model::Computer::operator=
Computer & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DirectoryService::Model::Computer::AddComputerAttributes
Computer & AddComputerAttributes(const Attribute &value)
Definition: Computer.h:165
Aws::DirectoryService::Model::Computer::GetComputerAttributes
const Aws::Vector< Attribute > & GetComputerAttributes() const
Definition: Computer.h:129
Aws::DirectoryService::Model::Computer::WithComputerName
Computer & WithComputerName(const Aws::String &value)
Definition: Computer.h:112
Aws::DirectoryService::Model::Computer::WithComputerId
Computer & WithComputerId(const char *value)
Definition: Computer.h:81
Aws::DirectoryService::Model::Attribute
Definition: Attribute.h:32
Aws::DirectoryService::Model::Computer
Definition: Computer.h:35
Aws::DirectoryService::Model::Computer::WithComputerName
Computer & WithComputerName(const char *value)
Definition: Computer.h:122
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::DirectoryService::Model::Computer::AddComputerAttributes
Computer & AddComputerAttributes(Attribute &&value)
Definition: Computer.h:171
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::DirectoryService::Model::Computer::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DirectoryService::Model::Computer::WithComputerAttributes
Computer & WithComputerAttributes(Aws::Vector< Attribute > &&value)
Definition: Computer.h:159
Aws::DirectoryService::Model::Computer::ComputerIdHasBeenSet
bool ComputerIdHasBeenSet() const
Definition: Computer.h:51
Aws::DirectoryService::Model::Computer::Computer
Computer(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::Computer::ComputerNameHasBeenSet
bool ComputerNameHasBeenSet() const
Definition: Computer.h:92
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::Computer::WithComputerId
Computer & WithComputerId(const Aws::String &value)
Definition: Computer.h:71
Aws::DirectoryService::Model::Computer::SetComputerName
void SetComputerName(const char *value)
Definition: Computer.h:107
Aws::DirectoryService::Model::Computer::SetComputerName
void SetComputerName(const Aws::String &value)
Definition: Computer.h:97
Aws::DirectoryService::Model::Computer::SetComputerAttributes
void SetComputerAttributes(const Aws::Vector< Attribute > &value)
Definition: Computer.h:141
Aws::DirectoryService::Model::Computer::ComputerAttributesHasBeenSet
bool ComputerAttributesHasBeenSet() const
Definition: Computer.h:135