AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename IdentifierT = EntityIdentifier>
56 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
57 template<typename IdentifierT = EntityIdentifier>
58 EntityItem& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(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 template<typename AttributesT = Aws::Map<Aws::String, AttributeValue>>
68 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
69 template<typename AttributesT = Aws::Map<Aws::String, AttributeValue>>
70 EntityItem& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
71 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = AttributeValue>
72 EntityItem& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
73 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
74 }
76
78
87 inline const Aws::Vector<EntityIdentifier>& GetParents() const { return m_parents; }
88 inline bool ParentsHasBeenSet() const { return m_parentsHasBeenSet; }
89 template<typename ParentsT = Aws::Vector<EntityIdentifier>>
90 void SetParents(ParentsT&& value) { m_parentsHasBeenSet = true; m_parents = std::forward<ParentsT>(value); }
91 template<typename ParentsT = Aws::Vector<EntityIdentifier>>
92 EntityItem& WithParents(ParentsT&& value) { SetParents(std::forward<ParentsT>(value)); return *this;}
93 template<typename ParentsT = EntityIdentifier>
94 EntityItem& AddParents(ParentsT&& value) { m_parentsHasBeenSet = true; m_parents.emplace_back(std::forward<ParentsT>(value)); return *this; }
96 private:
97
98 EntityIdentifier m_identifier;
99 bool m_identifierHasBeenSet = false;
100
102 bool m_attributesHasBeenSet = false;
103
105 bool m_parentsHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace VerifiedPermissions
110} // namespace Aws
AWS_VERIFIEDPERMISSIONS_API EntityItem()=default
AWS_VERIFIEDPERMISSIONS_API EntityItem & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIdentifier(IdentifierT &&value)
Definition EntityItem.h:56
AWS_VERIFIEDPERMISSIONS_API EntityItem(Aws::Utils::Json::JsonView jsonValue)
EntityItem & WithParents(ParentsT &&value)
Definition EntityItem.h:92
void SetAttributes(AttributesT &&value)
Definition EntityItem.h:68
const Aws::Map< Aws::String, AttributeValue > & GetAttributes() const
Definition EntityItem.h:65
const EntityIdentifier & GetIdentifier() const
Definition EntityItem.h:53
EntityItem & WithIdentifier(IdentifierT &&value)
Definition EntityItem.h:58
AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
EntityItem & WithAttributes(AttributesT &&value)
Definition EntityItem.h:70
const Aws::Vector< EntityIdentifier > & GetParents() const
Definition EntityItem.h:87
EntityItem & AddParents(ParentsT &&value)
Definition EntityItem.h:94
EntityItem & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
Definition EntityItem.h:72
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue