AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateUploadRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/devicefarm/DeviceFarmRequest.h>
9#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
10#include <aws/devicefarm/model/UploadType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace DeviceFarm {
16namespace Model {
17
25 public:
26 AWS_DEVICEFARM_API CreateUploadRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateUpload"; }
33
34 AWS_DEVICEFARM_API Aws::String SerializePayload() const override;
35
37
39
42 inline const Aws::String& GetProjectArn() const { return m_projectArn; }
43 inline bool ProjectArnHasBeenSet() const { return m_projectArnHasBeenSet; }
44 template <typename ProjectArnT = Aws::String>
45 void SetProjectArn(ProjectArnT&& value) {
46 m_projectArnHasBeenSet = true;
47 m_projectArn = std::forward<ProjectArnT>(value);
48 }
49 template <typename ProjectArnT = Aws::String>
50 CreateUploadRequest& WithProjectArn(ProjectArnT&& value) {
51 SetProjectArn(std::forward<ProjectArnT>(value));
52 return *this;
53 }
55
57
64 inline const Aws::String& GetName() const { return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 template <typename NameT = Aws::String>
67 void SetName(NameT&& value) {
68 m_nameHasBeenSet = true;
69 m_name = std::forward<NameT>(value);
70 }
71 template <typename NameT = Aws::String>
72 CreateUploadRequest& WithName(NameT&& value) {
73 SetName(std::forward<NameT>(value));
74 return *this;
75 }
77
79
104 inline UploadType GetType() const { return m_type; }
105 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
106 inline void SetType(UploadType value) {
107 m_typeHasBeenSet = true;
108 m_type = value;
109 }
111 SetType(value);
112 return *this;
113 }
115
117
121 inline const Aws::String& GetContentType() const { return m_contentType; }
122 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
123 template <typename ContentTypeT = Aws::String>
124 void SetContentType(ContentTypeT&& value) {
125 m_contentTypeHasBeenSet = true;
126 m_contentType = std::forward<ContentTypeT>(value);
127 }
128 template <typename ContentTypeT = Aws::String>
129 CreateUploadRequest& WithContentType(ContentTypeT&& value) {
130 SetContentType(std::forward<ContentTypeT>(value));
131 return *this;
132 }
134 private:
135 Aws::String m_projectArn;
136
137 Aws::String m_name;
138
140
141 Aws::String m_contentType;
142 bool m_projectArnHasBeenSet = false;
143 bool m_nameHasBeenSet = false;
144 bool m_typeHasBeenSet = false;
145 bool m_contentTypeHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace DeviceFarm
150} // 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