AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
SummaryConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
10#include <aws/network-firewall/model/SummaryRuleOption.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace NetworkFirewall {
21namespace Model {
22
35 public:
36 AWS_NETWORKFIREWALL_API SummaryConfiguration() = default;
37 AWS_NETWORKFIREWALL_API SummaryConfiguration(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_NETWORKFIREWALL_API SummaryConfiguration& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
40
42
46 inline const Aws::Vector<SummaryRuleOption>& GetRuleOptions() const { return m_ruleOptions; }
47 inline bool RuleOptionsHasBeenSet() const { return m_ruleOptionsHasBeenSet; }
48 template <typename RuleOptionsT = Aws::Vector<SummaryRuleOption>>
49 void SetRuleOptions(RuleOptionsT&& value) {
50 m_ruleOptionsHasBeenSet = true;
51 m_ruleOptions = std::forward<RuleOptionsT>(value);
52 }
53 template <typename RuleOptionsT = Aws::Vector<SummaryRuleOption>>
54 SummaryConfiguration& WithRuleOptions(RuleOptionsT&& value) {
55 SetRuleOptions(std::forward<RuleOptionsT>(value));
56 return *this;
57 }
59 m_ruleOptionsHasBeenSet = true;
60 m_ruleOptions.push_back(value);
61 return *this;
62 }
64 private:
66 bool m_ruleOptionsHasBeenSet = false;
67};
68
69} // namespace Model
70} // namespace NetworkFirewall
71} // namespace Aws
SummaryConfiguration & WithRuleOptions(RuleOptionsT &&value)
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_NETWORKFIREWALL_API SummaryConfiguration()=default
AWS_NETWORKFIREWALL_API SummaryConfiguration(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::Vector< SummaryRuleOption > & GetRuleOptions() const
SummaryConfiguration & AddRuleOptions(SummaryRuleOption value)
AWS_NETWORKFIREWALL_API SummaryConfiguration & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::vector< T, Aws::Allocator< T > > Vector