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/config/ConfigService_EXPORTS.h> 8 #include <aws/config/ConfigServiceRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace ConfigService 15 { 16 namespace Model 17 { 18 19 /** 20 */ 21 class AWS_CONFIGSERVICE_API SelectAggregateResourceConfigRequest : public ConfigServiceRequest 22 { 23 public: 24 SelectAggregateResourceConfigRequest(); 25 26 // Service request name is the Operation name which will send this request out, 27 // each operation should has unique request name, so that we can get operation's name from this request. 28 // Note: this is not true for response, multiple operations may have the same response name, 29 // so we can not get operation's name from response. GetServiceRequestName()30 inline virtual const char* GetServiceRequestName() const override { return "SelectAggregateResourceConfig"; } 31 32 Aws::String SerializePayload() const override; 33 34 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 35 36 37 /** 38 * <p>The SQL query SELECT command. </p> 39 */ GetExpression()40 inline const Aws::String& GetExpression() const{ return m_expression; } 41 42 /** 43 * <p>The SQL query SELECT command. </p> 44 */ ExpressionHasBeenSet()45 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; } 46 47 /** 48 * <p>The SQL query SELECT command. </p> 49 */ SetExpression(const Aws::String & value)50 inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; } 51 52 /** 53 * <p>The SQL query SELECT command. </p> 54 */ SetExpression(Aws::String && value)55 inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); } 56 57 /** 58 * <p>The SQL query SELECT command. </p> 59 */ SetExpression(const char * value)60 inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); } 61 62 /** 63 * <p>The SQL query SELECT command. </p> 64 */ WithExpression(const Aws::String & value)65 inline SelectAggregateResourceConfigRequest& WithExpression(const Aws::String& value) { SetExpression(value); return *this;} 66 67 /** 68 * <p>The SQL query SELECT command. </p> 69 */ WithExpression(Aws::String && value)70 inline SelectAggregateResourceConfigRequest& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;} 71 72 /** 73 * <p>The SQL query SELECT command. </p> 74 */ WithExpression(const char * value)75 inline SelectAggregateResourceConfigRequest& WithExpression(const char* value) { SetExpression(value); return *this;} 76 77 78 /** 79 * <p>The name of the configuration aggregator.</p> 80 */ GetConfigurationAggregatorName()81 inline const Aws::String& GetConfigurationAggregatorName() const{ return m_configurationAggregatorName; } 82 83 /** 84 * <p>The name of the configuration aggregator.</p> 85 */ ConfigurationAggregatorNameHasBeenSet()86 inline bool ConfigurationAggregatorNameHasBeenSet() const { return m_configurationAggregatorNameHasBeenSet; } 87 88 /** 89 * <p>The name of the configuration aggregator.</p> 90 */ SetConfigurationAggregatorName(const Aws::String & value)91 inline void SetConfigurationAggregatorName(const Aws::String& value) { m_configurationAggregatorNameHasBeenSet = true; m_configurationAggregatorName = value; } 92 93 /** 94 * <p>The name of the configuration aggregator.</p> 95 */ SetConfigurationAggregatorName(Aws::String && value)96 inline void SetConfigurationAggregatorName(Aws::String&& value) { m_configurationAggregatorNameHasBeenSet = true; m_configurationAggregatorName = std::move(value); } 97 98 /** 99 * <p>The name of the configuration aggregator.</p> 100 */ SetConfigurationAggregatorName(const char * value)101 inline void SetConfigurationAggregatorName(const char* value) { m_configurationAggregatorNameHasBeenSet = true; m_configurationAggregatorName.assign(value); } 102 103 /** 104 * <p>The name of the configuration aggregator.</p> 105 */ WithConfigurationAggregatorName(const Aws::String & value)106 inline SelectAggregateResourceConfigRequest& WithConfigurationAggregatorName(const Aws::String& value) { SetConfigurationAggregatorName(value); return *this;} 107 108 /** 109 * <p>The name of the configuration aggregator.</p> 110 */ WithConfigurationAggregatorName(Aws::String && value)111 inline SelectAggregateResourceConfigRequest& WithConfigurationAggregatorName(Aws::String&& value) { SetConfigurationAggregatorName(std::move(value)); return *this;} 112 113 /** 114 * <p>The name of the configuration aggregator.</p> 115 */ WithConfigurationAggregatorName(const char * value)116 inline SelectAggregateResourceConfigRequest& WithConfigurationAggregatorName(const char* value) { SetConfigurationAggregatorName(value); return *this;} 117 118 119 /** 120 * <p>The maximum number of query results returned on each page. </p> 121 */ GetLimit()122 inline int GetLimit() const{ return m_limit; } 123 124 /** 125 * <p>The maximum number of query results returned on each page. </p> 126 */ LimitHasBeenSet()127 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; } 128 129 /** 130 * <p>The maximum number of query results returned on each page. </p> 131 */ SetLimit(int value)132 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; } 133 134 /** 135 * <p>The maximum number of query results returned on each page. </p> 136 */ WithLimit(int value)137 inline SelectAggregateResourceConfigRequest& WithLimit(int value) { SetLimit(value); return *this;} 138 139 140 /** 141 * <p>The maximum number of query results returned on each page. Config also allows 142 * the Limit request parameter.</p> 143 */ GetMaxResults()144 inline int GetMaxResults() const{ return m_maxResults; } 145 146 /** 147 * <p>The maximum number of query results returned on each page. Config also allows 148 * the Limit request parameter.</p> 149 */ MaxResultsHasBeenSet()150 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } 151 152 /** 153 * <p>The maximum number of query results returned on each page. Config also allows 154 * the Limit request parameter.</p> 155 */ SetMaxResults(int value)156 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } 157 158 /** 159 * <p>The maximum number of query results returned on each page. Config also allows 160 * the Limit request parameter.</p> 161 */ WithMaxResults(int value)162 inline SelectAggregateResourceConfigRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} 163 164 165 /** 166 * <p>The nextToken string returned in a previous request that you use to request 167 * the next page of results in a paginated response. </p> 168 */ GetNextToken()169 inline const Aws::String& GetNextToken() const{ return m_nextToken; } 170 171 /** 172 * <p>The nextToken string returned in a previous request that you use to request 173 * the next page of results in a paginated response. </p> 174 */ NextTokenHasBeenSet()175 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } 176 177 /** 178 * <p>The nextToken string returned in a previous request that you use to request 179 * the next page of results in a paginated response. </p> 180 */ SetNextToken(const Aws::String & value)181 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } 182 183 /** 184 * <p>The nextToken string returned in a previous request that you use to request 185 * the next page of results in a paginated response. </p> 186 */ SetNextToken(Aws::String && value)187 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } 188 189 /** 190 * <p>The nextToken string returned in a previous request that you use to request 191 * the next page of results in a paginated response. </p> 192 */ SetNextToken(const char * value)193 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } 194 195 /** 196 * <p>The nextToken string returned in a previous request that you use to request 197 * the next page of results in a paginated response. </p> 198 */ WithNextToken(const Aws::String & value)199 inline SelectAggregateResourceConfigRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} 200 201 /** 202 * <p>The nextToken string returned in a previous request that you use to request 203 * the next page of results in a paginated response. </p> 204 */ WithNextToken(Aws::String && value)205 inline SelectAggregateResourceConfigRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} 206 207 /** 208 * <p>The nextToken string returned in a previous request that you use to request 209 * the next page of results in a paginated response. </p> 210 */ WithNextToken(const char * value)211 inline SelectAggregateResourceConfigRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} 212 213 private: 214 215 Aws::String m_expression; 216 bool m_expressionHasBeenSet; 217 218 Aws::String m_configurationAggregatorName; 219 bool m_configurationAggregatorNameHasBeenSet; 220 221 int m_limit; 222 bool m_limitHasBeenSet; 223 224 int m_maxResults; 225 bool m_maxResultsHasBeenSet; 226 227 Aws::String m_nextToken; 228 bool m_nextTokenHasBeenSet; 229 }; 230 231 } // namespace Model 232 } // namespace ConfigService 233 } // namespace Aws 234