AWS SDK for C++  0.12.9
AWS SDK for C++
DescribePlacementGroupsRequest.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 DescribePlacementGroupsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
61 
66  inline const Aws::Vector<Aws::String>& GetGroupNames() const{ return m_groupNames; }
67 
72  inline void SetGroupNames(const Aws::Vector<Aws::String>& value) { m_groupNamesHasBeenSet = true; m_groupNames = value; }
73 
78  inline void SetGroupNames(Aws::Vector<Aws::String>&& value) { m_groupNamesHasBeenSet = true; m_groupNames = value; }
79 
84  inline DescribePlacementGroupsRequest& WithGroupNames(const Aws::Vector<Aws::String>& value) { SetGroupNames(value); return *this;}
85 
90  inline DescribePlacementGroupsRequest& WithGroupNames(Aws::Vector<Aws::String>&& value) { SetGroupNames(value); return *this;}
91 
96  inline DescribePlacementGroupsRequest& AddGroupNames(const Aws::String& value) { m_groupNamesHasBeenSet = true; m_groupNames.push_back(value); return *this; }
97 
102  inline DescribePlacementGroupsRequest& AddGroupNames(Aws::String&& value) { m_groupNamesHasBeenSet = true; m_groupNames.push_back(value); return *this; }
103 
108  inline DescribePlacementGroupsRequest& AddGroupNames(const char* value) { m_groupNamesHasBeenSet = true; m_groupNames.push_back(value); return *this; }
109 
118  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
119 
128  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
129 
138  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = value; }
139 
148  inline DescribePlacementGroupsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
149 
158  inline DescribePlacementGroupsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(value); return *this;}
159 
168  inline DescribePlacementGroupsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
169 
178  inline DescribePlacementGroupsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
179 
180  private:
181  bool m_dryRun;
182  bool m_dryRunHasBeenSet;
183  Aws::Vector<Aws::String> m_groupNames;
184  bool m_groupNamesHasBeenSet;
185  Aws::Vector<Filter> m_filters;
186  bool m_filtersHasBeenSet;
187  };
188 
189 } // namespace Model
190 } // namespace EC2
191 } // namespace Aws
DescribePlacementGroupsRequest & WithFilters(const Aws::Vector< Filter > &value)
DescribePlacementGroupsRequest & WithGroupNames(const Aws::Vector< Aws::String > &value)
DescribePlacementGroupsRequest & AddGroupNames(const char *value)
DescribePlacementGroupsRequest & WithDryRun(bool value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetGroupNames(const Aws::Vector< Aws::String > &value)
DescribePlacementGroupsRequest & AddFilters(Filter &&value)
DescribePlacementGroupsRequest & AddGroupNames(const Aws::String &value)
const Aws::Vector< Aws::String > & GetGroupNames() const
DescribePlacementGroupsRequest & AddFilters(const Filter &value)
void SetGroupNames(Aws::Vector< Aws::String > &&value)
DescribePlacementGroupsRequest & AddGroupNames(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
DescribePlacementGroupsRequest & WithGroupNames(Aws::Vector< Aws::String > &&value)
DescribePlacementGroupsRequest & WithFilters(Aws::Vector< Filter > &&value)
JSON (JavaScript Object Notation).