AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
RelationshipsListItem.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/model/RelationshipType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Comprehend {
22namespace Model {
23
30 public:
31 AWS_COMPREHEND_API RelationshipsListItem() = default;
34 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<Aws::String>& GetIds() const { return m_ids; }
41 inline bool IdsHasBeenSet() const { return m_idsHasBeenSet; }
42 template <typename IdsT = Aws::Vector<Aws::String>>
43 void SetIds(IdsT&& value) {
44 m_idsHasBeenSet = true;
45 m_ids = std::forward<IdsT>(value);
46 }
47 template <typename IdsT = Aws::Vector<Aws::String>>
49 SetIds(std::forward<IdsT>(value));
50 return *this;
51 }
52 template <typename IdsT = Aws::String>
54 m_idsHasBeenSet = true;
55 m_ids.emplace_back(std::forward<IdsT>(value));
56 return *this;
57 }
59
61
64 inline RelationshipType GetType() const { return m_type; }
65 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
66 inline void SetType(RelationshipType value) {
67 m_typeHasBeenSet = true;
68 m_type = value;
69 }
71 SetType(value);
72 return *this;
73 }
75 private:
77
79 bool m_idsHasBeenSet = false;
80 bool m_typeHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace Comprehend
85} // namespace Aws
RelationshipsListItem & WithIds(IdsT &&value)
RelationshipsListItem & WithType(RelationshipType value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COMPREHEND_API RelationshipsListItem()=default
RelationshipsListItem & AddIds(IdsT &&value)
AWS_COMPREHEND_API RelationshipsListItem & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetIds() const
AWS_COMPREHEND_API RelationshipsListItem(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue