AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QBusiness
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_QBUSINESS_API RuleConfiguration() = default;
39 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const ContentBlockerRule& GetContentBlockerRule() const { return m_contentBlockerRule; }
48 inline bool ContentBlockerRuleHasBeenSet() const { return m_contentBlockerRuleHasBeenSet; }
49 template<typename ContentBlockerRuleT = ContentBlockerRule>
50 void SetContentBlockerRule(ContentBlockerRuleT&& value) { m_contentBlockerRuleHasBeenSet = true; m_contentBlockerRule = std::forward<ContentBlockerRuleT>(value); }
51 template<typename ContentBlockerRuleT = ContentBlockerRule>
52 RuleConfiguration& WithContentBlockerRule(ContentBlockerRuleT&& value) { SetContentBlockerRule(std::forward<ContentBlockerRuleT>(value)); return *this;}
54
56
57 inline const ContentRetrievalRule& GetContentRetrievalRule() const { return m_contentRetrievalRule; }
58 inline bool ContentRetrievalRuleHasBeenSet() const { return m_contentRetrievalRuleHasBeenSet; }
59 template<typename ContentRetrievalRuleT = ContentRetrievalRule>
60 void SetContentRetrievalRule(ContentRetrievalRuleT&& value) { m_contentRetrievalRuleHasBeenSet = true; m_contentRetrievalRule = std::forward<ContentRetrievalRuleT>(value); }
61 template<typename ContentRetrievalRuleT = ContentRetrievalRule>
62 RuleConfiguration& WithContentRetrievalRule(ContentRetrievalRuleT&& value) { SetContentRetrievalRule(std::forward<ContentRetrievalRuleT>(value)); return *this;}
64 private:
65
66 ContentBlockerRule m_contentBlockerRule;
67 bool m_contentBlockerRuleHasBeenSet = false;
68
69 ContentRetrievalRule m_contentRetrievalRule;
70 bool m_contentRetrievalRuleHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace QBusiness
75} // 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