AWS SDK for C++  1.9.107
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 
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
Aws::SSM::Model::CancelCommandRequest::WithCommandId
CancelCommandRequest & WithCommandId(const Aws::String &value)
Definition: CancelCommandRequest.h:69
Aws::SSM::Model::CancelCommandRequest::WithCommandId
CancelCommandRequest & WithCommandId(Aws::String &&value)
Definition: CancelCommandRequest.h:74
Aws::SSM::Model::CancelCommandRequest::SetCommandId
void SetCommandId(const char *value)
Definition: CancelCommandRequest.h:64
Aws::SSM::Model::CancelCommandRequest::InstanceIdsHasBeenSet
bool InstanceIdsHasBeenSet() const
Definition: CancelCommandRequest.h:94
Aws::SSM::Model::CancelCommandRequest::WithCommandId
CancelCommandRequest & WithCommandId(const char *value)
Definition: CancelCommandRequest.h:79
Aws::SSM::Model::CancelCommandRequest
Definition: CancelCommandRequest.h:26
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
AWS_SSM_API
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
SSM_EXPORTS.h
Aws::SSM::Model::CancelCommandRequest::AddInstanceIds
CancelCommandRequest & AddInstanceIds(const Aws::String &value)
Definition: CancelCommandRequest.h:129
Aws::SSM::Model::CancelCommandRequest::SetCommandId
void SetCommandId(Aws::String &&value)
Definition: CancelCommandRequest.h:59
AWSVector.h
Aws::SSM::Model::CancelCommandRequest::SetInstanceIds
void SetInstanceIds(const Aws::Vector< Aws::String > &value)
Definition: CancelCommandRequest.h:101
Aws::SSM::Model::CancelCommandRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CancelCommandRequest.h:34
Aws::SSM::Model::CancelCommandRequest::SetInstanceIds
void SetInstanceIds(Aws::Vector< Aws::String > &&value)
Definition: CancelCommandRequest.h:108
Aws::SSM::Model::CancelCommandRequest::WithInstanceIds
CancelCommandRequest & WithInstanceIds(Aws::Vector< Aws::String > &&value)
Definition: CancelCommandRequest.h:122
Aws::SSM::Model::CancelCommandRequest::CommandIdHasBeenSet
bool CommandIdHasBeenSet() const
Definition: CancelCommandRequest.h:49
Aws::SSM::Model::CancelCommandRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SSM::Model::CancelCommandRequest::AddInstanceIds
CancelCommandRequest & AddInstanceIds(const char *value)
Definition: CancelCommandRequest.h:143
Aws::SSM::Model::CancelCommandRequest::WithInstanceIds
CancelCommandRequest & WithInstanceIds(const Aws::Vector< Aws::String > &value)
Definition: CancelCommandRequest.h:115
AWSString.h
Aws::SMS::Model::AppValidationStrategy::NOT_SET
@ NOT_SET
Aws::SSM::Model::CancelCommandRequest::GetInstanceIds
const Aws::Vector< Aws::String > & GetInstanceIds() const
Definition: CancelCommandRequest.h:87
Aws::SSM::Model::CancelCommandRequest::GetCommandId
const Aws::String & GetCommandId() const
Definition: CancelCommandRequest.h:44
Aws::SSM::Model::CancelCommandRequest::AddInstanceIds
CancelCommandRequest & AddInstanceIds(Aws::String &&value)
Definition: CancelCommandRequest.h:136
Aws::SSM::Model::CancelCommandRequest::SetCommandId
void SetCommandId(const Aws::String &value)
Definition: CancelCommandRequest.h:54
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSM::SSMRequest
Definition: SSMRequest.h:17
Aws::SSM::Model::CancelCommandRequest::CancelCommandRequest
CancelCommandRequest()
SSMRequest.h
Aws::SSM::Model::CancelCommandRequest::SerializePayload
Aws::String SerializePayload() const override