AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SendAutomationSignalRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ssm/SSMRequest.h>
11#include <aws/ssm/SSM_EXPORTS.h>
12#include <aws/ssm/model/SignalType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SSM {
18namespace Model {
19
23 public:
24 AWS_SSM_API SendAutomationSignalRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "SendAutomationSignal"; }
31
32 AWS_SSM_API Aws::String SerializePayload() const override;
33
35
37
41 inline const Aws::String& GetAutomationExecutionId() const { return m_automationExecutionId; }
42 inline bool AutomationExecutionIdHasBeenSet() const { return m_automationExecutionIdHasBeenSet; }
43 template <typename AutomationExecutionIdT = Aws::String>
44 void SetAutomationExecutionId(AutomationExecutionIdT&& value) {
45 m_automationExecutionIdHasBeenSet = true;
46 m_automationExecutionId = std::forward<AutomationExecutionIdT>(value);
47 }
48 template <typename AutomationExecutionIdT = Aws::String>
49 SendAutomationSignalRequest& WithAutomationExecutionId(AutomationExecutionIdT&& value) {
50 SetAutomationExecutionId(std::forward<AutomationExecutionIdT>(value));
51 return *this;
52 }
54
56
59 inline SignalType GetSignalType() const { return m_signalType; }
60 inline bool SignalTypeHasBeenSet() const { return m_signalTypeHasBeenSet; }
61 inline void SetSignalType(SignalType value) {
62 m_signalTypeHasBeenSet = true;
63 m_signalType = value;
64 }
66 SetSignalType(value);
67 return *this;
68 }
70
72
83 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetPayload() const { return m_payload; }
84 inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
85 template <typename PayloadT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
86 void SetPayload(PayloadT&& value) {
87 m_payloadHasBeenSet = true;
88 m_payload = std::forward<PayloadT>(value);
89 }
90 template <typename PayloadT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
92 SetPayload(std::forward<PayloadT>(value));
93 return *this;
94 }
95 template <typename PayloadKeyT = Aws::String, typename PayloadValueT = Aws::Vector<Aws::String>>
96 SendAutomationSignalRequest& AddPayload(PayloadKeyT&& key, PayloadValueT&& value) {
97 m_payloadHasBeenSet = true;
98 m_payload.emplace(std::forward<PayloadKeyT>(key), std::forward<PayloadValueT>(value));
99 return *this;
100 }
102 private:
103 Aws::String m_automationExecutionId;
104
105 SignalType m_signalType{SignalType::NOT_SET};
106
108 bool m_automationExecutionIdHasBeenSet = false;
109 bool m_signalTypeHasBeenSet = false;
110 bool m_payloadHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace SSM
115} // namespace Aws
SendAutomationSignalRequest & AddPayload(PayloadKeyT &&key, PayloadValueT &&value)
SendAutomationSignalRequest & WithPayload(PayloadT &&value)
AWS_SSM_API SendAutomationSignalRequest()=default
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
SendAutomationSignalRequest & WithSignalType(SignalType value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetPayload() const
void SetAutomationExecutionId(AutomationExecutionIdT &&value)
SendAutomationSignalRequest & WithAutomationExecutionId(AutomationExecutionIdT &&value)
AWS_SSM_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String