AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ApiSelectionConfiguration.h
1
6#pragma once
7#include <aws/apiportal/APIPortal_EXPORTS.h>
8#include <aws/apiportal/model/ApiSelectionMode.h>
9#include <aws/apiportal/model/RuleFilter.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace APIPortal {
22namespace Model {
23
32 public:
33 AWS_APIPORTAL_API ApiSelectionConfiguration() = default;
36 AWS_APIPORTAL_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
40 inline ApiSelectionMode GetApiSelectionMode() const { return m_apiSelectionMode; }
41 inline bool ApiSelectionModeHasBeenSet() const { return m_apiSelectionModeHasBeenSet; }
43 m_apiSelectionModeHasBeenSet = true;
44 m_apiSelectionMode = value;
45 }
51
53
58 inline const Aws::Vector<RuleFilter>& GetRuleFilters() const { return m_ruleFilters; }
59 inline bool RuleFiltersHasBeenSet() const { return m_ruleFiltersHasBeenSet; }
60 template <typename RuleFiltersT = Aws::Vector<RuleFilter>>
61 void SetRuleFilters(RuleFiltersT&& value) {
62 m_ruleFiltersHasBeenSet = true;
63 m_ruleFilters = std::forward<RuleFiltersT>(value);
64 }
65 template <typename RuleFiltersT = Aws::Vector<RuleFilter>>
67 SetRuleFilters(std::forward<RuleFiltersT>(value));
68 return *this;
69 }
70 template <typename RuleFiltersT = RuleFilter>
72 m_ruleFiltersHasBeenSet = true;
73 m_ruleFilters.emplace_back(std::forward<RuleFiltersT>(value));
74 return *this;
75 }
77 private:
79
80 Aws::Vector<RuleFilter> m_ruleFilters;
81 bool m_apiSelectionModeHasBeenSet = false;
82 bool m_ruleFiltersHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace APIPortal
87} // namespace Aws
AWS_APIPORTAL_API ApiSelectionConfiguration(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< RuleFilter > & GetRuleFilters() const
AWS_APIPORTAL_API Aws::Utils::Json::JsonValue Jsonize() const
ApiSelectionConfiguration & WithApiSelectionMode(ApiSelectionMode value)
ApiSelectionConfiguration & AddRuleFilters(RuleFiltersT &&value)
ApiSelectionConfiguration & WithRuleFilters(RuleFiltersT &&value)
AWS_APIPORTAL_API ApiSelectionConfiguration()=default
AWS_APIPORTAL_API ApiSelectionConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue