AWS SDK for C++  0.12.9
AWS SDK for C++
CancelCommandRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ssm/SSM_EXPORTS.h>
17 #include <aws/ssm/SSMRequest.h>
20 
21 namespace Aws
22 {
23 namespace SSM
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
42  inline const Aws::String& GetCommandId() const{ return m_commandId; }
43 
47  inline void SetCommandId(const Aws::String& value) { m_commandIdHasBeenSet = true; m_commandId = value; }
48 
52  inline void SetCommandId(Aws::String&& value) { m_commandIdHasBeenSet = true; m_commandId = value; }
53 
57  inline void SetCommandId(const char* value) { m_commandIdHasBeenSet = true; m_commandId.assign(value); }
58 
62  inline CancelCommandRequest& WithCommandId(const Aws::String& value) { SetCommandId(value); return *this;}
63 
67  inline CancelCommandRequest& WithCommandId(Aws::String&& value) { SetCommandId(value); return *this;}
68 
72  inline CancelCommandRequest& WithCommandId(const char* value) { SetCommandId(value); return *this;}
73 
79  inline const Aws::Vector<Aws::String>& GetInstanceIds() const{ return m_instanceIds; }
80 
86  inline void SetInstanceIds(const Aws::Vector<Aws::String>& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
87 
93  inline void SetInstanceIds(Aws::Vector<Aws::String>&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
94 
100  inline CancelCommandRequest& WithInstanceIds(const Aws::Vector<Aws::String>& value) { SetInstanceIds(value); return *this;}
101 
107  inline CancelCommandRequest& WithInstanceIds(Aws::Vector<Aws::String>&& value) { SetInstanceIds(value); return *this;}
108 
114  inline CancelCommandRequest& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
115 
121  inline CancelCommandRequest& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
122 
128  inline CancelCommandRequest& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
129 
130  private:
131  Aws::String m_commandId;
132  bool m_commandIdHasBeenSet;
133  Aws::Vector<Aws::String> m_instanceIds;
134  bool m_instanceIdsHasBeenSet;
135  };
136 
137 } // namespace Model
138 } // namespace SSM
139 } // namespace Aws
CancelCommandRequest & AddInstanceIds(const Aws::String &value)
const Aws::String & GetCommandId() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetInstanceIds(const Aws::Vector< Aws::String > &value)
CancelCommandRequest & WithCommandId(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
void SetCommandId(const Aws::String &value)
CancelCommandRequest & WithInstanceIds(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetInstanceIds() const
void SetInstanceIds(Aws::Vector< Aws::String > &&value)
CancelCommandRequest & AddInstanceIds(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:34
CancelCommandRequest & WithInstanceIds(const Aws::Vector< Aws::String > &value)
CancelCommandRequest & WithCommandId(Aws::String &&value)
JSON (JavaScript Object Notation).
CancelCommandRequest & AddInstanceIds(const char *value)
CancelCommandRequest & WithCommandId(const char *value)