AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
RuleConfiguration.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/qbusiness/model/ContentBlockerRule.h>
9#include <aws/qbusiness/model/ContentRetrievalRule.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QBusiness {
21namespace Model {
22
30 public:
31 AWS_QBUSINESS_API RuleConfiguration() = default;
34 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const ContentBlockerRule& GetContentBlockerRule() const { return m_contentBlockerRule; }
42 inline bool ContentBlockerRuleHasBeenSet() const { return m_contentBlockerRuleHasBeenSet; }
43 template <typename ContentBlockerRuleT = ContentBlockerRule>
45 m_contentBlockerRuleHasBeenSet = true;
46 m_contentBlockerRule = std::forward<ContentBlockerRuleT>(value);
47 }
48 template <typename ContentBlockerRuleT = ContentBlockerRule>
50 SetContentBlockerRule(std::forward<ContentBlockerRuleT>(value));
51 return *this;
52 }
54
56
57 inline const ContentRetrievalRule& GetContentRetrievalRule() const { return m_contentRetrievalRule; }
58 inline bool ContentRetrievalRuleHasBeenSet() const { return m_contentRetrievalRuleHasBeenSet; }
59 template <typename ContentRetrievalRuleT = ContentRetrievalRule>
61 m_contentRetrievalRuleHasBeenSet = true;
62 m_contentRetrievalRule = std::forward<ContentRetrievalRuleT>(value);
63 }
64 template <typename ContentRetrievalRuleT = ContentRetrievalRule>
66 SetContentRetrievalRule(std::forward<ContentRetrievalRuleT>(value));
67 return *this;
68 }
70 private:
71 ContentBlockerRule m_contentBlockerRule;
72
73 ContentRetrievalRule m_contentRetrievalRule;
74 bool m_contentBlockerRuleHasBeenSet = false;
75 bool m_contentRetrievalRuleHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace QBusiness
80} // namespace Aws
void SetContentRetrievalRule(ContentRetrievalRuleT &&value)
RuleConfiguration & WithContentRetrievalRule(ContentRetrievalRuleT &&value)
void SetContentBlockerRule(ContentBlockerRuleT &&value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
const ContentRetrievalRule & GetContentRetrievalRule() const
AWS_QBUSINESS_API RuleConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleConfiguration & WithContentBlockerRule(ContentBlockerRuleT &&value)
AWS_QBUSINESS_API RuleConfiguration()=default
AWS_QBUSINESS_API RuleConfiguration(Aws::Utils::Json::JsonView jsonValue)
const ContentBlockerRule & GetContentBlockerRule() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue