AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
RelationshipsListItem.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/comprehend/model/RelationshipType.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 Comprehend
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_COMPREHEND_API RelationshipsListItem() = default;
39 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<Aws::String>& GetIds() const { return m_ids; }
47 inline bool IdsHasBeenSet() const { return m_idsHasBeenSet; }
48 template<typename IdsT = Aws::Vector<Aws::String>>
49 void SetIds(IdsT&& value) { m_idsHasBeenSet = true; m_ids = std::forward<IdsT>(value); }
50 template<typename IdsT = Aws::Vector<Aws::String>>
51 RelationshipsListItem& WithIds(IdsT&& value) { SetIds(std::forward<IdsT>(value)); return *this;}
52 template<typename IdsT = Aws::String>
53 RelationshipsListItem& AddIds(IdsT&& value) { m_idsHasBeenSet = true; m_ids.emplace_back(std::forward<IdsT>(value)); return *this; }
55
57
60 inline RelationshipType GetType() const { return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 inline void SetType(RelationshipType value) { m_typeHasBeenSet = true; m_type = value; }
63 inline RelationshipsListItem& WithType(RelationshipType value) { SetType(value); return *this;}
65 private:
66
68 bool m_idsHasBeenSet = false;
69
71 bool m_typeHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace Comprehend
76} // 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