/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace AutoScaling { namespace Model { /** */ class DescribeAutoScalingGroupsRequest : public AutoScalingRequest { public: AWS_AUTOSCALING_API DescribeAutoScalingGroupsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DescribeAutoScalingGroups"; } AWS_AUTOSCALING_API Aws::String SerializePayload() const override; protected: AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The names of the Auto Scaling groups. By default, you can only specify up to * 50 names. You can optionally increase this limit using the * MaxRecords property.

If you omit this property, all Auto * Scaling groups are described.

*/ inline const Aws::Vector& GetAutoScalingGroupNames() const{ return m_autoScalingGroupNames; } /** *

The names of the Auto Scaling groups. By default, you can only specify up to * 50 names. You can optionally increase this limit using the * MaxRecords property.

If you omit this property, all Auto * Scaling groups are described.

*/ inline bool AutoScalingGroupNamesHasBeenSet() const { return m_autoScalingGroupNamesHasBeenSet; } /** *

The names of the Auto Scaling groups. By default, you can only specify up to * 50 names. You can optionally increase this limit using the * MaxRecords property.

If you omit this property, all Auto * Scaling groups are described.

*/ inline void SetAutoScalingGroupNames(const Aws::Vector& value) { m_autoScalingGroupNamesHasBeenSet = true; m_autoScalingGroupNames = value; } /** *

The names of the Auto Scaling groups. By default, you can only specify up to * 50 names. You can optionally increase this limit using the * MaxRecords property.

If you omit this property, all Auto * Scaling groups are described.

*/ inline void SetAutoScalingGroupNames(Aws::Vector&& value) { m_autoScalingGroupNamesHasBeenSet = true; m_autoScalingGroupNames = std::move(value); } /** *

The names of the Auto Scaling groups. By default, you can only specify up to * 50 names. You can optionally increase this limit using the * MaxRecords property.

If you omit this property, all Auto * Scaling groups are described.

*/ inline DescribeAutoScalingGroupsRequest& WithAutoScalingGroupNames(const Aws::Vector& value) { SetAutoScalingGroupNames(value); return *this;} /** *

The names of the Auto Scaling groups. By default, you can only specify up to * 50 names. You can optionally increase this limit using the * MaxRecords property.

If you omit this property, all Auto * Scaling groups are described.

*/ inline DescribeAutoScalingGroupsRequest& WithAutoScalingGroupNames(Aws::Vector&& value) { SetAutoScalingGroupNames(std::move(value)); return *this;} /** *

The names of the Auto Scaling groups. By default, you can only specify up to * 50 names. You can optionally increase this limit using the * MaxRecords property.

If you omit this property, all Auto * Scaling groups are described.

*/ inline DescribeAutoScalingGroupsRequest& AddAutoScalingGroupNames(const Aws::String& value) { m_autoScalingGroupNamesHasBeenSet = true; m_autoScalingGroupNames.push_back(value); return *this; } /** *

The names of the Auto Scaling groups. By default, you can only specify up to * 50 names. You can optionally increase this limit using the * MaxRecords property.

If you omit this property, all Auto * Scaling groups are described.

*/ inline DescribeAutoScalingGroupsRequest& AddAutoScalingGroupNames(Aws::String&& value) { m_autoScalingGroupNamesHasBeenSet = true; m_autoScalingGroupNames.push_back(std::move(value)); return *this; } /** *

The names of the Auto Scaling groups. By default, you can only specify up to * 50 names. You can optionally increase this limit using the * MaxRecords property.

If you omit this property, all Auto * Scaling groups are described.

*/ inline DescribeAutoScalingGroupsRequest& AddAutoScalingGroupNames(const char* value) { m_autoScalingGroupNamesHasBeenSet = true; m_autoScalingGroupNames.push_back(value); return *this; } /** *

The token for the next set of items to return. (You received this token from * a previous call.)

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The token for the next set of items to return. (You received this token from * a previous call.)

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

The token for the next set of items to return. (You received this token from * a previous call.)

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

The token for the next set of items to return. (You received this token from * a previous call.)

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

The token for the next set of items to return. (You received this token from * a previous call.)

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

The token for the next set of items to return. (You received this token from * a previous call.)

*/ inline DescribeAutoScalingGroupsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The token for the next set of items to return. (You received this token from * a previous call.)

*/ inline DescribeAutoScalingGroupsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The token for the next set of items to return. (You received this token from * a previous call.)

*/ inline DescribeAutoScalingGroupsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The maximum number of items to return with this call. The default value is * 50 and the maximum value is 100.

*/ inline int GetMaxRecords() const{ return m_maxRecords; } /** *

The maximum number of items to return with this call. The default value is * 50 and the maximum value is 100.

*/ inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; } /** *

The maximum number of items to return with this call. The default value is * 50 and the maximum value is 100.

*/ inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; } /** *

The maximum number of items to return with this call. The default value is * 50 and the maximum value is 100.

*/ inline DescribeAutoScalingGroupsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;} /** *

One or more filters to limit the results based on specific tags.

*/ inline const Aws::Vector& GetFilters() const{ return m_filters; } /** *

One or more filters to limit the results based on specific tags.

*/ inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } /** *

One or more filters to limit the results based on specific tags.

*/ inline void SetFilters(const Aws::Vector& value) { m_filtersHasBeenSet = true; m_filters = value; } /** *

One or more filters to limit the results based on specific tags.

*/ inline void SetFilters(Aws::Vector&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } /** *

One or more filters to limit the results based on specific tags.

*/ inline DescribeAutoScalingGroupsRequest& WithFilters(const Aws::Vector& value) { SetFilters(value); return *this;} /** *

One or more filters to limit the results based on specific tags.

*/ inline DescribeAutoScalingGroupsRequest& WithFilters(Aws::Vector&& value) { SetFilters(std::move(value)); return *this;} /** *

One or more filters to limit the results based on specific tags.

*/ inline DescribeAutoScalingGroupsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; } /** *

One or more filters to limit the results based on specific tags.

*/ inline DescribeAutoScalingGroupsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; } private: Aws::Vector m_autoScalingGroupNames; bool m_autoScalingGroupNamesHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxRecords; bool m_maxRecordsHasBeenSet = false; Aws::Vector m_filters; bool m_filtersHasBeenSet = false; }; } // namespace Model } // namespace AutoScaling } // namespace Aws