AWS SDK for C++  0.14.3
AWS SDK for C++
DescribeAddressesRequest.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/ec2/EC2_EXPORTS.h>
17 #include <aws/ec2/EC2Request.h>
20 #include <aws/ec2/model/Filter.h>
21 
22 namespace Aws
23 {
24 namespace EC2
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
44  inline bool GetDryRun() const{ return m_dryRun; }
45 
52  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
53 
60  inline DescribeAddressesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
61 
66  inline const Aws::Vector<Aws::String>& GetPublicIps() const{ return m_publicIps; }
67 
72  inline void SetPublicIps(const Aws::Vector<Aws::String>& value) { m_publicIpsHasBeenSet = true; m_publicIps = value; }
73 
78  inline void SetPublicIps(Aws::Vector<Aws::String>&& value) { m_publicIpsHasBeenSet = true; m_publicIps = value; }
79 
84  inline DescribeAddressesRequest& WithPublicIps(const Aws::Vector<Aws::String>& value) { SetPublicIps(value); return *this;}
85 
90  inline DescribeAddressesRequest& WithPublicIps(Aws::Vector<Aws::String>&& value) { SetPublicIps(value); return *this;}
91 
96  inline DescribeAddressesRequest& AddPublicIps(const Aws::String& value) { m_publicIpsHasBeenSet = true; m_publicIps.push_back(value); return *this; }
97 
102  inline DescribeAddressesRequest& AddPublicIps(Aws::String&& value) { m_publicIpsHasBeenSet = true; m_publicIps.push_back(value); return *this; }
103 
108  inline DescribeAddressesRequest& AddPublicIps(const char* value) { m_publicIpsHasBeenSet = true; m_publicIps.push_back(value); return *this; }
109 
125  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
126 
142  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
143 
159  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = value; }
160 
176  inline DescribeAddressesRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
177 
193  inline DescribeAddressesRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(value); return *this;}
194 
210  inline DescribeAddressesRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
211 
227  inline DescribeAddressesRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
228 
233  inline const Aws::Vector<Aws::String>& GetAllocationIds() const{ return m_allocationIds; }
234 
239  inline void SetAllocationIds(const Aws::Vector<Aws::String>& value) { m_allocationIdsHasBeenSet = true; m_allocationIds = value; }
240 
245  inline void SetAllocationIds(Aws::Vector<Aws::String>&& value) { m_allocationIdsHasBeenSet = true; m_allocationIds = value; }
246 
251  inline DescribeAddressesRequest& WithAllocationIds(const Aws::Vector<Aws::String>& value) { SetAllocationIds(value); return *this;}
252 
257  inline DescribeAddressesRequest& WithAllocationIds(Aws::Vector<Aws::String>&& value) { SetAllocationIds(value); return *this;}
258 
263  inline DescribeAddressesRequest& AddAllocationIds(const Aws::String& value) { m_allocationIdsHasBeenSet = true; m_allocationIds.push_back(value); return *this; }
264 
269  inline DescribeAddressesRequest& AddAllocationIds(Aws::String&& value) { m_allocationIdsHasBeenSet = true; m_allocationIds.push_back(value); return *this; }
270 
275  inline DescribeAddressesRequest& AddAllocationIds(const char* value) { m_allocationIdsHasBeenSet = true; m_allocationIds.push_back(value); return *this; }
276 
277  private:
278  bool m_dryRun;
279  bool m_dryRunHasBeenSet;
280  Aws::Vector<Aws::String> m_publicIps;
281  bool m_publicIpsHasBeenSet;
282  Aws::Vector<Filter> m_filters;
283  bool m_filtersHasBeenSet;
284  Aws::Vector<Aws::String> m_allocationIds;
285  bool m_allocationIdsHasBeenSet;
286  };
287 
288 } // namespace Model
289 } // namespace EC2
290 } // namespace Aws
DescribeAddressesRequest & AddAllocationIds(const char *value)
void SetFilters(Aws::Vector< Filter > &&value)
DescribeAddressesRequest & WithFilters(Aws::Vector< Filter > &&value)
DescribeAddressesRequest & AddAllocationIds(const Aws::String &value)
void SetAllocationIds(Aws::Vector< Aws::String > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const Aws::Vector< Aws::String > & GetAllocationIds() const
DescribeAddressesRequest & WithAllocationIds(const Aws::Vector< Aws::String > &value)
DescribeAddressesRequest & WithPublicIps(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetPublicIps() const
DescribeAddressesRequest & AddPublicIps(const Aws::String &value)
void SetPublicIps(Aws::Vector< Aws::String > &&value)
DescribeAddressesRequest & AddPublicIps(Aws::String &&value)
void SetFilters(const Aws::Vector< Filter > &value)
DescribeAddressesRequest & WithAllocationIds(Aws::Vector< Aws::String > &&value)
DescribeAddressesRequest & AddFilters(const Filter &value)
DescribeAddressesRequest & WithDryRun(bool value)
DescribeAddressesRequest & WithPublicIps(const Aws::Vector< Aws::String > &value)
DescribeAddressesRequest & WithFilters(const Aws::Vector< Filter > &value)
void SetAllocationIds(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeAddressesRequest & AddPublicIps(const char *value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
DescribeAddressesRequest & AddFilters(Filter &&value)
DescribeAddressesRequest & AddAllocationIds(Aws::String &&value)
const Aws::Vector< Filter > & GetFilters() const
void SetPublicIps(const Aws::Vector< Aws::String > &value)
JSON (JavaScript Object Notation).