AWS SDK for C++

AWS SDK for C++ Version 1.11.766

Loading...
Searching...
No Matches
RelationPattern.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/model/RelationDirection.h>
9#include <aws/datazone/model/RelationType.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
30 public:
31 AWS_DATAZONE_API RelationPattern() = default;
32 AWS_DATAZONE_API RelationPattern(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline RelationType GetRelationType() const { return m_relationType; }
41 inline bool RelationTypeHasBeenSet() const { return m_relationTypeHasBeenSet; }
42 inline void SetRelationType(RelationType value) {
43 m_relationTypeHasBeenSet = true;
44 m_relationType = value;
45 }
47 SetRelationType(value);
48 return *this;
49 }
51
53
56 inline RelationDirection GetRelationDirection() const { return m_relationDirection; }
57 inline bool RelationDirectionHasBeenSet() const { return m_relationDirectionHasBeenSet; }
59 m_relationDirectionHasBeenSet = true;
60 m_relationDirection = value;
61 }
64 return *this;
65 }
67
69
72 inline int GetMaxPathLength() const { return m_maxPathLength; }
73 inline bool MaxPathLengthHasBeenSet() const { return m_maxPathLengthHasBeenSet; }
74 inline void SetMaxPathLength(int value) {
75 m_maxPathLengthHasBeenSet = true;
76 m_maxPathLength = value;
77 }
79 SetMaxPathLength(value);
80 return *this;
81 }
83 private:
84 RelationType m_relationType{RelationType::NOT_SET};
85
87
88 int m_maxPathLength{0};
89 bool m_relationTypeHasBeenSet = false;
90 bool m_relationDirectionHasBeenSet = false;
91 bool m_maxPathLengthHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace DataZone
96} // namespace Aws
void SetRelationType(RelationType value)
void SetRelationDirection(RelationDirection value)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DATAZONE_API RelationPattern(Aws::Utils::Json::JsonView jsonValue)
RelationPattern & WithMaxPathLength(int value)
RelationDirection GetRelationDirection() const
AWS_DATAZONE_API RelationPattern()=default
RelationPattern & WithRelationDirection(RelationDirection value)
RelationPattern & WithRelationType(RelationType value)
AWS_DATAZONE_API RelationPattern & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue