AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeConfigRulesRequest.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/config/ConfigServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/config/model/DescribeConfigRulesFilters.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ConfigService
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_CONFIGSERVICE_API DescribeConfigRulesRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "DescribeConfigRules"; }
36
37 AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override;
38
39 AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
47 inline const Aws::Vector<Aws::String>& GetConfigRuleNames() const { return m_configRuleNames; }
48 inline bool ConfigRuleNamesHasBeenSet() const { return m_configRuleNamesHasBeenSet; }
49 template<typename ConfigRuleNamesT = Aws::Vector<Aws::String>>
50 void SetConfigRuleNames(ConfigRuleNamesT&& value) { m_configRuleNamesHasBeenSet = true; m_configRuleNames = std::forward<ConfigRuleNamesT>(value); }
51 template<typename ConfigRuleNamesT = Aws::Vector<Aws::String>>
52 DescribeConfigRulesRequest& WithConfigRuleNames(ConfigRuleNamesT&& value) { SetConfigRuleNames(std::forward<ConfigRuleNamesT>(value)); return *this;}
53 template<typename ConfigRuleNamesT = Aws::String>
54 DescribeConfigRulesRequest& AddConfigRuleNames(ConfigRuleNamesT&& value) { m_configRuleNamesHasBeenSet = true; m_configRuleNames.emplace_back(std::forward<ConfigRuleNamesT>(value)); return *this; }
56
58
62 inline const Aws::String& GetNextToken() const { return m_nextToken; }
63 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
64 template<typename NextTokenT = Aws::String>
65 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
66 template<typename NextTokenT = Aws::String>
67 DescribeConfigRulesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
69
71
78 inline const DescribeConfigRulesFilters& GetFilters() const { return m_filters; }
79 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
80 template<typename FiltersT = DescribeConfigRulesFilters>
81 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
82 template<typename FiltersT = DescribeConfigRulesFilters>
83 DescribeConfigRulesRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
85 private:
86
87 Aws::Vector<Aws::String> m_configRuleNames;
88 bool m_configRuleNamesHasBeenSet = false;
89
90 Aws::String m_nextToken;
91 bool m_nextTokenHasBeenSet = false;
92
94 bool m_filtersHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace ConfigService
99} // namespace Aws
DescribeConfigRulesRequest & WithNextToken(NextTokenT &&value)
DescribeConfigRulesRequest & WithFilters(FiltersT &&value)
const DescribeConfigRulesFilters & GetFilters() const
DescribeConfigRulesRequest & AddConfigRuleNames(ConfigRuleNamesT &&value)
AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetConfigRuleNames() const
AWS_CONFIGSERVICE_API DescribeConfigRulesRequest()=default
AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeConfigRulesRequest & WithConfigRuleNames(ConfigRuleNamesT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector