AWS SDK for C++

AWS SDK for C++ Version 1.11.553

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches
SendAutomationSignalRequest.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ssm/model/SignalType.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SSM
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SSM_API SendAutomationSignalRequest() = 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 "SendAutomationSignal"; }
34
35 AWS_SSM_API Aws::String SerializePayload() const override;
36
38
39
41
45 inline const Aws::String& GetAutomationExecutionId() const { return m_automationExecutionId; }
46 inline bool AutomationExecutionIdHasBeenSet() const { return m_automationExecutionIdHasBeenSet; }
47 template<typename AutomationExecutionIdT = Aws::String>
48 void SetAutomationExecutionId(AutomationExecutionIdT&& value) { m_automationExecutionIdHasBeenSet = true; m_automationExecutionId = std::forward<AutomationExecutionIdT>(value); }
49 template<typename AutomationExecutionIdT = Aws::String>
50 SendAutomationSignalRequest& WithAutomationExecutionId(AutomationExecutionIdT&& value) { SetAutomationExecutionId(std::forward<AutomationExecutionIdT>(value)); return *this;}
52
54
57 inline SignalType GetSignalType() const { return m_signalType; }
58 inline bool SignalTypeHasBeenSet() const { return m_signalTypeHasBeenSet; }
59 inline void SetSignalType(SignalType value) { m_signalTypeHasBeenSet = true; m_signalType = value; }
62
64
75 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetPayload() const { return m_payload; }
76 inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
77 template<typename PayloadT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
78 void SetPayload(PayloadT&& value) { m_payloadHasBeenSet = true; m_payload = std::forward<PayloadT>(value); }
79 template<typename PayloadT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
80 SendAutomationSignalRequest& WithPayload(PayloadT&& value) { SetPayload(std::forward<PayloadT>(value)); return *this;}
81 template<typename PayloadKeyT = Aws::String, typename PayloadValueT = Aws::Vector<Aws::String>>
82 SendAutomationSignalRequest& AddPayload(PayloadKeyT&& key, PayloadValueT&& value) {
83 m_payloadHasBeenSet = true; m_payload.emplace(std::forward<PayloadKeyT>(key), std::forward<PayloadValueT>(value)); return *this;
84 }
86 private:
87
88 Aws::String m_automationExecutionId;
89 bool m_automationExecutionIdHasBeenSet = false;
90
91 SignalType m_signalType{SignalType::NOT_SET};
92 bool m_signalTypeHasBeenSet = false;
93
95 bool m_payloadHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace SSM
100} // 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