AWS SDK for C++  0.12.9
AWS SDK for C++
UpdateDevicePoolRequest.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 
44  inline const Aws::String& GetArn() const{ return m_arn; }
45 
50  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
51 
56  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = value; }
57 
62  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
63 
68  inline UpdateDevicePoolRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;}
69 
74  inline UpdateDevicePoolRequest& WithArn(Aws::String&& value) { SetArn(value); return *this;}
75 
80  inline UpdateDevicePoolRequest& WithArn(const char* value) { SetArn(value); return *this;}
81 
85  inline const Aws::String& GetName() const{ return m_name; }
86 
90  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
91 
95  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
96 
100  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
101 
105  inline UpdateDevicePoolRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
106 
110  inline UpdateDevicePoolRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
111 
115  inline UpdateDevicePoolRequest& WithName(const char* value) { SetName(value); return *this;}
116 
120  inline const Aws::String& GetDescription() const{ return m_description; }
121 
125  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
126 
130  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
131 
135  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
136 
140  inline UpdateDevicePoolRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
141 
145  inline UpdateDevicePoolRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
146 
150  inline UpdateDevicePoolRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
151 
157  inline const Aws::Vector<Rule>& GetRules() const{ return m_rules; }
158 
164  inline void SetRules(const Aws::Vector<Rule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
165 
171  inline void SetRules(Aws::Vector<Rule>&& value) { m_rulesHasBeenSet = true; m_rules = value; }
172 
178  inline UpdateDevicePoolRequest& WithRules(const Aws::Vector<Rule>& value) { SetRules(value); return *this;}
179 
185  inline UpdateDevicePoolRequest& WithRules(Aws::Vector<Rule>&& value) { SetRules(value); return *this;}
186 
192  inline UpdateDevicePoolRequest& AddRules(const Rule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
193 
199  inline UpdateDevicePoolRequest& AddRules(Rule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
200 
201  private:
202  Aws::String m_arn;
203  bool m_arnHasBeenSet;
204  Aws::String m_name;
205  bool m_nameHasBeenSet;
206  Aws::String m_description;
207  bool m_descriptionHasBeenSet;
208  Aws::Vector<Rule> m_rules;
209  bool m_rulesHasBeenSet;
210  };
211 
212 } // namespace Model
213 } // namespace DeviceFarm
214 } // namespace Aws
#define AWS_DEVICEFARM_API
UpdateDevicePoolRequest & WithRules(const Aws::Vector< Rule > &value)
UpdateDevicePoolRequest & WithArn(Aws::String &&value)
UpdateDevicePoolRequest & WithName(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
UpdateDevicePoolRequest & WithRules(Aws::Vector< Rule > &&value)
UpdateDevicePoolRequest & WithDescription(const char *value)
UpdateDevicePoolRequest & WithName(Aws::String &&value)
UpdateDevicePoolRequest & AddRules(Rule &&value)
UpdateDevicePoolRequest & AddRules(const Rule &value)
UpdateDevicePoolRequest & WithDescription(const Aws::String &value)
UpdateDevicePoolRequest & WithName(const char *value)
UpdateDevicePoolRequest & WithArn(const char *value)
UpdateDevicePoolRequest & WithArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetRules(const Aws::Vector< Rule > &value)
UpdateDevicePoolRequest & WithDescription(Aws::String &&value)
JSON (JavaScript Object Notation).