AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Relationship.h
1
6#pragma once
7#include <aws/textract/Textract_EXPORTS.h>
8#include <aws/textract/model/RelationshipType.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Textract
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_TEXTRACT_API Relationship() = default;
41 AWS_TEXTRACT_API Relationship(Aws::Utils::Json::JsonView jsonValue);
43 AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
63 inline RelationshipType GetType() const { return m_type; }
64 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
65 inline void SetType(RelationshipType value) { m_typeHasBeenSet = true; m_type = value; }
66 inline Relationship& WithType(RelationshipType value) { SetType(value); return *this;}
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) { m_idsHasBeenSet = true; m_ids = std::forward<IdsT>(value); }
78 template<typename IdsT = Aws::Vector<Aws::String>>
79 Relationship& WithIds(IdsT&& value) { SetIds(std::forward<IdsT>(value)); return *this;}
80 template<typename IdsT = Aws::String>
81 Relationship& AddIds(IdsT&& value) { m_idsHasBeenSet = true; m_ids.emplace_back(std::forward<IdsT>(value)); return *this; }
83 private:
84
86 bool m_typeHasBeenSet = false;
87
89 bool m_idsHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace Textract
94} // 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