1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/discovery/ApplicationDiscoveryService_EXPORTS.h> 8 #include <aws/discovery/ApplicationDiscoveryServiceRequest.h> 9 #include <aws/core/utils/memory/stl/AWSVector.h> 10 #include <aws/core/utils/memory/stl/AWSString.h> 11 #include <aws/discovery/model/TagFilter.h> 12 #include <utility> 13 14 namespace Aws 15 { 16 namespace ApplicationDiscoveryService 17 { 18 namespace Model 19 { 20 21 /** 22 */ 23 class AWS_APPLICATIONDISCOVERYSERVICE_API DescribeTagsRequest : public ApplicationDiscoveryServiceRequest 24 { 25 public: 26 DescribeTagsRequest(); 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. GetServiceRequestName()32 inline virtual const char* GetServiceRequestName() const override { return "DescribeTags"; } 33 34 Aws::String SerializePayload() const override; 35 36 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 37 38 39 /** 40 * <p>You can filter the list using a <i>key</i>-<i>value</i> format. You can 41 * separate these items by using logical operators. Allowed filters include 42 * <code>tagKey</code>, <code>tagValue</code>, and <code>configurationId</code>. 43 * </p> 44 */ GetFilters()45 inline const Aws::Vector<TagFilter>& GetFilters() const{ return m_filters; } 46 47 /** 48 * <p>You can filter the list using a <i>key</i>-<i>value</i> format. You can 49 * separate these items by using logical operators. Allowed filters include 50 * <code>tagKey</code>, <code>tagValue</code>, and <code>configurationId</code>. 51 * </p> 52 */ FiltersHasBeenSet()53 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } 54 55 /** 56 * <p>You can filter the list using a <i>key</i>-<i>value</i> format. You can 57 * separate these items by using logical operators. Allowed filters include 58 * <code>tagKey</code>, <code>tagValue</code>, and <code>configurationId</code>. 59 * </p> 60 */ SetFilters(const Aws::Vector<TagFilter> & value)61 inline void SetFilters(const Aws::Vector<TagFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; } 62 63 /** 64 * <p>You can filter the list using a <i>key</i>-<i>value</i> format. You can 65 * separate these items by using logical operators. Allowed filters include 66 * <code>tagKey</code>, <code>tagValue</code>, and <code>configurationId</code>. 67 * </p> 68 */ SetFilters(Aws::Vector<TagFilter> && value)69 inline void SetFilters(Aws::Vector<TagFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } 70 71 /** 72 * <p>You can filter the list using a <i>key</i>-<i>value</i> format. You can 73 * separate these items by using logical operators. Allowed filters include 74 * <code>tagKey</code>, <code>tagValue</code>, and <code>configurationId</code>. 75 * </p> 76 */ WithFilters(const Aws::Vector<TagFilter> & value)77 inline DescribeTagsRequest& WithFilters(const Aws::Vector<TagFilter>& value) { SetFilters(value); return *this;} 78 79 /** 80 * <p>You can filter the list using a <i>key</i>-<i>value</i> format. You can 81 * separate these items by using logical operators. Allowed filters include 82 * <code>tagKey</code>, <code>tagValue</code>, and <code>configurationId</code>. 83 * </p> 84 */ WithFilters(Aws::Vector<TagFilter> && value)85 inline DescribeTagsRequest& WithFilters(Aws::Vector<TagFilter>&& value) { SetFilters(std::move(value)); return *this;} 86 87 /** 88 * <p>You can filter the list using a <i>key</i>-<i>value</i> format. You can 89 * separate these items by using logical operators. Allowed filters include 90 * <code>tagKey</code>, <code>tagValue</code>, and <code>configurationId</code>. 91 * </p> 92 */ AddFilters(const TagFilter & value)93 inline DescribeTagsRequest& AddFilters(const TagFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; } 94 95 /** 96 * <p>You can filter the list using a <i>key</i>-<i>value</i> format. You can 97 * separate these items by using logical operators. Allowed filters include 98 * <code>tagKey</code>, <code>tagValue</code>, and <code>configurationId</code>. 99 * </p> 100 */ AddFilters(TagFilter && value)101 inline DescribeTagsRequest& AddFilters(TagFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; } 102 103 104 /** 105 * <p>The total number of items to return in a single page of output. The maximum 106 * value is 100.</p> 107 */ GetMaxResults()108 inline int GetMaxResults() const{ return m_maxResults; } 109 110 /** 111 * <p>The total number of items to return in a single page of output. The maximum 112 * value is 100.</p> 113 */ MaxResultsHasBeenSet()114 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } 115 116 /** 117 * <p>The total number of items to return in a single page of output. The maximum 118 * value is 100.</p> 119 */ SetMaxResults(int value)120 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } 121 122 /** 123 * <p>The total number of items to return in a single page of output. The maximum 124 * value is 100.</p> 125 */ WithMaxResults(int value)126 inline DescribeTagsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} 127 128 129 /** 130 * <p>A token to start the list. Use this token to get the next set of results.</p> 131 */ GetNextToken()132 inline const Aws::String& GetNextToken() const{ return m_nextToken; } 133 134 /** 135 * <p>A token to start the list. Use this token to get the next set of results.</p> 136 */ NextTokenHasBeenSet()137 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } 138 139 /** 140 * <p>A token to start the list. Use this token to get the next set of results.</p> 141 */ SetNextToken(const Aws::String & value)142 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } 143 144 /** 145 * <p>A token to start the list. Use this token to get the next set of results.</p> 146 */ SetNextToken(Aws::String && value)147 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } 148 149 /** 150 * <p>A token to start the list. Use this token to get the next set of results.</p> 151 */ SetNextToken(const char * value)152 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } 153 154 /** 155 * <p>A token to start the list. Use this token to get the next set of results.</p> 156 */ WithNextToken(const Aws::String & value)157 inline DescribeTagsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} 158 159 /** 160 * <p>A token to start the list. Use this token to get the next set of results.</p> 161 */ WithNextToken(Aws::String && value)162 inline DescribeTagsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} 163 164 /** 165 * <p>A token to start the list. Use this token to get the next set of results.</p> 166 */ WithNextToken(const char * value)167 inline DescribeTagsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} 168 169 private: 170 171 Aws::Vector<TagFilter> m_filters; 172 bool m_filtersHasBeenSet; 173 174 int m_maxResults; 175 bool m_maxResultsHasBeenSet; 176 177 Aws::String m_nextToken; 178 bool m_nextTokenHasBeenSet; 179 }; 180 181 } // namespace Model 182 } // namespace ApplicationDiscoveryService 183 } // namespace Aws 184