AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCommandId(const Aws::String& value) { m_commandIdHasBeenSet = true; m_commandId = value; }
48 inline void SetCommandId(Aws::String&& value) { m_commandIdHasBeenSet = true; m_commandId = std::move(value); }
49 inline void SetCommandId(const char* value) { m_commandIdHasBeenSet = true; m_commandId.assign(value); }
50 inline CancelCommandRequest& WithCommandId(const Aws::String& value) { SetCommandId(value); return *this;}
51 inline CancelCommandRequest& WithCommandId(Aws::String&& value) { SetCommandId(std::move(value)); return *this;}
52 inline CancelCommandRequest& WithCommandId(const char* value) { SetCommandId(value); return *this;}
54
56
61 inline const Aws::Vector<Aws::String>& GetInstanceIds() const{ return m_instanceIds; }
62 inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
63 inline void SetInstanceIds(const Aws::Vector<Aws::String>& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
64 inline void SetInstanceIds(Aws::Vector<Aws::String>&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::move(value); }
65 inline CancelCommandRequest& WithInstanceIds(const Aws::Vector<Aws::String>& value) { SetInstanceIds(value); return *this;}
66 inline CancelCommandRequest& WithInstanceIds(Aws::Vector<Aws::String>&& value) { SetInstanceIds(std::move(value)); return *this;}
67 inline CancelCommandRequest& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
68 inline CancelCommandRequest& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(std::move(value)); return *this; }
69 inline CancelCommandRequest& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
71 private:
72
73 Aws::String m_commandId;
74 bool m_commandIdHasBeenSet = false;
75
76 Aws::Vector<Aws::String> m_instanceIds;
77 bool m_instanceIdsHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace SSM
82} // namespace Aws
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CancelCommandRequest & AddInstanceIds(const Aws::String &value)
CancelCommandRequest & AddInstanceIds(Aws::String &&value)
CancelCommandRequest & WithCommandId(const char *value)
AWS_SSM_API Aws::String SerializePayload() const override
CancelCommandRequest & WithInstanceIds(Aws::Vector< Aws::String > &&value)
const Aws::String & GetCommandId() const
void SetInstanceIds(const Aws::Vector< Aws::String > &value)
CancelCommandRequest & WithCommandId(const Aws::String &value)
void SetInstanceIds(Aws::Vector< Aws::String > &&value)
CancelCommandRequest & WithCommandId(Aws::String &&value)
CancelCommandRequest & WithInstanceIds(const Aws::Vector< Aws::String > &value)
void SetCommandId(const Aws::String &value)
CancelCommandRequest & AddInstanceIds(const char *value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetInstanceIds() const
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