AWS SDK for C++  0.14.3
AWS SDK for C++
DescribeDeploymentsRequest.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 
42  inline const Aws::String& GetStackId() const{ return m_stackId; }
43 
48  inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
49 
54  inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
55 
60  inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
61 
66  inline DescribeDeploymentsRequest& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
67 
72  inline DescribeDeploymentsRequest& WithStackId(Aws::String&& value) { SetStackId(value); return *this;}
73 
78  inline DescribeDeploymentsRequest& WithStackId(const char* value) { SetStackId(value); return *this;}
79 
84  inline const Aws::String& GetAppId() const{ return m_appId; }
85 
90  inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
91 
96  inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = value; }
97 
102  inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
103 
108  inline DescribeDeploymentsRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
109 
114  inline DescribeDeploymentsRequest& WithAppId(Aws::String&& value) { SetAppId(value); return *this;}
115 
120  inline DescribeDeploymentsRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
121 
127  inline const Aws::Vector<Aws::String>& GetDeploymentIds() const{ return m_deploymentIds; }
128 
134  inline void SetDeploymentIds(const Aws::Vector<Aws::String>& value) { m_deploymentIdsHasBeenSet = true; m_deploymentIds = value; }
135 
141  inline void SetDeploymentIds(Aws::Vector<Aws::String>&& value) { m_deploymentIdsHasBeenSet = true; m_deploymentIds = value; }
142 
148  inline DescribeDeploymentsRequest& WithDeploymentIds(const Aws::Vector<Aws::String>& value) { SetDeploymentIds(value); return *this;}
149 
155  inline DescribeDeploymentsRequest& WithDeploymentIds(Aws::Vector<Aws::String>&& value) { SetDeploymentIds(value); return *this;}
156 
162  inline DescribeDeploymentsRequest& AddDeploymentIds(const Aws::String& value) { m_deploymentIdsHasBeenSet = true; m_deploymentIds.push_back(value); return *this; }
163 
169  inline DescribeDeploymentsRequest& AddDeploymentIds(Aws::String&& value) { m_deploymentIdsHasBeenSet = true; m_deploymentIds.push_back(value); return *this; }
170 
176  inline DescribeDeploymentsRequest& AddDeploymentIds(const char* value) { m_deploymentIdsHasBeenSet = true; m_deploymentIds.push_back(value); return *this; }
177 
178  private:
179  Aws::String m_stackId;
180  bool m_stackIdHasBeenSet;
181  Aws::String m_appId;
182  bool m_appIdHasBeenSet;
183  Aws::Vector<Aws::String> m_deploymentIds;
184  bool m_deploymentIdsHasBeenSet;
185  };
186 
187 } // namespace Model
188 } // namespace OpsWorks
189 } // namespace Aws
DescribeDeploymentsRequest & WithAppId(const Aws::String &value)
DescribeDeploymentsRequest & WithAppId(const char *value)
DescribeDeploymentsRequest & AddDeploymentIds(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DescribeDeploymentsRequest & AddDeploymentIds(const Aws::String &value)
DescribeDeploymentsRequest & AddDeploymentIds(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
void SetDeploymentIds(const Aws::Vector< Aws::String > &value)
DescribeDeploymentsRequest & WithAppId(Aws::String &&value)
DescribeDeploymentsRequest & WithStackId(const Aws::String &value)
void SetDeploymentIds(Aws::Vector< Aws::String > &&value)
DescribeDeploymentsRequest & WithStackId(Aws::String &&value)
DescribeDeploymentsRequest & WithDeploymentIds(Aws::Vector< Aws::String > &&value)
DescribeDeploymentsRequest & WithStackId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_OPSWORKS_API
const Aws::Vector< Aws::String > & GetDeploymentIds() const
DescribeDeploymentsRequest & WithDeploymentIds(const Aws::Vector< Aws::String > &value)
JSON (JavaScript Object Notation).