AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TemplateLinkedPolicyDefinitionItem.h
1
6#pragma once
7#include <aws/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/verifiedpermissions/model/EntityIdentifier.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace VerifiedPermissions
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_VERIFIEDPERMISSIONS_API TemplateLinkedPolicyDefinitionItem();
37 AWS_VERIFIEDPERMISSIONS_API TemplateLinkedPolicyDefinitionItem(Aws::Utils::Json::JsonView jsonValue);
39 AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetPolicyTemplateId() const{ return m_policyTemplateId; }
47 inline bool PolicyTemplateIdHasBeenSet() const { return m_policyTemplateIdHasBeenSet; }
48 inline void SetPolicyTemplateId(const Aws::String& value) { m_policyTemplateIdHasBeenSet = true; m_policyTemplateId = value; }
49 inline void SetPolicyTemplateId(Aws::String&& value) { m_policyTemplateIdHasBeenSet = true; m_policyTemplateId = std::move(value); }
50 inline void SetPolicyTemplateId(const char* value) { m_policyTemplateIdHasBeenSet = true; m_policyTemplateId.assign(value); }
53 inline TemplateLinkedPolicyDefinitionItem& WithPolicyTemplateId(const char* value) { SetPolicyTemplateId(value); return *this;}
55
57
63 inline const EntityIdentifier& GetPrincipal() const{ return m_principal; }
64 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
65 inline void SetPrincipal(const EntityIdentifier& value) { m_principalHasBeenSet = true; m_principal = value; }
66 inline void SetPrincipal(EntityIdentifier&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
68 inline TemplateLinkedPolicyDefinitionItem& WithPrincipal(EntityIdentifier&& value) { SetPrincipal(std::move(value)); return *this;}
70
72
77 inline const EntityIdentifier& GetResource() const{ return m_resource; }
78 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
79 inline void SetResource(const EntityIdentifier& value) { m_resourceHasBeenSet = true; m_resource = value; }
80 inline void SetResource(EntityIdentifier&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
81 inline TemplateLinkedPolicyDefinitionItem& WithResource(const EntityIdentifier& value) { SetResource(value); return *this;}
82 inline TemplateLinkedPolicyDefinitionItem& WithResource(EntityIdentifier&& value) { SetResource(std::move(value)); return *this;}
84 private:
85
86 Aws::String m_policyTemplateId;
87 bool m_policyTemplateIdHasBeenSet = false;
88
89 EntityIdentifier m_principal;
90 bool m_principalHasBeenSet = false;
91
92 EntityIdentifier m_resource;
93 bool m_resourceHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace VerifiedPermissions
98} // namespace Aws
AWS_VERIFIEDPERMISSIONS_API TemplateLinkedPolicyDefinitionItem(Aws::Utils::Json::JsonView jsonValue)
TemplateLinkedPolicyDefinitionItem & WithPolicyTemplateId(Aws::String &&value)
AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
TemplateLinkedPolicyDefinitionItem & WithPrincipal(const EntityIdentifier &value)
TemplateLinkedPolicyDefinitionItem & WithPrincipal(EntityIdentifier &&value)
TemplateLinkedPolicyDefinitionItem & WithResource(const EntityIdentifier &value)
TemplateLinkedPolicyDefinitionItem & WithPolicyTemplateId(const char *value)
TemplateLinkedPolicyDefinitionItem & WithPolicyTemplateId(const Aws::String &value)
TemplateLinkedPolicyDefinitionItem & WithResource(EntityIdentifier &&value)
AWS_VERIFIEDPERMISSIONS_API TemplateLinkedPolicyDefinitionItem & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue