AWS SDK for C++  0.12.9
AWS SDK for C++
CreateUploadRequest.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 
42  inline const Aws::String& GetProjectArn() const{ return m_projectArn; }
43 
47  inline void SetProjectArn(const Aws::String& value) { m_projectArnHasBeenSet = true; m_projectArn = value; }
48 
52  inline void SetProjectArn(Aws::String&& value) { m_projectArnHasBeenSet = true; m_projectArn = value; }
53 
57  inline void SetProjectArn(const char* value) { m_projectArnHasBeenSet = true; m_projectArn.assign(value); }
58 
62  inline CreateUploadRequest& WithProjectArn(const Aws::String& value) { SetProjectArn(value); return *this;}
63 
67  inline CreateUploadRequest& WithProjectArn(Aws::String&& value) { SetProjectArn(value); return *this;}
68 
72  inline CreateUploadRequest& WithProjectArn(const char* value) { SetProjectArn(value); return *this;}
73 
77  inline const Aws::String& GetName() const{ return m_name; }
78 
82  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
83 
87  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
88 
92  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
93 
97  inline CreateUploadRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
98 
102  inline CreateUploadRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
103 
107  inline CreateUploadRequest& WithName(const char* value) { SetName(value); return *this;}
108 
131  inline const UploadType& GetType() const{ return m_type; }
132 
155  inline void SetType(const UploadType& value) { m_typeHasBeenSet = true; m_type = value; }
156 
179  inline void SetType(UploadType&& value) { m_typeHasBeenSet = true; m_type = value; }
180 
203  inline CreateUploadRequest& WithType(const UploadType& value) { SetType(value); return *this;}
204 
227  inline CreateUploadRequest& WithType(UploadType&& value) { SetType(value); return *this;}
228 
232  inline const Aws::String& GetContentType() const{ return m_contentType; }
233 
237  inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
238 
242  inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
243 
247  inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
248 
252  inline CreateUploadRequest& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
253 
257  inline CreateUploadRequest& WithContentType(Aws::String&& value) { SetContentType(value); return *this;}
258 
262  inline CreateUploadRequest& WithContentType(const char* value) { SetContentType(value); return *this;}
263 
264  private:
265  Aws::String m_projectArn;
266  bool m_projectArnHasBeenSet;
267  Aws::String m_name;
268  bool m_nameHasBeenSet;
269  UploadType m_type;
270  bool m_typeHasBeenSet;
271  Aws::String m_contentType;
272  bool m_contentTypeHasBeenSet;
273  };
274 
275 } // namespace Model
276 } // namespace DeviceFarm
277 } // namespace Aws
void SetProjectArn(const Aws::String &value)
#define AWS_DEVICEFARM_API
CreateUploadRequest & WithType(const UploadType &value)
void SetContentType(const Aws::String &value)
CreateUploadRequest & WithContentType(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
CreateUploadRequest & WithProjectArn(const char *value)
CreateUploadRequest & WithName(const char *value)
CreateUploadRequest & WithName(Aws::String &&value)
CreateUploadRequest & WithContentType(const Aws::String &value)
CreateUploadRequest & WithName(const Aws::String &value)
CreateUploadRequest & WithType(UploadType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateUploadRequest & WithProjectArn(Aws::String &&value)
CreateUploadRequest & WithContentType(Aws::String &&value)
JSON (JavaScript Object Notation).
CreateUploadRequest & WithProjectArn(const Aws::String &value)