AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Relationship.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/textract/Textract_EXPORTS.h>
10#include <aws/textract/model/RelationshipType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Textract {
22namespace Model {
23
34 public:
35 AWS_TEXTRACT_API Relationship() = default;
36 AWS_TEXTRACT_API Relationship(Aws::Utils::Json::JsonView jsonValue);
38 AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
57 inline RelationshipType GetType() const { return m_type; }
58 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
59 inline void SetType(RelationshipType value) {
60 m_typeHasBeenSet = true;
61 m_type = value;
62 }
64 SetType(value);
65 return *this;
66 }
68
70
74 inline const Aws::Vector<Aws::String>& GetIds() const { return m_ids; }
75 inline bool IdsHasBeenSet() const { return m_idsHasBeenSet; }
76 template <typename IdsT = Aws::Vector<Aws::String>>
77 void SetIds(IdsT&& value) {
78 m_idsHasBeenSet = true;
79 m_ids = std::forward<IdsT>(value);
80 }
81 template <typename IdsT = Aws::Vector<Aws::String>>
82 Relationship& WithIds(IdsT&& value) {
83 SetIds(std::forward<IdsT>(value));
84 return *this;
85 }
86 template <typename IdsT = Aws::String>
87 Relationship& AddIds(IdsT&& value) {
88 m_idsHasBeenSet = true;
89 m_ids.emplace_back(std::forward<IdsT>(value));
90 return *this;
91 }
93 private:
95
97 bool m_typeHasBeenSet = false;
98 bool m_idsHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace Textract
103} // namespace Aws
AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_TEXTRACT_API Relationship & operator=(Aws::Utils::Json::JsonView jsonValue)
Relationship & AddIds(IdsT &&value)
void SetType(RelationshipType value)
AWS_TEXTRACT_API Relationship()=default
RelationshipType GetType() const
Relationship & WithIds(IdsT &&value)
AWS_TEXTRACT_API Relationship(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetIds() const
Relationship & WithType(RelationshipType value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue