AWS SDK for C++  1.8.71
AWS SDK for C++
CancelCommandRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ssm/SSM_EXPORTS.h>
8 #include <aws/ssm/SSMRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace SSM
16 {
17 namespace Model
18 {
19 
26  {
27  public:
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::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
40 
44  inline const Aws::String& GetCommandId() const{ return m_commandId; }
45 
49  inline bool CommandIdHasBeenSet() const { return m_commandIdHasBeenSet; }
50 
54  inline void SetCommandId(const Aws::String& value) { m_commandIdHasBeenSet = true; m_commandId = value; }
55 
59  inline void SetCommandId(Aws::String&& value) { m_commandIdHasBeenSet = true; m_commandId = std::move(value); }
60 
64  inline void SetCommandId(const char* value) { m_commandIdHasBeenSet = true; m_commandId.assign(value); }
65 
69  inline CancelCommandRequest& WithCommandId(const Aws::String& value) { SetCommandId(value); return *this;}
70 
74  inline CancelCommandRequest& WithCommandId(Aws::String&& value) { SetCommandId(std::move(value)); return *this;}
75 
79  inline CancelCommandRequest& WithCommandId(const char* value) { SetCommandId(value); return *this;}
80 
81 
87  inline const Aws::Vector<Aws::String>& GetInstanceIds() const{ return m_instanceIds; }
88 
94  inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
95 
101  inline void SetInstanceIds(const Aws::Vector<Aws::String>& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
102 
108  inline void SetInstanceIds(Aws::Vector<Aws::String>&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::move(value); }
109 
115  inline CancelCommandRequest& WithInstanceIds(const Aws::Vector<Aws::String>& value) { SetInstanceIds(value); return *this;}
116 
122  inline CancelCommandRequest& WithInstanceIds(Aws::Vector<Aws::String>&& value) { SetInstanceIds(std::move(value)); return *this;}
123 
129  inline CancelCommandRequest& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
130 
136  inline CancelCommandRequest& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(std::move(value)); return *this; }
137 
143  inline CancelCommandRequest& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
144 
145  private:
146 
147  Aws::String m_commandId;
148  bool m_commandIdHasBeenSet;
149 
150  Aws::Vector<Aws::String> m_instanceIds;
151  bool m_instanceIdsHasBeenSet;
152  };
153 
154 } // namespace Model
155 } // namespace SSM
156 } // namespace Aws
CancelCommandRequest & AddInstanceIds(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
void SetInstanceIds(const Aws::Vector< Aws::String > &value)
CancelCommandRequest & WithCommandId(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
const Aws::String & GetCommandId() const
void SetCommandId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CancelCommandRequest & WithInstanceIds(Aws::Vector< Aws::String > &&value)
void SetInstanceIds(Aws::Vector< Aws::String > &&value)
CancelCommandRequest & AddInstanceIds(Aws::String &&value)
const Aws::Vector< Aws::String > & GetInstanceIds() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:28
CancelCommandRequest & WithInstanceIds(const Aws::Vector< Aws::String > &value)
CancelCommandRequest & WithCommandId(Aws::String &&value)
CancelCommandRequest & AddInstanceIds(const char *value)
CancelCommandRequest & WithCommandId(const char *value)