AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CancelCommandRequest.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/ssm/SSMRequest.h>
10#include <aws/ssm/SSM_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SSM {
16namespace Model {
17
24 public:
25 AWS_SSM_API CancelCommandRequest() = 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 "CancelCommand"; }
32
33 AWS_SSM_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetCommandId() const { return m_commandId; }
42 inline bool CommandIdHasBeenSet() const { return m_commandIdHasBeenSet; }
43 template <typename CommandIdT = Aws::String>
44 void SetCommandId(CommandIdT&& value) {
45 m_commandIdHasBeenSet = true;
46 m_commandId = std::forward<CommandIdT>(value);
47 }
48 template <typename CommandIdT = Aws::String>
49 CancelCommandRequest& WithCommandId(CommandIdT&& value) {
50 SetCommandId(std::forward<CommandIdT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::Vector<Aws::String>& GetInstanceIds() const { return m_instanceIds; }
62 inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
63 template <typename InstanceIdsT = Aws::Vector<Aws::String>>
64 void SetInstanceIds(InstanceIdsT&& value) {
65 m_instanceIdsHasBeenSet = true;
66 m_instanceIds = std::forward<InstanceIdsT>(value);
67 }
68 template <typename InstanceIdsT = Aws::Vector<Aws::String>>
69 CancelCommandRequest& WithInstanceIds(InstanceIdsT&& value) {
70 SetInstanceIds(std::forward<InstanceIdsT>(value));
71 return *this;
72 }
73 template <typename InstanceIdsT = Aws::String>
74 CancelCommandRequest& AddInstanceIds(InstanceIdsT&& value) {
75 m_instanceIdsHasBeenSet = true;
76 m_instanceIds.emplace_back(std::forward<InstanceIdsT>(value));
77 return *this;
78 }
80 private:
81 Aws::String m_commandId;
82
83 Aws::Vector<Aws::String> m_instanceIds;
84 bool m_commandIdHasBeenSet = false;
85 bool m_instanceIdsHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace SSM
90} // namespace Aws
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SSM_API Aws::String SerializePayload() const override
const Aws::String & GetCommandId() const
CancelCommandRequest & WithCommandId(CommandIdT &&value)
CancelCommandRequest & AddInstanceIds(InstanceIdsT &&value)
CancelCommandRequest & WithInstanceIds(InstanceIdsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_SSM_API CancelCommandRequest()=default
const Aws::Vector< Aws::String > & GetInstanceIds() const
void SetInstanceIds(InstanceIdsT &&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