AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EntityItem.h
1
6#pragma once
7#include <aws/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
8#include <aws/verifiedpermissions/model/EntityIdentifier.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/verifiedpermissions/model/AttributeValue.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace VerifiedPermissions
26{
27namespace Model
28{
29
41 {
42 public:
43 AWS_VERIFIEDPERMISSIONS_API EntityItem();
44 AWS_VERIFIEDPERMISSIONS_API EntityItem(Aws::Utils::Json::JsonView jsonValue);
45 AWS_VERIFIEDPERMISSIONS_API EntityItem& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const EntityIdentifier& GetIdentifier() const{ return m_identifier; }
54 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
55 inline void SetIdentifier(const EntityIdentifier& value) { m_identifierHasBeenSet = true; m_identifier = value; }
56 inline void SetIdentifier(EntityIdentifier&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); }
57 inline EntityItem& WithIdentifier(const EntityIdentifier& value) { SetIdentifier(value); return *this;}
58 inline EntityItem& WithIdentifier(EntityIdentifier&& value) { SetIdentifier(std::move(value)); return *this;}
60
62
65 inline const Aws::Map<Aws::String, AttributeValue>& GetAttributes() const{ return m_attributes; }
66 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
67 inline void SetAttributes(const Aws::Map<Aws::String, AttributeValue>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
68 inline void SetAttributes(Aws::Map<Aws::String, AttributeValue>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
70 inline EntityItem& WithAttributes(Aws::Map<Aws::String, AttributeValue>&& value) { SetAttributes(std::move(value)); return *this;}
71 inline EntityItem& AddAttributes(const Aws::String& key, const AttributeValue& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
72 inline EntityItem& AddAttributes(Aws::String&& key, const AttributeValue& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
73 inline EntityItem& AddAttributes(const Aws::String& key, AttributeValue&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
74 inline EntityItem& AddAttributes(Aws::String&& key, AttributeValue&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
75 inline EntityItem& AddAttributes(const char* key, AttributeValue&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
76 inline EntityItem& AddAttributes(const char* key, const AttributeValue& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
78
80
89 inline const Aws::Vector<EntityIdentifier>& GetParents() const{ return m_parents; }
90 inline bool ParentsHasBeenSet() const { return m_parentsHasBeenSet; }
91 inline void SetParents(const Aws::Vector<EntityIdentifier>& value) { m_parentsHasBeenSet = true; m_parents = value; }
92 inline void SetParents(Aws::Vector<EntityIdentifier>&& value) { m_parentsHasBeenSet = true; m_parents = std::move(value); }
93 inline EntityItem& WithParents(const Aws::Vector<EntityIdentifier>& value) { SetParents(value); return *this;}
94 inline EntityItem& WithParents(Aws::Vector<EntityIdentifier>&& value) { SetParents(std::move(value)); return *this;}
95 inline EntityItem& AddParents(const EntityIdentifier& value) { m_parentsHasBeenSet = true; m_parents.push_back(value); return *this; }
96 inline EntityItem& AddParents(EntityIdentifier&& value) { m_parentsHasBeenSet = true; m_parents.push_back(std::move(value)); return *this; }
98 private:
99
100 EntityIdentifier m_identifier;
101 bool m_identifierHasBeenSet = false;
102
104 bool m_attributesHasBeenSet = false;
105
107 bool m_parentsHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace VerifiedPermissions
112} // namespace Aws
EntityItem & WithIdentifier(const EntityIdentifier &value)
Definition EntityItem.h:57
void SetAttributes(Aws::Map< Aws::String, AttributeValue > &&value)
Definition EntityItem.h:68
EntityItem & AddAttributes(const char *key, AttributeValue &&value)
Definition EntityItem.h:75
AWS_VERIFIEDPERMISSIONS_API EntityItem & operator=(Aws::Utils::Json::JsonView jsonValue)
EntityItem & AddAttributes(const Aws::String &key, AttributeValue &&value)
Definition EntityItem.h:73
EntityItem & WithIdentifier(EntityIdentifier &&value)
Definition EntityItem.h:58
EntityItem & AddParents(EntityIdentifier &&value)
Definition EntityItem.h:96
EntityItem & AddAttributes(const char *key, const AttributeValue &value)
Definition EntityItem.h:76
AWS_VERIFIEDPERMISSIONS_API EntityItem(Aws::Utils::Json::JsonView jsonValue)
void SetParents(const Aws::Vector< EntityIdentifier > &value)
Definition EntityItem.h:91
AWS_VERIFIEDPERMISSIONS_API EntityItem()
EntityItem & AddAttributes(Aws::String &&key, const AttributeValue &value)
Definition EntityItem.h:72
const Aws::Map< Aws::String, AttributeValue > & GetAttributes() const
Definition EntityItem.h:65
void SetParents(Aws::Vector< EntityIdentifier > &&value)
Definition EntityItem.h:92
void SetAttributes(const Aws::Map< Aws::String, AttributeValue > &value)
Definition EntityItem.h:67
const EntityIdentifier & GetIdentifier() const
Definition EntityItem.h:53
void SetIdentifier(EntityIdentifier &&value)
Definition EntityItem.h:56
EntityItem & AddParents(const EntityIdentifier &value)
Definition EntityItem.h:95
EntityItem & WithParents(Aws::Vector< EntityIdentifier > &&value)
Definition EntityItem.h:94
EntityItem & AddAttributes(const Aws::String &key, const AttributeValue &value)
Definition EntityItem.h:71
EntityItem & WithParents(const Aws::Vector< EntityIdentifier > &value)
Definition EntityItem.h:93
AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
EntityItem & WithAttributes(const Aws::Map< Aws::String, AttributeValue > &value)
Definition EntityItem.h:69
const Aws::Vector< EntityIdentifier > & GetParents() const
Definition EntityItem.h:89
EntityItem & WithAttributes(Aws::Map< Aws::String, AttributeValue > &&value)
Definition EntityItem.h:70
void SetIdentifier(const EntityIdentifier &value)
Definition EntityItem.h:55
EntityItem & AddAttributes(Aws::String &&key, AttributeValue &&value)
Definition EntityItem.h:74
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue