AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SetStatusRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/datapipeline/DataPipelineRequest.h>
10#include <aws/datapipeline/DataPipeline_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace DataPipeline {
16namespace Model {
17
24 public:
25 AWS_DATAPIPELINE_API SetStatusRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "SetStatus"; }
32
33 AWS_DATAPIPELINE_API Aws::String SerializePayload() const override;
34
35 AWS_DATAPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
41 inline const Aws::String& GetPipelineId() const { return m_pipelineId; }
42 inline bool PipelineIdHasBeenSet() const { return m_pipelineIdHasBeenSet; }
43 template <typename PipelineIdT = Aws::String>
44 void SetPipelineId(PipelineIdT&& value) {
45 m_pipelineIdHasBeenSet = true;
46 m_pipelineId = std::forward<PipelineIdT>(value);
47 }
48 template <typename PipelineIdT = Aws::String>
49 SetStatusRequest& WithPipelineId(PipelineIdT&& value) {
50 SetPipelineId(std::forward<PipelineIdT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Vector<Aws::String>& GetObjectIds() const { return m_objectIds; }
61 inline bool ObjectIdsHasBeenSet() const { return m_objectIdsHasBeenSet; }
62 template <typename ObjectIdsT = Aws::Vector<Aws::String>>
63 void SetObjectIds(ObjectIdsT&& value) {
64 m_objectIdsHasBeenSet = true;
65 m_objectIds = std::forward<ObjectIdsT>(value);
66 }
67 template <typename ObjectIdsT = Aws::Vector<Aws::String>>
68 SetStatusRequest& WithObjectIds(ObjectIdsT&& value) {
69 SetObjectIds(std::forward<ObjectIdsT>(value));
70 return *this;
71 }
72 template <typename ObjectIdsT = Aws::String>
73 SetStatusRequest& AddObjectIds(ObjectIdsT&& value) {
74 m_objectIdsHasBeenSet = true;
75 m_objectIds.emplace_back(std::forward<ObjectIdsT>(value));
76 return *this;
77 }
79
81
87 inline const Aws::String& GetStatus() const { return m_status; }
88 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
89 template <typename StatusT = Aws::String>
90 void SetStatus(StatusT&& value) {
91 m_statusHasBeenSet = true;
92 m_status = std::forward<StatusT>(value);
93 }
94 template <typename StatusT = Aws::String>
95 SetStatusRequest& WithStatus(StatusT&& value) {
96 SetStatus(std::forward<StatusT>(value));
97 return *this;
98 }
100 private:
101 Aws::String m_pipelineId;
102
103 Aws::Vector<Aws::String> m_objectIds;
104
105 Aws::String m_status;
106 bool m_pipelineIdHasBeenSet = false;
107 bool m_objectIdsHasBeenSet = false;
108 bool m_statusHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace DataPipeline
113} // namespace Aws
SetStatusRequest & WithPipelineId(PipelineIdT &&value)
SetStatusRequest & WithStatus(StatusT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetObjectIds() const
SetStatusRequest & AddObjectIds(ObjectIdsT &&value)
const Aws::String & GetPipelineId() const
AWS_DATAPIPELINE_API SetStatusRequest()=default
AWS_DATAPIPELINE_API Aws::String SerializePayload() const override
SetStatusRequest & WithObjectIds(ObjectIdsT &&value)
AWS_DATAPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector