AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetIds(const Aws::Vector<Aws::String>& value) { m_idsHasBeenSet = true; m_ids = value; }
49 inline void SetIds(Aws::Vector<Aws::String>&& value) { m_idsHasBeenSet = true; m_ids = std::move(value); }
50 inline RelationshipsListItem& WithIds(const Aws::Vector<Aws::String>& value) { SetIds(value); return *this;}
51 inline RelationshipsListItem& WithIds(Aws::Vector<Aws::String>&& value) { SetIds(std::move(value)); return *this;}
52 inline RelationshipsListItem& AddIds(const Aws::String& value) { m_idsHasBeenSet = true; m_ids.push_back(value); return *this; }
53 inline RelationshipsListItem& AddIds(Aws::String&& value) { m_idsHasBeenSet = true; m_ids.push_back(std::move(value)); return *this; }
54 inline RelationshipsListItem& AddIds(const char* value) { m_idsHasBeenSet = true; m_ids.push_back(value); return *this; }
56
58
61 inline const RelationshipType& GetType() const{ return m_type; }
62 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
63 inline void SetType(const RelationshipType& value) { m_typeHasBeenSet = true; m_type = value; }
64 inline void SetType(RelationshipType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
65 inline RelationshipsListItem& WithType(const RelationshipType& value) { SetType(value); return *this;}
66 inline RelationshipsListItem& WithType(RelationshipType&& value) { SetType(std::move(value)); return *this;}
68 private:
69
71 bool m_idsHasBeenSet = false;
72
73 RelationshipType m_type;
74 bool m_typeHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace Comprehend
79} // namespace Aws
RelationshipsListItem & WithIds(Aws::Vector< Aws::String > &&value)
RelationshipsListItem & AddIds(const char *value)
RelationshipsListItem & AddIds(const Aws::String &value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(const RelationshipType &value)
RelationshipsListItem & AddIds(Aws::String &&value)
void SetIds(const Aws::Vector< Aws::String > &value)
RelationshipsListItem & WithType(RelationshipType &&value)
AWS_COMPREHEND_API RelationshipsListItem & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetIds() const
RelationshipsListItem & WithType(const RelationshipType &value)
AWS_COMPREHEND_API RelationshipsListItem(Aws::Utils::Json::JsonView jsonValue)
void SetIds(Aws::Vector< Aws::String > &&value)
RelationshipsListItem & WithIds(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue