AWS SDK for C++  0.12.9
AWS SDK for C++
Computer.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 #include <aws/ds/model/Attribute.h>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace DirectoryService
31 {
32 namespace Model
33 {
34 
39  {
40  public:
41  Computer();
42  Computer(const Aws::Utils::Json::JsonValue& jsonValue);
43  Computer& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetComputerId() const{ return m_computerId; }
50 
54  inline void SetComputerId(const Aws::String& value) { m_computerIdHasBeenSet = true; m_computerId = value; }
55 
59  inline void SetComputerId(Aws::String&& value) { m_computerIdHasBeenSet = true; m_computerId = value; }
60 
64  inline void SetComputerId(const char* value) { m_computerIdHasBeenSet = true; m_computerId.assign(value); }
65 
69  inline Computer& WithComputerId(const Aws::String& value) { SetComputerId(value); return *this;}
70 
74  inline Computer& WithComputerId(Aws::String&& value) { SetComputerId(value); return *this;}
75 
79  inline Computer& WithComputerId(const char* value) { SetComputerId(value); return *this;}
80 
84  inline const Aws::String& GetComputerName() const{ return m_computerName; }
85 
89  inline void SetComputerName(const Aws::String& value) { m_computerNameHasBeenSet = true; m_computerName = value; }
90 
94  inline void SetComputerName(Aws::String&& value) { m_computerNameHasBeenSet = true; m_computerName = value; }
95 
99  inline void SetComputerName(const char* value) { m_computerNameHasBeenSet = true; m_computerName.assign(value); }
100 
104  inline Computer& WithComputerName(const Aws::String& value) { SetComputerName(value); return *this;}
105 
109  inline Computer& WithComputerName(Aws::String&& value) { SetComputerName(value); return *this;}
110 
114  inline Computer& WithComputerName(const char* value) { SetComputerName(value); return *this;}
115 
120  inline const Aws::Vector<Attribute>& GetComputerAttributes() const{ return m_computerAttributes; }
121 
126  inline void SetComputerAttributes(const Aws::Vector<Attribute>& value) { m_computerAttributesHasBeenSet = true; m_computerAttributes = value; }
127 
132  inline void SetComputerAttributes(Aws::Vector<Attribute>&& value) { m_computerAttributesHasBeenSet = true; m_computerAttributes = value; }
133 
138  inline Computer& WithComputerAttributes(const Aws::Vector<Attribute>& value) { SetComputerAttributes(value); return *this;}
139 
144  inline Computer& WithComputerAttributes(Aws::Vector<Attribute>&& value) { SetComputerAttributes(value); return *this;}
145 
150  inline Computer& AddComputerAttributes(const Attribute& value) { m_computerAttributesHasBeenSet = true; m_computerAttributes.push_back(value); return *this; }
151 
156  inline Computer& AddComputerAttributes(Attribute&& value) { m_computerAttributesHasBeenSet = true; m_computerAttributes.push_back(value); return *this; }
157 
158  private:
159  Aws::String m_computerId;
160  bool m_computerIdHasBeenSet;
161  Aws::String m_computerName;
162  bool m_computerNameHasBeenSet;
163  Aws::Vector<Attribute> m_computerAttributes;
164  bool m_computerAttributesHasBeenSet;
165  };
166 
167 } // namespace Model
168 } // namespace DirectoryService
169 } // namespace Aws
const Aws::String & GetComputerName() const
Definition: Computer.h:84
void SetComputerId(const Aws::String &value)
Definition: Computer.h:54
Computer & WithComputerName(Aws::String &&value)
Definition: Computer.h:109
#define AWS_DIRECTORYSERVICE_API
void SetComputerAttributes(Aws::Vector< Attribute > &&value)
Definition: Computer.h:132
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Computer & WithComputerId(const char *value)
Definition: Computer.h:79
Computer & WithComputerAttributes(const Aws::Vector< Attribute > &value)
Definition: Computer.h:138
Computer & WithComputerName(const char *value)
Definition: Computer.h:114
Computer & AddComputerAttributes(Attribute &&value)
Definition: Computer.h:156
const Aws::String & GetComputerId() const
Definition: Computer.h:49
Computer & WithComputerName(const Aws::String &value)
Definition: Computer.h:104
Computer & WithComputerAttributes(Aws::Vector< Attribute > &&value)
Definition: Computer.h:144
void SetComputerId(Aws::String &&value)
Definition: Computer.h:59
void SetComputerName(const Aws::String &value)
Definition: Computer.h:89
void SetComputerName(Aws::String &&value)
Definition: Computer.h:94
const Aws::Vector< Attribute > & GetComputerAttributes() const
Definition: Computer.h:120
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetComputerName(const char *value)
Definition: Computer.h:99
void SetComputerAttributes(const Aws::Vector< Attribute > &value)
Definition: Computer.h:126
Computer & AddComputerAttributes(const Attribute &value)
Definition: Computer.h:150
Computer & WithComputerId(Aws::String &&value)
Definition: Computer.h:74
JSON (JavaScript Object Notation).
Computer & WithComputerId(const Aws::String &value)
Definition: Computer.h:69
void SetComputerId(const char *value)
Definition: Computer.h:64