AWS SDK for C++  0.14.3
AWS SDK for C++
DescribeElasticIpsRequest.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& GetInstanceId() const{ return m_instanceId; }
44 
50  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
51 
57  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
58 
64  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
65 
71  inline DescribeElasticIpsRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
72 
78  inline DescribeElasticIpsRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(value); return *this;}
79 
85  inline DescribeElasticIpsRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
86 
92  inline const Aws::String& GetStackId() const{ return m_stackId; }
93 
99  inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
100 
106  inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
107 
113  inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
114 
120  inline DescribeElasticIpsRequest& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
121 
127  inline DescribeElasticIpsRequest& WithStackId(Aws::String&& value) { SetStackId(value); return *this;}
128 
134  inline DescribeElasticIpsRequest& WithStackId(const char* value) { SetStackId(value); return *this;}
135 
142  inline const Aws::Vector<Aws::String>& GetIps() const{ return m_ips; }
143 
150  inline void SetIps(const Aws::Vector<Aws::String>& value) { m_ipsHasBeenSet = true; m_ips = value; }
151 
158  inline void SetIps(Aws::Vector<Aws::String>&& value) { m_ipsHasBeenSet = true; m_ips = value; }
159 
166  inline DescribeElasticIpsRequest& WithIps(const Aws::Vector<Aws::String>& value) { SetIps(value); return *this;}
167 
174  inline DescribeElasticIpsRequest& WithIps(Aws::Vector<Aws::String>&& value) { SetIps(value); return *this;}
175 
182  inline DescribeElasticIpsRequest& AddIps(const Aws::String& value) { m_ipsHasBeenSet = true; m_ips.push_back(value); return *this; }
183 
190  inline DescribeElasticIpsRequest& AddIps(Aws::String&& value) { m_ipsHasBeenSet = true; m_ips.push_back(value); return *this; }
191 
198  inline DescribeElasticIpsRequest& AddIps(const char* value) { m_ipsHasBeenSet = true; m_ips.push_back(value); return *this; }
199 
200  private:
201  Aws::String m_instanceId;
202  bool m_instanceIdHasBeenSet;
203  Aws::String m_stackId;
204  bool m_stackIdHasBeenSet;
206  bool m_ipsHasBeenSet;
207  };
208 
209 } // namespace Model
210 } // namespace OpsWorks
211 } // namespace Aws
DescribeElasticIpsRequest & AddIps(const Aws::String &value)
DescribeElasticIpsRequest & WithIps(const Aws::Vector< Aws::String > &value)
DescribeElasticIpsRequest & WithStackId(Aws::String &&value)
void SetIps(const Aws::Vector< Aws::String > &value)
DescribeElasticIpsRequest & AddIps(const char *value)
DescribeElasticIpsRequest & WithStackId(const Aws::String &value)
DescribeElasticIpsRequest & WithIps(Aws::Vector< Aws::String > &&value)
DescribeElasticIpsRequest & WithInstanceId(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
DescribeElasticIpsRequest & AddIps(Aws::String &&value)
DescribeElasticIpsRequest & WithStackId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_OPSWORKS_API
DescribeElasticIpsRequest & WithInstanceId(const Aws::String &value)
DescribeElasticIpsRequest & WithInstanceId(Aws::String &&value)
const Aws::Vector< Aws::String > & GetIps() const
void SetIps(Aws::Vector< Aws::String > &&value)
JSON (JavaScript Object Notation).