AWS SDK for C++  0.14.3
AWS SDK for C++
CreateRemoteAccessSessionRequest.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
20 
21 namespace Aws
22 {
23 namespace DeviceFarm
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
43  inline const Aws::String& GetProjectArn() const{ return m_projectArn; }
44 
49  inline void SetProjectArn(const Aws::String& value) { m_projectArnHasBeenSet = true; m_projectArn = value; }
50 
55  inline void SetProjectArn(Aws::String&& value) { m_projectArnHasBeenSet = true; m_projectArn = value; }
56 
61  inline void SetProjectArn(const char* value) { m_projectArnHasBeenSet = true; m_projectArn.assign(value); }
62 
67  inline CreateRemoteAccessSessionRequest& WithProjectArn(const Aws::String& value) { SetProjectArn(value); return *this;}
68 
73  inline CreateRemoteAccessSessionRequest& WithProjectArn(Aws::String&& value) { SetProjectArn(value); return *this;}
74 
79  inline CreateRemoteAccessSessionRequest& WithProjectArn(const char* value) { SetProjectArn(value); return *this;}
80 
85  inline const Aws::String& GetDeviceArn() const{ return m_deviceArn; }
86 
91  inline void SetDeviceArn(const Aws::String& value) { m_deviceArnHasBeenSet = true; m_deviceArn = value; }
92 
97  inline void SetDeviceArn(Aws::String&& value) { m_deviceArnHasBeenSet = true; m_deviceArn = value; }
98 
103  inline void SetDeviceArn(const char* value) { m_deviceArnHasBeenSet = true; m_deviceArn.assign(value); }
104 
109  inline CreateRemoteAccessSessionRequest& WithDeviceArn(const Aws::String& value) { SetDeviceArn(value); return *this;}
110 
115  inline CreateRemoteAccessSessionRequest& WithDeviceArn(Aws::String&& value) { SetDeviceArn(value); return *this;}
116 
121  inline CreateRemoteAccessSessionRequest& WithDeviceArn(const char* value) { SetDeviceArn(value); return *this;}
122 
126  inline const Aws::String& GetName() const{ return m_name; }
127 
131  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
132 
136  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
137 
141  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
142 
146  inline CreateRemoteAccessSessionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
147 
151  inline CreateRemoteAccessSessionRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
152 
156  inline CreateRemoteAccessSessionRequest& WithName(const char* value) { SetName(value); return *this;}
157 
161  inline const CreateRemoteAccessSessionConfiguration& GetConfiguration() const{ return m_configuration; }
162 
166  inline void SetConfiguration(const CreateRemoteAccessSessionConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; }
167 
171  inline void SetConfiguration(CreateRemoteAccessSessionConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = value; }
172 
176  inline CreateRemoteAccessSessionRequest& WithConfiguration(const CreateRemoteAccessSessionConfiguration& value) { SetConfiguration(value); return *this;}
177 
181  inline CreateRemoteAccessSessionRequest& WithConfiguration(CreateRemoteAccessSessionConfiguration&& value) { SetConfiguration(value); return *this;}
182 
183  private:
184  Aws::String m_projectArn;
185  bool m_projectArnHasBeenSet;
186  Aws::String m_deviceArn;
187  bool m_deviceArnHasBeenSet;
188  Aws::String m_name;
189  bool m_nameHasBeenSet;
191  bool m_configurationHasBeenSet;
192  };
193 
194 } // namespace Model
195 } // namespace DeviceFarm
196 } // namespace Aws
#define AWS_DEVICEFARM_API
CreateRemoteAccessSessionRequest & WithDeviceArn(Aws::String &&value)
CreateRemoteAccessSessionRequest & WithProjectArn(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
CreateRemoteAccessSessionRequest & WithConfiguration(CreateRemoteAccessSessionConfiguration &&value)
const CreateRemoteAccessSessionConfiguration & GetConfiguration() const
void SetConfiguration(CreateRemoteAccessSessionConfiguration &&value)
CreateRemoteAccessSessionRequest & WithName(Aws::String &&value)
CreateRemoteAccessSessionRequest & WithName(const Aws::String &value)
void SetConfiguration(const CreateRemoteAccessSessionConfiguration &value)
CreateRemoteAccessSessionRequest & WithDeviceArn(const Aws::String &value)
CreateRemoteAccessSessionRequest & WithName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateRemoteAccessSessionRequest & WithDeviceArn(const char *value)
CreateRemoteAccessSessionRequest & WithProjectArn(const char *value)
JSON (JavaScript Object Notation).
CreateRemoteAccessSessionRequest & WithConfiguration(const CreateRemoteAccessSessionConfiguration &value)
CreateRemoteAccessSessionRequest & WithProjectArn(Aws::String &&value)