AWS SDK for C++  0.14.3
AWS SDK for C++
DescribeCommandsRequest.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
20 
21 namespace Aws
22 {
23 namespace OpsWorks
24 {
25 namespace Model
26 {
27 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
43  inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
44 
50  inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
51 
57  inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
58 
64  inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
65 
71  inline DescribeCommandsRequest& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
72 
78  inline DescribeCommandsRequest& WithDeploymentId(Aws::String&& value) { SetDeploymentId(value); return *this;}
79 
85  inline DescribeCommandsRequest& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
86 
92  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
93 
99  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
100 
106  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
107 
113  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
114 
120  inline DescribeCommandsRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
121 
127  inline DescribeCommandsRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(value); return *this;}
128 
134  inline DescribeCommandsRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
135 
141  inline const Aws::Vector<Aws::String>& GetCommandIds() const{ return m_commandIds; }
142 
148  inline void SetCommandIds(const Aws::Vector<Aws::String>& value) { m_commandIdsHasBeenSet = true; m_commandIds = value; }
149 
155  inline void SetCommandIds(Aws::Vector<Aws::String>&& value) { m_commandIdsHasBeenSet = true; m_commandIds = value; }
156 
162  inline DescribeCommandsRequest& WithCommandIds(const Aws::Vector<Aws::String>& value) { SetCommandIds(value); return *this;}
163 
169  inline DescribeCommandsRequest& WithCommandIds(Aws::Vector<Aws::String>&& value) { SetCommandIds(value); return *this;}
170 
176  inline DescribeCommandsRequest& AddCommandIds(const Aws::String& value) { m_commandIdsHasBeenSet = true; m_commandIds.push_back(value); return *this; }
177 
183  inline DescribeCommandsRequest& AddCommandIds(Aws::String&& value) { m_commandIdsHasBeenSet = true; m_commandIds.push_back(value); return *this; }
184 
190  inline DescribeCommandsRequest& AddCommandIds(const char* value) { m_commandIdsHasBeenSet = true; m_commandIds.push_back(value); return *this; }
191 
192  private:
193  Aws::String m_deploymentId;
194  bool m_deploymentIdHasBeenSet;
195  Aws::String m_instanceId;
196  bool m_instanceIdHasBeenSet;
197  Aws::Vector<Aws::String> m_commandIds;
198  bool m_commandIdsHasBeenSet;
199  };
200 
201 } // namespace Model
202 } // namespace OpsWorks
203 } // namespace Aws
DescribeCommandsRequest & WithCommandIds(Aws::Vector< Aws::String > &&value)
DescribeCommandsRequest & WithInstanceId(const Aws::String &value)
DescribeCommandsRequest & WithDeploymentId(const char *value)
DescribeCommandsRequest & WithDeploymentId(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
void SetCommandIds(Aws::Vector< Aws::String > &&value)
DescribeCommandsRequest & WithInstanceId(const char *value)
void SetCommandIds(const Aws::Vector< Aws::String > &value)
DescribeCommandsRequest & AddCommandIds(const Aws::String &value)
DescribeCommandsRequest & AddCommandIds(const char *value)
DescribeCommandsRequest & AddCommandIds(Aws::String &&value)
const Aws::Vector< Aws::String > & GetCommandIds() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_OPSWORKS_API
DescribeCommandsRequest & WithCommandIds(const Aws::Vector< Aws::String > &value)
DescribeCommandsRequest & WithInstanceId(Aws::String &&value)
DescribeCommandsRequest & WithDeploymentId(Aws::String &&value)
JSON (JavaScript Object Notation).