AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateUploadRequest.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
11#include <utility>
12
13namespace Aws {
14namespace DeviceFarm {
15namespace Model {
16
20 public:
21 AWS_DEVICEFARM_API UpdateUploadRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "UpdateUpload"; }
28
29 AWS_DEVICEFARM_API Aws::String SerializePayload() const override;
30
32
34
37 inline const Aws::String& GetArn() const { return m_arn; }
38 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
39 template <typename ArnT = Aws::String>
40 void SetArn(ArnT&& value) {
41 m_arnHasBeenSet = true;
42 m_arn = std::forward<ArnT>(value);
43 }
44 template <typename ArnT = Aws::String>
46 SetArn(std::forward<ArnT>(value));
47 return *this;
48 }
50
52
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
65 UpdateUploadRequest& WithName(NameT&& value) {
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetContentType() const { return m_contentType; }
76 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
77 template <typename ContentTypeT = Aws::String>
78 void SetContentType(ContentTypeT&& value) {
79 m_contentTypeHasBeenSet = true;
80 m_contentType = std::forward<ContentTypeT>(value);
81 }
82 template <typename ContentTypeT = Aws::String>
83 UpdateUploadRequest& WithContentType(ContentTypeT&& value) {
84 SetContentType(std::forward<ContentTypeT>(value));
85 return *this;
86 }
88
90
94 inline bool GetEditContent() const { return m_editContent; }
95 inline bool EditContentHasBeenSet() const { return m_editContentHasBeenSet; }
96 inline void SetEditContent(bool value) {
97 m_editContentHasBeenSet = true;
98 m_editContent = value;
99 }
101 SetEditContent(value);
102 return *this;
103 }
105 private:
106 Aws::String m_arn;
107
108 Aws::String m_name;
109
110 Aws::String m_contentType;
111
112 bool m_editContent{false};
113 bool m_arnHasBeenSet = false;
114 bool m_nameHasBeenSet = false;
115 bool m_contentTypeHasBeenSet = false;
116 bool m_editContentHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace DeviceFarm
121} // namespace Aws
AWS_DEVICEFARM_API Aws::String SerializePayload() const override
UpdateUploadRequest & WithName(NameT &&value)
UpdateUploadRequest & WithArn(ArnT &&value)
virtual const char * GetServiceRequestName() const override
AWS_DEVICEFARM_API UpdateUploadRequest()=default
AWS_DEVICEFARM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateUploadRequest & WithContentType(ContentTypeT &&value)
UpdateUploadRequest & WithEditContent(bool value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String