/** * 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 RecycleBin { namespace Model { /** */ class ListRulesRequest : public RecycleBinRequest { public: AWS_RECYCLEBIN_API ListRulesRequest(); // 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 "ListRules"; } AWS_RECYCLEBIN_API Aws::String SerializePayload() const override; /** *

The maximum number of results to return with a single call. To retrieve the * remaining results, make another call with the returned NextToken * value.

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

The maximum number of results to return with a single call. To retrieve the * remaining results, make another call with the returned NextToken * value.

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

The maximum number of results to return with a single call. To retrieve the * remaining results, make another call with the returned NextToken * value.

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

The maximum number of results to return with a single call. To retrieve the * remaining results, make another call with the returned NextToken * value.

*/ inline ListRulesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

The token for the next page of results.

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

The token for the next page of results.

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

The token for the next page of results.

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

The token for the next page of results.

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

The token for the next page of results.

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

The token for the next page of results.

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

The token for the next page of results.

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

The token for the next page of results.

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

The resource type retained by the retention rule. Only retention rules that * retain the specified resource type are listed. Currently, only Amazon EBS * snapshots and EBS-backed AMIs are supported. To list retention rules that retain * snapshots, specify EBS_SNAPSHOT. To list retention rules that * retain EBS-backed AMIs, specify EC2_IMAGE.

*/ inline const ResourceType& GetResourceType() const{ return m_resourceType; } /** *

The resource type retained by the retention rule. Only retention rules that * retain the specified resource type are listed. Currently, only Amazon EBS * snapshots and EBS-backed AMIs are supported. To list retention rules that retain * snapshots, specify EBS_SNAPSHOT. To list retention rules that * retain EBS-backed AMIs, specify EC2_IMAGE.

*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *

The resource type retained by the retention rule. Only retention rules that * retain the specified resource type are listed. Currently, only Amazon EBS * snapshots and EBS-backed AMIs are supported. To list retention rules that retain * snapshots, specify EBS_SNAPSHOT. To list retention rules that * retain EBS-backed AMIs, specify EC2_IMAGE.

*/ inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *

The resource type retained by the retention rule. Only retention rules that * retain the specified resource type are listed. Currently, only Amazon EBS * snapshots and EBS-backed AMIs are supported. To list retention rules that retain * snapshots, specify EBS_SNAPSHOT. To list retention rules that * retain EBS-backed AMIs, specify EC2_IMAGE.

*/ inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *

The resource type retained by the retention rule. Only retention rules that * retain the specified resource type are listed. Currently, only Amazon EBS * snapshots and EBS-backed AMIs are supported. To list retention rules that retain * snapshots, specify EBS_SNAPSHOT. To list retention rules that * retain EBS-backed AMIs, specify EC2_IMAGE.

*/ inline ListRulesRequest& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;} /** *

The resource type retained by the retention rule. Only retention rules that * retain the specified resource type are listed. Currently, only Amazon EBS * snapshots and EBS-backed AMIs are supported. To list retention rules that retain * snapshots, specify EBS_SNAPSHOT. To list retention rules that * retain EBS-backed AMIs, specify EC2_IMAGE.

*/ inline ListRulesRequest& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;} /** *

Information about the resource tags used to identify resources that are * retained by the retention rule.

*/ inline const Aws::Vector& GetResourceTags() const{ return m_resourceTags; } /** *

Information about the resource tags used to identify resources that are * retained by the retention rule.

*/ inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; } /** *

Information about the resource tags used to identify resources that are * retained by the retention rule.

*/ inline void SetResourceTags(const Aws::Vector& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = value; } /** *

Information about the resource tags used to identify resources that are * retained by the retention rule.

*/ inline void SetResourceTags(Aws::Vector&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::move(value); } /** *

Information about the resource tags used to identify resources that are * retained by the retention rule.

*/ inline ListRulesRequest& WithResourceTags(const Aws::Vector& value) { SetResourceTags(value); return *this;} /** *

Information about the resource tags used to identify resources that are * retained by the retention rule.

*/ inline ListRulesRequest& WithResourceTags(Aws::Vector&& value) { SetResourceTags(std::move(value)); return *this;} /** *

Information about the resource tags used to identify resources that are * retained by the retention rule.

*/ inline ListRulesRequest& AddResourceTags(const ResourceTag& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.push_back(value); return *this; } /** *

Information about the resource tags used to identify resources that are * retained by the retention rule.

*/ inline ListRulesRequest& AddResourceTags(ResourceTag&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.push_back(std::move(value)); return *this; } /** *

The lock state of the retention rules to list. Only retention rules with the * specified lock state are returned.

*/ inline const LockState& GetLockState() const{ return m_lockState; } /** *

The lock state of the retention rules to list. Only retention rules with the * specified lock state are returned.

*/ inline bool LockStateHasBeenSet() const { return m_lockStateHasBeenSet; } /** *

The lock state of the retention rules to list. Only retention rules with the * specified lock state are returned.

*/ inline void SetLockState(const LockState& value) { m_lockStateHasBeenSet = true; m_lockState = value; } /** *

The lock state of the retention rules to list. Only retention rules with the * specified lock state are returned.

*/ inline void SetLockState(LockState&& value) { m_lockStateHasBeenSet = true; m_lockState = std::move(value); } /** *

The lock state of the retention rules to list. Only retention rules with the * specified lock state are returned.

*/ inline ListRulesRequest& WithLockState(const LockState& value) { SetLockState(value); return *this;} /** *

The lock state of the retention rules to list. Only retention rules with the * specified lock state are returned.

*/ inline ListRulesRequest& WithLockState(LockState&& value) { SetLockState(std::move(value)); return *this;} private: int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; ResourceType m_resourceType; bool m_resourceTypeHasBeenSet = false; Aws::Vector m_resourceTags; bool m_resourceTagsHasBeenSet = false; LockState m_lockState; bool m_lockStateHasBeenSet = false; }; } // namespace Model } // namespace RecycleBin } // namespace Aws