AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeAutoScalingGroupsRequest.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/autoscaling/AutoScalingRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/autoscaling/model/Filter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace AutoScaling
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_AUTOSCALING_API DescribeAutoScalingGroupsRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "DescribeAutoScalingGroups"; }
33
34 AWS_AUTOSCALING_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
48 inline const Aws::Vector<Aws::String>& GetAutoScalingGroupNames() const{ return m_autoScalingGroupNames; }
49 inline bool AutoScalingGroupNamesHasBeenSet() const { return m_autoScalingGroupNamesHasBeenSet; }
50 inline void SetAutoScalingGroupNames(const Aws::Vector<Aws::String>& value) { m_autoScalingGroupNamesHasBeenSet = true; m_autoScalingGroupNames = value; }
51 inline void SetAutoScalingGroupNames(Aws::Vector<Aws::String>&& value) { m_autoScalingGroupNamesHasBeenSet = true; m_autoScalingGroupNames = std::move(value); }
54 inline DescribeAutoScalingGroupsRequest& AddAutoScalingGroupNames(const Aws::String& value) { m_autoScalingGroupNamesHasBeenSet = true; m_autoScalingGroupNames.push_back(value); return *this; }
55 inline DescribeAutoScalingGroupsRequest& AddAutoScalingGroupNames(Aws::String&& value) { m_autoScalingGroupNamesHasBeenSet = true; m_autoScalingGroupNames.push_back(std::move(value)); return *this; }
56 inline DescribeAutoScalingGroupsRequest& AddAutoScalingGroupNames(const char* value) { m_autoScalingGroupNamesHasBeenSet = true; m_autoScalingGroupNames.push_back(value); return *this; }
58
60
64 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
65 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
66 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
67 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
68 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
69 inline DescribeAutoScalingGroupsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
70 inline DescribeAutoScalingGroupsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
71 inline DescribeAutoScalingGroupsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
73
75
79 inline int GetMaxRecords() const{ return m_maxRecords; }
80 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
81 inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
82 inline DescribeAutoScalingGroupsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
84
86
89 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
90 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
91 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
92 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
93 inline DescribeAutoScalingGroupsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
94 inline DescribeAutoScalingGroupsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
95 inline DescribeAutoScalingGroupsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
96 inline DescribeAutoScalingGroupsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
98 private:
99
100 Aws::Vector<Aws::String> m_autoScalingGroupNames;
101 bool m_autoScalingGroupNamesHasBeenSet = false;
102
103 Aws::String m_nextToken;
104 bool m_nextTokenHasBeenSet = false;
105
106 int m_maxRecords;
107 bool m_maxRecordsHasBeenSet = false;
108
109 Aws::Vector<Filter> m_filters;
110 bool m_filtersHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace AutoScaling
115} // namespace Aws
void SetAutoScalingGroupNames(const Aws::Vector< Aws::String > &value)
DescribeAutoScalingGroupsRequest & AddFilters(const Filter &value)
DescribeAutoScalingGroupsRequest & WithAutoScalingGroupNames(Aws::Vector< Aws::String > &&value)
AWS_AUTOSCALING_API Aws::String SerializePayload() const override
DescribeAutoScalingGroupsRequest & WithFilters(const Aws::Vector< Filter > &value)
DescribeAutoScalingGroupsRequest & WithNextToken(const char *value)
DescribeAutoScalingGroupsRequest & WithFilters(Aws::Vector< Filter > &&value)
DescribeAutoScalingGroupsRequest & AddAutoScalingGroupNames(const char *value)
DescribeAutoScalingGroupsRequest & WithNextToken(Aws::String &&value)
DescribeAutoScalingGroupsRequest & AddAutoScalingGroupNames(Aws::String &&value)
DescribeAutoScalingGroupsRequest & AddAutoScalingGroupNames(const Aws::String &value)
DescribeAutoScalingGroupsRequest & AddFilters(Filter &&value)
DescribeAutoScalingGroupsRequest & WithAutoScalingGroupNames(const Aws::Vector< Aws::String > &value)
DescribeAutoScalingGroupsRequest & WithNextToken(const Aws::String &value)
AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector