AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
EntitiesDefinition.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
10#include <aws/verifiedpermissions/model/EntityItem.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace VerifiedPermissions {
22namespace Model {
23
37 public:
38 AWS_VERIFIEDPERMISSIONS_API EntitiesDefinition() = default;
39 AWS_VERIFIEDPERMISSIONS_API EntitiesDefinition(Aws::Utils::Json::JsonView jsonValue);
40 AWS_VERIFIEDPERMISSIONS_API EntitiesDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
52 inline const Aws::Vector<EntityItem>& GetEntityList() const { return m_entityList; }
53 inline bool EntityListHasBeenSet() const { return m_entityListHasBeenSet; }
54 template <typename EntityListT = Aws::Vector<EntityItem>>
55 void SetEntityList(EntityListT&& value) {
56 m_entityListHasBeenSet = true;
57 m_entityList = std::forward<EntityListT>(value);
58 }
59 template <typename EntityListT = Aws::Vector<EntityItem>>
60 EntitiesDefinition& WithEntityList(EntityListT&& value) {
61 SetEntityList(std::forward<EntityListT>(value));
62 return *this;
63 }
64 template <typename EntityListT = EntityItem>
65 EntitiesDefinition& AddEntityList(EntityListT&& value) {
66 m_entityListHasBeenSet = true;
67 m_entityList.emplace_back(std::forward<EntityListT>(value));
68 return *this;
69 }
71
73
79 inline const Aws::String& GetCedarJson() const { return m_cedarJson; }
80 inline bool CedarJsonHasBeenSet() const { return m_cedarJsonHasBeenSet; }
81 template <typename CedarJsonT = Aws::String>
82 void SetCedarJson(CedarJsonT&& value) {
83 m_cedarJsonHasBeenSet = true;
84 m_cedarJson = std::forward<CedarJsonT>(value);
85 }
86 template <typename CedarJsonT = Aws::String>
87 EntitiesDefinition& WithCedarJson(CedarJsonT&& value) {
88 SetCedarJson(std::forward<CedarJsonT>(value));
89 return *this;
90 }
92 private:
93 Aws::Vector<EntityItem> m_entityList;
94
95 Aws::String m_cedarJson;
96 bool m_entityListHasBeenSet = false;
97 bool m_cedarJsonHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace VerifiedPermissions
102} // namespace Aws
EntitiesDefinition & WithEntityList(EntityListT &&value)
EntitiesDefinition & WithCedarJson(CedarJsonT &&value)
AWS_VERIFIEDPERMISSIONS_API EntitiesDefinition()=default
EntitiesDefinition & AddEntityList(EntityListT &&value)
AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< EntityItem > & GetEntityList() const
AWS_VERIFIEDPERMISSIONS_API EntitiesDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_VERIFIEDPERMISSIONS_API EntitiesDefinition(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue