AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
DescribeConfigRulesRequest.h
1
6#pragma once
7#include <aws/config/ConfigServiceRequest.h>
8#include <aws/config/ConfigService_EXPORTS.h>
9#include <aws/config/model/DescribeConfigRulesFilters.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ConfigService {
17namespace Model {
18
25 public:
26 AWS_CONFIGSERVICE_API DescribeConfigRulesRequest() = default;
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.
32 inline virtual const char* GetServiceRequestName() const override { return "DescribeConfigRules"; }
33
34 AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override;
35
36 AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
43 inline const Aws::Vector<Aws::String>& GetConfigRuleNames() const { return m_configRuleNames; }
44 inline bool ConfigRuleNamesHasBeenSet() const { return m_configRuleNamesHasBeenSet; }
45 template <typename ConfigRuleNamesT = Aws::Vector<Aws::String>>
46 void SetConfigRuleNames(ConfigRuleNamesT&& value) {
47 m_configRuleNamesHasBeenSet = true;
48 m_configRuleNames = std::forward<ConfigRuleNamesT>(value);
49 }
50 template <typename ConfigRuleNamesT = Aws::Vector<Aws::String>>
52 SetConfigRuleNames(std::forward<ConfigRuleNamesT>(value));
53 return *this;
54 }
55 template <typename ConfigRuleNamesT = Aws::String>
57 m_configRuleNamesHasBeenSet = true;
58 m_configRuleNames.emplace_back(std::forward<ConfigRuleNamesT>(value));
59 return *this;
60 }
62
64
68 inline const Aws::String& GetNextToken() const { return m_nextToken; }
69 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
70 template <typename NextTokenT = Aws::String>
71 void SetNextToken(NextTokenT&& value) {
72 m_nextTokenHasBeenSet = true;
73 m_nextToken = std::forward<NextTokenT>(value);
74 }
75 template <typename NextTokenT = Aws::String>
77 SetNextToken(std::forward<NextTokenT>(value));
78 return *this;
79 }
81
83
90 inline const DescribeConfigRulesFilters& GetFilters() const { return m_filters; }
91 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
92 template <typename FiltersT = DescribeConfigRulesFilters>
93 void SetFilters(FiltersT&& value) {
94 m_filtersHasBeenSet = true;
95 m_filters = std::forward<FiltersT>(value);
96 }
97 template <typename FiltersT = DescribeConfigRulesFilters>
99 SetFilters(std::forward<FiltersT>(value));
100 return *this;
101 }
103 private:
104 Aws::Vector<Aws::String> m_configRuleNames;
105
106 Aws::String m_nextToken;
107
109 bool m_configRuleNamesHasBeenSet = false;
110 bool m_nextTokenHasBeenSet = false;
111 bool m_filtersHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace ConfigService
116} // 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