AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetProjectArn(const Aws::String& value) { m_projectArnHasBeenSet = true; m_projectArn = value; }
49 inline void SetProjectArn(Aws::String&& value) { m_projectArnHasBeenSet = true; m_projectArn = std::move(value); }
50 inline void SetProjectArn(const char* value) { m_projectArnHasBeenSet = true; m_projectArn.assign(value); }
51 inline CreateUploadRequest& WithProjectArn(const Aws::String& value) { SetProjectArn(value); return *this;}
52 inline CreateUploadRequest& WithProjectArn(Aws::String&& value) { SetProjectArn(std::move(value)); return *this;}
53 inline CreateUploadRequest& WithProjectArn(const char* value) { SetProjectArn(value); return *this;}
55
57
64 inline const Aws::String& GetName() const{ return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
67 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
68 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
69 inline CreateUploadRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
70 inline CreateUploadRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
71 inline CreateUploadRequest& WithName(const char* value) { SetName(value); return *this;}
73
75
100 inline const UploadType& GetType() const{ return m_type; }
101 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
102 inline void SetType(const UploadType& value) { m_typeHasBeenSet = true; m_type = value; }
103 inline void SetType(UploadType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
104 inline CreateUploadRequest& WithType(const UploadType& value) { SetType(value); return *this;}
105 inline CreateUploadRequest& WithType(UploadType&& value) { SetType(std::move(value)); return *this;}
107
109
113 inline const Aws::String& GetContentType() const{ return m_contentType; }
114 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
115 inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
116 inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
117 inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
118 inline CreateUploadRequest& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
119 inline CreateUploadRequest& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
120 inline CreateUploadRequest& WithContentType(const char* value) { SetContentType(value); return *this;}
122 private:
123
124 Aws::String m_projectArn;
125 bool m_projectArnHasBeenSet = false;
126
127 Aws::String m_name;
128 bool m_nameHasBeenSet = false;
129
130 UploadType m_type;
131 bool m_typeHasBeenSet = false;
132
133 Aws::String m_contentType;
134 bool m_contentTypeHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace DeviceFarm
139} // namespace Aws
CreateUploadRequest & WithProjectArn(Aws::String &&value)
CreateUploadRequest & WithType(const UploadType &value)
CreateUploadRequest & WithContentType(const Aws::String &value)
AWS_DEVICEFARM_API Aws::String SerializePayload() const override
CreateUploadRequest & WithName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateUploadRequest & WithProjectArn(const Aws::String &value)
void SetContentType(const Aws::String &value)
CreateUploadRequest & WithContentType(Aws::String &&value)
void SetProjectArn(const Aws::String &value)
CreateUploadRequest & WithName(const char *value)
CreateUploadRequest & WithContentType(const char *value)
CreateUploadRequest & WithName(const Aws::String &value)
AWS_DEVICEFARM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateUploadRequest & WithType(UploadType &&value)
CreateUploadRequest & WithProjectArn(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String