AWS SDK for C++

AWS SDK for C++ Version 1.11.551

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches
CancelCommandRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SSM
16{
17namespace Model
18{
19
26 {
27 public:
28 AWS_SSM_API CancelCommandRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CancelCommand"; }
35
36 AWS_SSM_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::String& GetCommandId() const { return m_commandId; }
46 inline bool CommandIdHasBeenSet() const { return m_commandIdHasBeenSet; }
47 template<typename CommandIdT = Aws::String>
48 void SetCommandId(CommandIdT&& value) { m_commandIdHasBeenSet = true; m_commandId = std::forward<CommandIdT>(value); }
49 template<typename CommandIdT = Aws::String>
50 CancelCommandRequest& WithCommandId(CommandIdT&& value) { SetCommandId(std::forward<CommandIdT>(value)); return *this;}
52
54
59 inline const Aws::Vector<Aws::String>& GetInstanceIds() const { return m_instanceIds; }
60 inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
61 template<typename InstanceIdsT = Aws::Vector<Aws::String>>
62 void SetInstanceIds(InstanceIdsT&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::forward<InstanceIdsT>(value); }
63 template<typename InstanceIdsT = Aws::Vector<Aws::String>>
64 CancelCommandRequest& WithInstanceIds(InstanceIdsT&& value) { SetInstanceIds(std::forward<InstanceIdsT>(value)); return *this;}
65 template<typename InstanceIdsT = Aws::String>
66 CancelCommandRequest& AddInstanceIds(InstanceIdsT&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.emplace_back(std::forward<InstanceIdsT>(value)); return *this; }
68 private:
69
70 Aws::String m_commandId;
71 bool m_commandIdHasBeenSet = false;
72
73 Aws::Vector<Aws::String> m_instanceIds;
74 bool m_instanceIdsHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace SSM
79} // 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