AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
RuleCondition.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/rtbfabric/RTBFabric_EXPORTS.h>
9#include <aws/rtbfabric/model/QueryStringKeyValuePair.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace RTBFabric {
21namespace Model {
22
31 public:
32 AWS_RTBFABRIC_API RuleCondition() = default;
33 AWS_RTBFABRIC_API RuleCondition(Aws::Utils::Json::JsonView jsonValue);
34 AWS_RTBFABRIC_API RuleCondition& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_RTBFABRIC_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetHostHeader() const { return m_hostHeader; }
42 inline bool HostHeaderHasBeenSet() const { return m_hostHeaderHasBeenSet; }
43 template <typename HostHeaderT = Aws::String>
44 void SetHostHeader(HostHeaderT&& value) {
45 m_hostHeaderHasBeenSet = true;
46 m_hostHeader = std::forward<HostHeaderT>(value);
47 }
48 template <typename HostHeaderT = Aws::String>
49 RuleCondition& WithHostHeader(HostHeaderT&& value) {
50 SetHostHeader(std::forward<HostHeaderT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetHostHeaderWildcard() const { return m_hostHeaderWildcard; }
61 inline bool HostHeaderWildcardHasBeenSet() const { return m_hostHeaderWildcardHasBeenSet; }
62 template <typename HostHeaderWildcardT = Aws::String>
63 void SetHostHeaderWildcard(HostHeaderWildcardT&& value) {
64 m_hostHeaderWildcardHasBeenSet = true;
65 m_hostHeaderWildcard = std::forward<HostHeaderWildcardT>(value);
66 }
67 template <typename HostHeaderWildcardT = Aws::String>
68 RuleCondition& WithHostHeaderWildcard(HostHeaderWildcardT&& value) {
69 SetHostHeaderWildcard(std::forward<HostHeaderWildcardT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetPathPrefix() const { return m_pathPrefix; }
80 inline bool PathPrefixHasBeenSet() const { return m_pathPrefixHasBeenSet; }
81 template <typename PathPrefixT = Aws::String>
82 void SetPathPrefix(PathPrefixT&& value) {
83 m_pathPrefixHasBeenSet = true;
84 m_pathPrefix = std::forward<PathPrefixT>(value);
85 }
86 template <typename PathPrefixT = Aws::String>
87 RuleCondition& WithPathPrefix(PathPrefixT&& value) {
88 SetPathPrefix(std::forward<PathPrefixT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetPathExact() const { return m_pathExact; }
98 inline bool PathExactHasBeenSet() const { return m_pathExactHasBeenSet; }
99 template <typename PathExactT = Aws::String>
100 void SetPathExact(PathExactT&& value) {
101 m_pathExactHasBeenSet = true;
102 m_pathExact = std::forward<PathExactT>(value);
103 }
104 template <typename PathExactT = Aws::String>
105 RuleCondition& WithPathExact(PathExactT&& value) {
106 SetPathExact(std::forward<PathExactT>(value));
107 return *this;
108 }
110
112
115 inline const QueryStringKeyValuePair& GetQueryStringEquals() const { return m_queryStringEquals; }
116 inline bool QueryStringEqualsHasBeenSet() const { return m_queryStringEqualsHasBeenSet; }
117 template <typename QueryStringEqualsT = QueryStringKeyValuePair>
118 void SetQueryStringEquals(QueryStringEqualsT&& value) {
119 m_queryStringEqualsHasBeenSet = true;
120 m_queryStringEquals = std::forward<QueryStringEqualsT>(value);
121 }
122 template <typename QueryStringEqualsT = QueryStringKeyValuePair>
123 RuleCondition& WithQueryStringEquals(QueryStringEqualsT&& value) {
124 SetQueryStringEquals(std::forward<QueryStringEqualsT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::String& GetQueryStringExists() const { return m_queryStringExists; }
135 inline bool QueryStringExistsHasBeenSet() const { return m_queryStringExistsHasBeenSet; }
136 template <typename QueryStringExistsT = Aws::String>
137 void SetQueryStringExists(QueryStringExistsT&& value) {
138 m_queryStringExistsHasBeenSet = true;
139 m_queryStringExists = std::forward<QueryStringExistsT>(value);
140 }
141 template <typename QueryStringExistsT = Aws::String>
142 RuleCondition& WithQueryStringExists(QueryStringExistsT&& value) {
143 SetQueryStringExists(std::forward<QueryStringExistsT>(value));
144 return *this;
145 }
147 private:
148 Aws::String m_hostHeader;
149
150 Aws::String m_hostHeaderWildcard;
151
152 Aws::String m_pathPrefix;
153
154 Aws::String m_pathExact;
155
156 QueryStringKeyValuePair m_queryStringEquals;
157
158 Aws::String m_queryStringExists;
159 bool m_hostHeaderHasBeenSet = false;
160 bool m_hostHeaderWildcardHasBeenSet = false;
161 bool m_pathPrefixHasBeenSet = false;
162 bool m_pathExactHasBeenSet = false;
163 bool m_queryStringEqualsHasBeenSet = false;
164 bool m_queryStringExistsHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace RTBFabric
169} // namespace Aws
AWS_RTBFABRIC_API RuleCondition(Aws::Utils::Json::JsonView jsonValue)
void SetQueryStringExists(QueryStringExistsT &&value)
AWS_RTBFABRIC_API RuleCondition()=default
const Aws::String & GetPathExact() const
RuleCondition & WithHostHeader(HostHeaderT &&value)
void SetPathExact(PathExactT &&value)
void SetHostHeaderWildcard(HostHeaderWildcardT &&value)
RuleCondition & WithHostHeaderWildcard(HostHeaderWildcardT &&value)
RuleCondition & WithPathPrefix(PathPrefixT &&value)
RuleCondition & WithPathExact(PathExactT &&value)
const Aws::String & GetPathPrefix() const
AWS_RTBFABRIC_API RuleCondition & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetHostHeader(HostHeaderT &&value)
RuleCondition & WithQueryStringEquals(QueryStringEqualsT &&value)
void SetQueryStringEquals(QueryStringEqualsT &&value)
const QueryStringKeyValuePair & GetQueryStringEquals() const
const Aws::String & GetHostHeaderWildcard() const
AWS_RTBFABRIC_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetHostHeader() const
void SetPathPrefix(PathPrefixT &&value)
const Aws::String & GetQueryStringExists() const
RuleCondition & WithQueryStringExists(QueryStringExistsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue