AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ActivatePipelineRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/datapipeline/DataPipelineRequest.h>
11#include <aws/datapipeline/DataPipeline_EXPORTS.h>
12#include <aws/datapipeline/model/ParameterValue.h>
13
14#include <utility>
15
16namespace Aws {
17namespace DataPipeline {
18namespace Model {
19
26 public:
27 AWS_DATAPIPELINE_API ActivatePipelineRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ActivatePipeline"; }
34
35 AWS_DATAPIPELINE_API Aws::String SerializePayload() const override;
36
37 AWS_DATAPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
40
43 inline const Aws::String& GetPipelineId() const { return m_pipelineId; }
44 inline bool PipelineIdHasBeenSet() const { return m_pipelineIdHasBeenSet; }
45 template <typename PipelineIdT = Aws::String>
46 void SetPipelineId(PipelineIdT&& value) {
47 m_pipelineIdHasBeenSet = true;
48 m_pipelineId = std::forward<PipelineIdT>(value);
49 }
50 template <typename PipelineIdT = Aws::String>
52 SetPipelineId(std::forward<PipelineIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Vector<ParameterValue>& GetParameterValues() const { return m_parameterValues; }
62 inline bool ParameterValuesHasBeenSet() const { return m_parameterValuesHasBeenSet; }
63 template <typename ParameterValuesT = Aws::Vector<ParameterValue>>
64 void SetParameterValues(ParameterValuesT&& value) {
65 m_parameterValuesHasBeenSet = true;
66 m_parameterValues = std::forward<ParameterValuesT>(value);
67 }
68 template <typename ParameterValuesT = Aws::Vector<ParameterValue>>
69 ActivatePipelineRequest& WithParameterValues(ParameterValuesT&& value) {
70 SetParameterValues(std::forward<ParameterValuesT>(value));
71 return *this;
72 }
73 template <typename ParameterValuesT = ParameterValue>
74 ActivatePipelineRequest& AddParameterValues(ParameterValuesT&& value) {
75 m_parameterValuesHasBeenSet = true;
76 m_parameterValues.emplace_back(std::forward<ParameterValuesT>(value));
77 return *this;
78 }
80
82
86 inline const Aws::Utils::DateTime& GetStartTimestamp() const { return m_startTimestamp; }
87 inline bool StartTimestampHasBeenSet() const { return m_startTimestampHasBeenSet; }
88 template <typename StartTimestampT = Aws::Utils::DateTime>
89 void SetStartTimestamp(StartTimestampT&& value) {
90 m_startTimestampHasBeenSet = true;
91 m_startTimestamp = std::forward<StartTimestampT>(value);
92 }
93 template <typename StartTimestampT = Aws::Utils::DateTime>
94 ActivatePipelineRequest& WithStartTimestamp(StartTimestampT&& value) {
95 SetStartTimestamp(std::forward<StartTimestampT>(value));
96 return *this;
97 }
99 private:
100 Aws::String m_pipelineId;
101
102 Aws::Vector<ParameterValue> m_parameterValues;
103
104 Aws::Utils::DateTime m_startTimestamp{};
105 bool m_pipelineIdHasBeenSet = false;
106 bool m_parameterValuesHasBeenSet = false;
107 bool m_startTimestampHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace DataPipeline
112} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_DATAPIPELINE_API Aws::String SerializePayload() const override
ActivatePipelineRequest & WithParameterValues(ParameterValuesT &&value)
ActivatePipelineRequest & AddParameterValues(ParameterValuesT &&value)
const Aws::Utils::DateTime & GetStartTimestamp() const
ActivatePipelineRequest & WithPipelineId(PipelineIdT &&value)
AWS_DATAPIPELINE_API ActivatePipelineRequest()=default
const Aws::Vector< ParameterValue > & GetParameterValues() const
AWS_DATAPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ActivatePipelineRequest & WithStartTimestamp(StartTimestampT &&value)
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