/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace SSM { namespace Model { /** */ class GetInventoryRequest : public SSMRequest { public: AWS_SSM_API GetInventoryRequest(); // 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 "GetInventory"; } AWS_SSM_API Aws::String SerializePayload() const override; AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

One or more filters. Use a filter to return a more specific list of * results.

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

One or more filters. Use a filter to return a more specific list of * results.

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

One or more filters. Use a filter to return a more specific list of * results.

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

One or more filters. Use a filter to return a more specific list of * results.

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

One or more filters. Use a filter to return a more specific list of * results.

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

One or more filters. Use a filter to return a more specific list of * results.

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

One or more filters. Use a filter to return a more specific list of * results.

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

One or more filters. Use a filter to return a more specific list of * results.

*/ inline GetInventoryRequest& AddFilters(InventoryFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; } /** *

Returns counts of inventory types based on one or more expressions. For * example, if you aggregate by using an expression that uses the * AWS:InstanceInformation.PlatformType type, you can see a count of * how many Windows and Linux managed nodes exist in your inventoried fleet.

*/ inline const Aws::Vector& GetAggregators() const{ return m_aggregators; } /** *

Returns counts of inventory types based on one or more expressions. For * example, if you aggregate by using an expression that uses the * AWS:InstanceInformation.PlatformType type, you can see a count of * how many Windows and Linux managed nodes exist in your inventoried fleet.

*/ inline bool AggregatorsHasBeenSet() const { return m_aggregatorsHasBeenSet; } /** *

Returns counts of inventory types based on one or more expressions. For * example, if you aggregate by using an expression that uses the * AWS:InstanceInformation.PlatformType type, you can see a count of * how many Windows and Linux managed nodes exist in your inventoried fleet.

*/ inline void SetAggregators(const Aws::Vector& value) { m_aggregatorsHasBeenSet = true; m_aggregators = value; } /** *

Returns counts of inventory types based on one or more expressions. For * example, if you aggregate by using an expression that uses the * AWS:InstanceInformation.PlatformType type, you can see a count of * how many Windows and Linux managed nodes exist in your inventoried fleet.

*/ inline void SetAggregators(Aws::Vector&& value) { m_aggregatorsHasBeenSet = true; m_aggregators = std::move(value); } /** *

Returns counts of inventory types based on one or more expressions. For * example, if you aggregate by using an expression that uses the * AWS:InstanceInformation.PlatformType type, you can see a count of * how many Windows and Linux managed nodes exist in your inventoried fleet.

*/ inline GetInventoryRequest& WithAggregators(const Aws::Vector& value) { SetAggregators(value); return *this;} /** *

Returns counts of inventory types based on one or more expressions. For * example, if you aggregate by using an expression that uses the * AWS:InstanceInformation.PlatformType type, you can see a count of * how many Windows and Linux managed nodes exist in your inventoried fleet.

*/ inline GetInventoryRequest& WithAggregators(Aws::Vector&& value) { SetAggregators(std::move(value)); return *this;} /** *

Returns counts of inventory types based on one or more expressions. For * example, if you aggregate by using an expression that uses the * AWS:InstanceInformation.PlatformType type, you can see a count of * how many Windows and Linux managed nodes exist in your inventoried fleet.

*/ inline GetInventoryRequest& AddAggregators(const InventoryAggregator& value) { m_aggregatorsHasBeenSet = true; m_aggregators.push_back(value); return *this; } /** *

Returns counts of inventory types based on one or more expressions. For * example, if you aggregate by using an expression that uses the * AWS:InstanceInformation.PlatformType type, you can see a count of * how many Windows and Linux managed nodes exist in your inventoried fleet.

*/ inline GetInventoryRequest& AddAggregators(InventoryAggregator&& value) { m_aggregatorsHasBeenSet = true; m_aggregators.push_back(std::move(value)); return *this; } /** *

The list of inventory item types to return.

*/ inline const Aws::Vector& GetResultAttributes() const{ return m_resultAttributes; } /** *

The list of inventory item types to return.

*/ inline bool ResultAttributesHasBeenSet() const { return m_resultAttributesHasBeenSet; } /** *

The list of inventory item types to return.

*/ inline void SetResultAttributes(const Aws::Vector& value) { m_resultAttributesHasBeenSet = true; m_resultAttributes = value; } /** *

The list of inventory item types to return.

*/ inline void SetResultAttributes(Aws::Vector&& value) { m_resultAttributesHasBeenSet = true; m_resultAttributes = std::move(value); } /** *

The list of inventory item types to return.

*/ inline GetInventoryRequest& WithResultAttributes(const Aws::Vector& value) { SetResultAttributes(value); return *this;} /** *

The list of inventory item types to return.

*/ inline GetInventoryRequest& WithResultAttributes(Aws::Vector&& value) { SetResultAttributes(std::move(value)); return *this;} /** *

The list of inventory item types to return.

*/ inline GetInventoryRequest& AddResultAttributes(const ResultAttribute& value) { m_resultAttributesHasBeenSet = true; m_resultAttributes.push_back(value); return *this; } /** *

The list of inventory item types to return.

*/ inline GetInventoryRequest& AddResultAttributes(ResultAttribute&& value) { m_resultAttributesHasBeenSet = true; m_resultAttributes.push_back(std::move(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 GetInventoryRequest& 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 GetInventoryRequest& 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 GetInventoryRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The maximum number of items to return for this call. The call also returns a * token that you can specify in a subsequent call to get the next set of * results.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of items to return for this call. The call also returns a * token that you can specify in a subsequent call to get the next set of * results.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of items to return for this call. The call also returns a * token that you can specify in a subsequent call to get the next set of * results.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of items to return for this call. The call also returns a * token that you can specify in a subsequent call to get the next set of * results.

*/ inline GetInventoryRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::Vector m_filters; bool m_filtersHasBeenSet = false; Aws::Vector m_aggregators; bool m_aggregatorsHasBeenSet = false; Aws::Vector m_resultAttributes; bool m_resultAttributesHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws