AWS SDK for C++  0.12.9
AWS SDK for C++
DescribeVolumeStatusRequest.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 DescribeVolumeStatusRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
61 
65  inline const Aws::Vector<Aws::String>& GetVolumeIds() const{ return m_volumeIds; }
66 
70  inline void SetVolumeIds(const Aws::Vector<Aws::String>& value) { m_volumeIdsHasBeenSet = true; m_volumeIds = value; }
71 
75  inline void SetVolumeIds(Aws::Vector<Aws::String>&& value) { m_volumeIdsHasBeenSet = true; m_volumeIds = value; }
76 
80  inline DescribeVolumeStatusRequest& WithVolumeIds(const Aws::Vector<Aws::String>& value) { SetVolumeIds(value); return *this;}
81 
85  inline DescribeVolumeStatusRequest& WithVolumeIds(Aws::Vector<Aws::String>&& value) { SetVolumeIds(value); return *this;}
86 
90  inline DescribeVolumeStatusRequest& AddVolumeIds(const Aws::String& value) { m_volumeIdsHasBeenSet = true; m_volumeIds.push_back(value); return *this; }
91 
95  inline DescribeVolumeStatusRequest& AddVolumeIds(Aws::String&& value) { m_volumeIdsHasBeenSet = true; m_volumeIds.push_back(value); return *this; }
96 
100  inline DescribeVolumeStatusRequest& AddVolumeIds(const char* value) { m_volumeIdsHasBeenSet = true; m_volumeIds.push_back(value); return *this; }
101 
128  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
129 
156  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
157 
184  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = value; }
185 
212  inline DescribeVolumeStatusRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
213 
240  inline DescribeVolumeStatusRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(value); return *this;}
241 
268  inline DescribeVolumeStatusRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
269 
296  inline DescribeVolumeStatusRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
297 
305  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
306 
314  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
315 
323  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
324 
332  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
333 
341  inline DescribeVolumeStatusRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
342 
350  inline DescribeVolumeStatusRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
351 
359  inline DescribeVolumeStatusRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
360 
373  inline long GetMaxResults() const{ return m_maxResults; }
374 
387  inline void SetMaxResults(long value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
388 
401  inline DescribeVolumeStatusRequest& WithMaxResults(long value) { SetMaxResults(value); return *this;}
402 
403  private:
404  bool m_dryRun;
405  bool m_dryRunHasBeenSet;
406  Aws::Vector<Aws::String> m_volumeIds;
407  bool m_volumeIdsHasBeenSet;
408  Aws::Vector<Filter> m_filters;
409  bool m_filtersHasBeenSet;
410  Aws::String m_nextToken;
411  bool m_nextTokenHasBeenSet;
412  long m_maxResults;
413  bool m_maxResultsHasBeenSet;
414  };
415 
416 } // namespace Model
417 } // namespace EC2
418 } // namespace Aws
void SetVolumeIds(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Filter > & GetFilters() const
DescribeVolumeStatusRequest & AddVolumeIds(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DescribeVolumeStatusRequest & AddFilters(Filter &&value)
const Aws::Vector< Aws::String > & GetVolumeIds() const
void SetVolumeIds(const Aws::Vector< Aws::String > &value)
DescribeVolumeStatusRequest & AddFilters(const Filter &value)
void SetFilters(const Aws::Vector< Filter > &value)
DescribeVolumeStatusRequest & AddVolumeIds(const Aws::String &value)
DescribeVolumeStatusRequest & WithVolumeIds(const Aws::Vector< Aws::String > &value)
DescribeVolumeStatusRequest & WithMaxResults(long value)
DescribeVolumeStatusRequest & WithNextToken(const Aws::String &value)
DescribeVolumeStatusRequest & WithNextToken(Aws::String &&value)
DescribeVolumeStatusRequest & WithFilters(Aws::Vector< Filter > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeVolumeStatusRequest & WithDryRun(bool value)
DescribeVolumeStatusRequest & WithNextToken(const char *value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
DescribeVolumeStatusRequest & AddVolumeIds(Aws::String &&value)
DescribeVolumeStatusRequest & WithFilters(const Aws::Vector< Filter > &value)
DescribeVolumeStatusRequest & WithVolumeIds(Aws::Vector< Aws::String > &&value)
JSON (JavaScript Object Notation).