AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
37 AWS_QBUSINESS_API RuleConfiguration(Aws::Utils::Json::JsonView jsonValue);
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 inline void SetContentBlockerRule(const ContentBlockerRule& value) { m_contentBlockerRuleHasBeenSet = true; m_contentBlockerRule = value; }
50 inline void SetContentBlockerRule(ContentBlockerRule&& value) { m_contentBlockerRuleHasBeenSet = true; m_contentBlockerRule = std::move(value); }
52 inline RuleConfiguration& WithContentBlockerRule(ContentBlockerRule&& value) { SetContentBlockerRule(std::move(value)); return *this;}
54
56
57 inline const ContentRetrievalRule& GetContentRetrievalRule() const{ return m_contentRetrievalRule; }
58 inline bool ContentRetrievalRuleHasBeenSet() const { return m_contentRetrievalRuleHasBeenSet; }
59 inline void SetContentRetrievalRule(const ContentRetrievalRule& value) { m_contentRetrievalRuleHasBeenSet = true; m_contentRetrievalRule = value; }
60 inline void SetContentRetrievalRule(ContentRetrievalRule&& value) { m_contentRetrievalRuleHasBeenSet = true; m_contentRetrievalRule = std::move(value); }
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
RuleConfiguration & WithContentBlockerRule(const ContentBlockerRule &value)
RuleConfiguration & WithContentBlockerRule(ContentBlockerRule &&value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
const ContentRetrievalRule & GetContentRetrievalRule() const
RuleConfiguration & WithContentRetrievalRule(const ContentRetrievalRule &value)
AWS_QBUSINESS_API RuleConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContentRetrievalRule(const ContentRetrievalRule &value)
RuleConfiguration & WithContentRetrievalRule(ContentRetrievalRule &&value)
void SetContentBlockerRule(const ContentBlockerRule &value)
void SetContentRetrievalRule(ContentRetrievalRule &&value)
void SetContentBlockerRule(ContentBlockerRule &&value)
AWS_QBUSINESS_API RuleConfiguration(Aws::Utils::Json::JsonView jsonValue)
const ContentBlockerRule & GetContentBlockerRule() const
Aws::Utils::Json::JsonValue JsonValue