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 <aws/config/model/ConfigRuleComplianceFilters.h> 11 #include <utility> 12 13 namespace Aws 14 { 15 namespace ConfigService 16 { 17 namespace Model 18 { 19 20 /** 21 */ 22 class AWS_CONFIGSERVICE_API DescribeAggregateComplianceByConfigRulesRequest : public ConfigServiceRequest 23 { 24 public: 25 DescribeAggregateComplianceByConfigRulesRequest(); 26 27 // Service request name is the Operation name which will send this request out, 28 // each operation should has unique request name, so that we can get operation's name from this request. 29 // Note: this is not true for response, multiple operations may have the same response name, 30 // so we can not get operation's name from response. GetServiceRequestName()31 inline virtual const char* GetServiceRequestName() const override { return "DescribeAggregateComplianceByConfigRules"; } 32 33 Aws::String SerializePayload() const override; 34 35 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 36 37 38 /** 39 * <p>The name of the configuration aggregator.</p> 40 */ GetConfigurationAggregatorName()41 inline const Aws::String& GetConfigurationAggregatorName() const{ return m_configurationAggregatorName; } 42 43 /** 44 * <p>The name of the configuration aggregator.</p> 45 */ ConfigurationAggregatorNameHasBeenSet()46 inline bool ConfigurationAggregatorNameHasBeenSet() const { return m_configurationAggregatorNameHasBeenSet; } 47 48 /** 49 * <p>The name of the configuration aggregator.</p> 50 */ SetConfigurationAggregatorName(const Aws::String & value)51 inline void SetConfigurationAggregatorName(const Aws::String& value) { m_configurationAggregatorNameHasBeenSet = true; m_configurationAggregatorName = value; } 52 53 /** 54 * <p>The name of the configuration aggregator.</p> 55 */ SetConfigurationAggregatorName(Aws::String && value)56 inline void SetConfigurationAggregatorName(Aws::String&& value) { m_configurationAggregatorNameHasBeenSet = true; m_configurationAggregatorName = std::move(value); } 57 58 /** 59 * <p>The name of the configuration aggregator.</p> 60 */ SetConfigurationAggregatorName(const char * value)61 inline void SetConfigurationAggregatorName(const char* value) { m_configurationAggregatorNameHasBeenSet = true; m_configurationAggregatorName.assign(value); } 62 63 /** 64 * <p>The name of the configuration aggregator.</p> 65 */ WithConfigurationAggregatorName(const Aws::String & value)66 inline DescribeAggregateComplianceByConfigRulesRequest& WithConfigurationAggregatorName(const Aws::String& value) { SetConfigurationAggregatorName(value); return *this;} 67 68 /** 69 * <p>The name of the configuration aggregator.</p> 70 */ WithConfigurationAggregatorName(Aws::String && value)71 inline DescribeAggregateComplianceByConfigRulesRequest& WithConfigurationAggregatorName(Aws::String&& value) { SetConfigurationAggregatorName(std::move(value)); return *this;} 72 73 /** 74 * <p>The name of the configuration aggregator.</p> 75 */ WithConfigurationAggregatorName(const char * value)76 inline DescribeAggregateComplianceByConfigRulesRequest& WithConfigurationAggregatorName(const char* value) { SetConfigurationAggregatorName(value); return *this;} 77 78 79 /** 80 * <p>Filters the results by ConfigRuleComplianceFilters object. </p> 81 */ GetFilters()82 inline const ConfigRuleComplianceFilters& GetFilters() const{ return m_filters; } 83 84 /** 85 * <p>Filters the results by ConfigRuleComplianceFilters object. </p> 86 */ FiltersHasBeenSet()87 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } 88 89 /** 90 * <p>Filters the results by ConfigRuleComplianceFilters object. </p> 91 */ SetFilters(const ConfigRuleComplianceFilters & value)92 inline void SetFilters(const ConfigRuleComplianceFilters& value) { m_filtersHasBeenSet = true; m_filters = value; } 93 94 /** 95 * <p>Filters the results by ConfigRuleComplianceFilters object. </p> 96 */ SetFilters(ConfigRuleComplianceFilters && value)97 inline void SetFilters(ConfigRuleComplianceFilters&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } 98 99 /** 100 * <p>Filters the results by ConfigRuleComplianceFilters object. </p> 101 */ WithFilters(const ConfigRuleComplianceFilters & value)102 inline DescribeAggregateComplianceByConfigRulesRequest& WithFilters(const ConfigRuleComplianceFilters& value) { SetFilters(value); return *this;} 103 104 /** 105 * <p>Filters the results by ConfigRuleComplianceFilters object. </p> 106 */ WithFilters(ConfigRuleComplianceFilters && value)107 inline DescribeAggregateComplianceByConfigRulesRequest& WithFilters(ConfigRuleComplianceFilters&& value) { SetFilters(std::move(value)); return *this;} 108 109 110 /** 111 * <p>The maximum number of evaluation results returned on each page. The default 112 * is maximum. If you specify 0, Config uses the default.</p> 113 */ GetLimit()114 inline int GetLimit() const{ return m_limit; } 115 116 /** 117 * <p>The maximum number of evaluation results returned on each page. The default 118 * is maximum. If you specify 0, Config uses the default.</p> 119 */ LimitHasBeenSet()120 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; } 121 122 /** 123 * <p>The maximum number of evaluation results returned on each page. The default 124 * is maximum. If you specify 0, Config uses the default.</p> 125 */ SetLimit(int value)126 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; } 127 128 /** 129 * <p>The maximum number of evaluation results returned on each page. The default 130 * is maximum. If you specify 0, Config uses the default.</p> 131 */ WithLimit(int value)132 inline DescribeAggregateComplianceByConfigRulesRequest& WithLimit(int value) { SetLimit(value); return *this;} 133 134 135 /** 136 * <p>The <code>nextToken</code> string returned on a previous page that you use to 137 * get the next page of results in a paginated response.</p> 138 */ GetNextToken()139 inline const Aws::String& GetNextToken() const{ return m_nextToken; } 140 141 /** 142 * <p>The <code>nextToken</code> string returned on a previous page that you use to 143 * get the next page of results in a paginated response.</p> 144 */ NextTokenHasBeenSet()145 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } 146 147 /** 148 * <p>The <code>nextToken</code> string returned on a previous page that you use to 149 * get the next page of results in a paginated response.</p> 150 */ SetNextToken(const Aws::String & value)151 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } 152 153 /** 154 * <p>The <code>nextToken</code> string returned on a previous page that you use to 155 * get the next page of results in a paginated response.</p> 156 */ SetNextToken(Aws::String && value)157 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } 158 159 /** 160 * <p>The <code>nextToken</code> string returned on a previous page that you use to 161 * get the next page of results in a paginated response.</p> 162 */ SetNextToken(const char * value)163 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } 164 165 /** 166 * <p>The <code>nextToken</code> string returned on a previous page that you use to 167 * get the next page of results in a paginated response.</p> 168 */ WithNextToken(const Aws::String & value)169 inline DescribeAggregateComplianceByConfigRulesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} 170 171 /** 172 * <p>The <code>nextToken</code> string returned on a previous page that you use to 173 * get the next page of results in a paginated response.</p> 174 */ WithNextToken(Aws::String && value)175 inline DescribeAggregateComplianceByConfigRulesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} 176 177 /** 178 * <p>The <code>nextToken</code> string returned on a previous page that you use to 179 * get the next page of results in a paginated response.</p> 180 */ WithNextToken(const char * value)181 inline DescribeAggregateComplianceByConfigRulesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} 182 183 private: 184 185 Aws::String m_configurationAggregatorName; 186 bool m_configurationAggregatorNameHasBeenSet; 187 188 ConfigRuleComplianceFilters m_filters; 189 bool m_filtersHasBeenSet; 190 191 int m_limit; 192 bool m_limitHasBeenSet; 193 194 Aws::String m_nextToken; 195 bool m_nextTokenHasBeenSet; 196 }; 197 198 } // namespace Model 199 } // namespace ConfigService 200 } // namespace Aws 201