AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateUploadRequest.h
1
6#pragma once
7#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
8#include <aws/devicefarm/DeviceFarmRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/devicefarm/model/UploadType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace DeviceFarm
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_DEVICEFARM_API CreateUploadRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateUpload"; }
36
37 AWS_DEVICEFARM_API Aws::String SerializePayload() const override;
38
40
41
43
46 inline const Aws::String& GetProjectArn() const { return m_projectArn; }
47 inline bool ProjectArnHasBeenSet() const { return m_projectArnHasBeenSet; }
48 template<typename ProjectArnT = Aws::String>
49 void SetProjectArn(ProjectArnT&& value) { m_projectArnHasBeenSet = true; m_projectArn = std::forward<ProjectArnT>(value); }
50 template<typename ProjectArnT = Aws::String>
51 CreateUploadRequest& WithProjectArn(ProjectArnT&& value) { SetProjectArn(std::forward<ProjectArnT>(value)); return *this;}
53
55
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template<typename NameT = Aws::String>
65 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
66 template<typename NameT = Aws::String>
67 CreateUploadRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
69
71
96 inline UploadType GetType() const { return m_type; }
97 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
98 inline void SetType(UploadType value) { m_typeHasBeenSet = true; m_type = value; }
99 inline CreateUploadRequest& WithType(UploadType value) { SetType(value); return *this;}
101
103
107 inline const Aws::String& GetContentType() const { return m_contentType; }
108 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
109 template<typename ContentTypeT = Aws::String>
110 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
111 template<typename ContentTypeT = Aws::String>
112 CreateUploadRequest& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
114 private:
115
116 Aws::String m_projectArn;
117 bool m_projectArnHasBeenSet = false;
118
119 Aws::String m_name;
120 bool m_nameHasBeenSet = false;
121
123 bool m_typeHasBeenSet = false;
124
125 Aws::String m_contentType;
126 bool m_contentTypeHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace DeviceFarm
131} // namespace Aws
CreateUploadRequest & WithName(NameT &&value)
AWS_DEVICEFARM_API Aws::String SerializePayload() const override
CreateUploadRequest & WithContentType(ContentTypeT &&value)
virtual const char * GetServiceRequestName() const override
CreateUploadRequest & WithType(UploadType value)
AWS_DEVICEFARM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_DEVICEFARM_API CreateUploadRequest()=default
CreateUploadRequest & WithProjectArn(ProjectArnT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String