AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
EntitiesDefinition.h
1
6#pragma once
7#include <aws/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/verifiedpermissions/model/EntityItem.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 VerifiedPermissions
24{
25namespace Model
26{
27
41 {
42 public:
43 AWS_VERIFIEDPERMISSIONS_API EntitiesDefinition() = default;
44 AWS_VERIFIEDPERMISSIONS_API EntitiesDefinition(Aws::Utils::Json::JsonView jsonValue);
45 AWS_VERIFIEDPERMISSIONS_API EntitiesDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
58 inline const Aws::Vector<EntityItem>& GetEntityList() const { return m_entityList; }
59 inline bool EntityListHasBeenSet() const { return m_entityListHasBeenSet; }
60 template<typename EntityListT = Aws::Vector<EntityItem>>
61 void SetEntityList(EntityListT&& value) { m_entityListHasBeenSet = true; m_entityList = std::forward<EntityListT>(value); }
62 template<typename EntityListT = Aws::Vector<EntityItem>>
63 EntitiesDefinition& WithEntityList(EntityListT&& value) { SetEntityList(std::forward<EntityListT>(value)); return *this;}
64 template<typename EntityListT = EntityItem>
65 EntitiesDefinition& AddEntityList(EntityListT&& value) { m_entityListHasBeenSet = true; m_entityList.emplace_back(std::forward<EntityListT>(value)); return *this; }
67
69
75 inline const Aws::String& GetCedarJson() const { return m_cedarJson; }
76 inline bool CedarJsonHasBeenSet() const { return m_cedarJsonHasBeenSet; }
77 template<typename CedarJsonT = Aws::String>
78 void SetCedarJson(CedarJsonT&& value) { m_cedarJsonHasBeenSet = true; m_cedarJson = std::forward<CedarJsonT>(value); }
79 template<typename CedarJsonT = Aws::String>
80 EntitiesDefinition& WithCedarJson(CedarJsonT&& value) { SetCedarJson(std::forward<CedarJsonT>(value)); return *this;}
82 private:
83
84 Aws::Vector<EntityItem> m_entityList;
85 bool m_entityListHasBeenSet = false;
86
87 Aws::String m_cedarJson;
88 bool m_cedarJsonHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace VerifiedPermissions
93} // 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