AWS SDK for C++  0.14.3
AWS SDK for C++
CreateDevicePoolRequest.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
21 
22 namespace Aws
23 {
24 namespace DeviceFarm
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
43  inline const Aws::String& GetProjectArn() const{ return m_projectArn; }
44 
48  inline void SetProjectArn(const Aws::String& value) { m_projectArnHasBeenSet = true; m_projectArn = value; }
49 
53  inline void SetProjectArn(Aws::String&& value) { m_projectArnHasBeenSet = true; m_projectArn = value; }
54 
58  inline void SetProjectArn(const char* value) { m_projectArnHasBeenSet = true; m_projectArn.assign(value); }
59 
63  inline CreateDevicePoolRequest& WithProjectArn(const Aws::String& value) { SetProjectArn(value); return *this;}
64 
68  inline CreateDevicePoolRequest& WithProjectArn(Aws::String&& value) { SetProjectArn(value); return *this;}
69 
73  inline CreateDevicePoolRequest& WithProjectArn(const char* value) { SetProjectArn(value); return *this;}
74 
78  inline const Aws::String& GetName() const{ return m_name; }
79 
83  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
84 
88  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
89 
93  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
94 
98  inline CreateDevicePoolRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
99 
103  inline CreateDevicePoolRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
104 
108  inline CreateDevicePoolRequest& WithName(const char* value) { SetName(value); return *this;}
109 
113  inline const Aws::String& GetDescription() const{ return m_description; }
114 
118  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
119 
123  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
124 
128  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
129 
133  inline CreateDevicePoolRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
134 
138  inline CreateDevicePoolRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
139 
143  inline CreateDevicePoolRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
144 
148  inline const Aws::Vector<Rule>& GetRules() const{ return m_rules; }
149 
153  inline void SetRules(const Aws::Vector<Rule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
154 
158  inline void SetRules(Aws::Vector<Rule>&& value) { m_rulesHasBeenSet = true; m_rules = value; }
159 
163  inline CreateDevicePoolRequest& WithRules(const Aws::Vector<Rule>& value) { SetRules(value); return *this;}
164 
168  inline CreateDevicePoolRequest& WithRules(Aws::Vector<Rule>&& value) { SetRules(value); return *this;}
169 
173  inline CreateDevicePoolRequest& AddRules(const Rule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
174 
178  inline CreateDevicePoolRequest& AddRules(Rule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
179 
180  private:
181  Aws::String m_projectArn;
182  bool m_projectArnHasBeenSet;
183  Aws::String m_name;
184  bool m_nameHasBeenSet;
185  Aws::String m_description;
186  bool m_descriptionHasBeenSet;
187  Aws::Vector<Rule> m_rules;
188  bool m_rulesHasBeenSet;
189  };
190 
191 } // namespace Model
192 } // namespace DeviceFarm
193 } // namespace Aws
#define AWS_DEVICEFARM_API
CreateDevicePoolRequest & WithRules(Aws::Vector< Rule > &&value)
void SetRules(const Aws::Vector< Rule > &value)
CreateDevicePoolRequest & AddRules(Rule &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
CreateDevicePoolRequest & WithProjectArn(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
CreateDevicePoolRequest & WithProjectArn(const char *value)
CreateDevicePoolRequest & WithName(const Aws::String &value)
CreateDevicePoolRequest & WithDescription(const Aws::String &value)
CreateDevicePoolRequest & WithName(const char *value)
CreateDevicePoolRequest & AddRules(const Rule &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateDevicePoolRequest & WithDescription(const char *value)
CreateDevicePoolRequest & WithName(Aws::String &&value)
CreateDevicePoolRequest & WithDescription(Aws::String &&value)
CreateDevicePoolRequest & WithRules(const Aws::Vector< Rule > &value)
CreateDevicePoolRequest & WithProjectArn(const Aws::String &value)
JSON (JavaScript Object Notation).