AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const RelationshipType& GetType() const{ return m_type; }
64 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
65 inline void SetType(const RelationshipType& value) { m_typeHasBeenSet = true; m_type = value; }
66 inline void SetType(RelationshipType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
67 inline Relationship& WithType(const RelationshipType& value) { SetType(value); return *this;}
68 inline Relationship& WithType(RelationshipType&& value) { SetType(std::move(value)); return *this;}
70
72
76 inline const Aws::Vector<Aws::String>& GetIds() const{ return m_ids; }
77 inline bool IdsHasBeenSet() const { return m_idsHasBeenSet; }
78 inline void SetIds(const Aws::Vector<Aws::String>& value) { m_idsHasBeenSet = true; m_ids = value; }
79 inline void SetIds(Aws::Vector<Aws::String>&& value) { m_idsHasBeenSet = true; m_ids = std::move(value); }
80 inline Relationship& WithIds(const Aws::Vector<Aws::String>& value) { SetIds(value); return *this;}
81 inline Relationship& WithIds(Aws::Vector<Aws::String>&& value) { SetIds(std::move(value)); return *this;}
82 inline Relationship& AddIds(const Aws::String& value) { m_idsHasBeenSet = true; m_ids.push_back(value); return *this; }
83 inline Relationship& AddIds(Aws::String&& value) { m_idsHasBeenSet = true; m_ids.push_back(std::move(value)); return *this; }
84 inline Relationship& AddIds(const char* value) { m_idsHasBeenSet = true; m_ids.push_back(value); return *this; }
86 private:
87
88 RelationshipType m_type;
89 bool m_typeHasBeenSet = false;
90
92 bool m_idsHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace Textract
97} // namespace Aws
Relationship & WithType(RelationshipType &&value)
Relationship & WithIds(const Aws::Vector< Aws::String > &value)
AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const
Relationship & AddIds(Aws::String &&value)
AWS_TEXTRACT_API Relationship & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIds(const Aws::Vector< Aws::String > &value)
Relationship & AddIds(const Aws::String &value)
void SetType(RelationshipType &&value)
void SetType(const RelationshipType &value)
AWS_TEXTRACT_API Relationship(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetIds() const
Relationship & WithType(const RelationshipType &value)
Relationship & AddIds(const char *value)
Relationship & WithIds(Aws::Vector< Aws::String > &&value)
void SetIds(Aws::Vector< Aws::String > &&value)
const RelationshipType & GetType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue