AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
MatchClause.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/model/EntityPattern.h>
9#include <aws/datazone/model/RelationPattern.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DataZone {
21namespace Model {
22
29 public:
30 AWS_DATAZONE_API MatchClause() = default;
31 AWS_DATAZONE_API MatchClause(Aws::Utils::Json::JsonView jsonValue);
32 AWS_DATAZONE_API MatchClause& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const RelationPattern& GetRelationPattern() const { return m_relationPattern; }
40 inline bool RelationPatternHasBeenSet() const { return m_relationPatternHasBeenSet; }
41 template <typename RelationPatternT = RelationPattern>
42 void SetRelationPattern(RelationPatternT&& value) {
43 m_relationPatternHasBeenSet = true;
44 m_relationPattern = std::forward<RelationPatternT>(value);
45 }
46 template <typename RelationPatternT = RelationPattern>
47 MatchClause& WithRelationPattern(RelationPatternT&& value) {
48 SetRelationPattern(std::forward<RelationPatternT>(value));
49 return *this;
50 }
52
54
57 inline const EntityPattern& GetEntityPattern() const { return m_entityPattern; }
58 inline bool EntityPatternHasBeenSet() const { return m_entityPatternHasBeenSet; }
59 template <typename EntityPatternT = EntityPattern>
60 void SetEntityPattern(EntityPatternT&& value) {
61 m_entityPatternHasBeenSet = true;
62 m_entityPattern = std::forward<EntityPatternT>(value);
63 }
64 template <typename EntityPatternT = EntityPattern>
65 MatchClause& WithEntityPattern(EntityPatternT&& value) {
66 SetEntityPattern(std::forward<EntityPatternT>(value));
67 return *this;
68 }
70 private:
71 RelationPattern m_relationPattern;
72
73 EntityPattern m_entityPattern;
74 bool m_relationPatternHasBeenSet = false;
75 bool m_entityPatternHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace DataZone
80} // namespace Aws
const EntityPattern & GetEntityPattern() const
Definition MatchClause.h:57
AWS_DATAZONE_API MatchClause & operator=(Aws::Utils::Json::JsonView jsonValue)
MatchClause & WithEntityPattern(EntityPatternT &&value)
Definition MatchClause.h:65
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DATAZONE_API MatchClause(Aws::Utils::Json::JsonView jsonValue)
void SetRelationPattern(RelationPatternT &&value)
Definition MatchClause.h:42
MatchClause & WithRelationPattern(RelationPatternT &&value)
Definition MatchClause.h:47
void SetEntityPattern(EntityPatternT &&value)
Definition MatchClause.h:60
const RelationPattern & GetRelationPattern() const
Definition MatchClause.h:39
AWS_DATAZONE_API MatchClause()=default
Aws::Utils::Json::JsonValue JsonValue