AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
TemplateLinkedPolicyDefinition.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
9#include <aws/verifiedpermissions/model/EntityIdentifier.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace VerifiedPermissions {
21namespace Model {
22
30 public:
31 AWS_VERIFIEDPERMISSIONS_API TemplateLinkedPolicyDefinition() = default;
32 AWS_VERIFIEDPERMISSIONS_API TemplateLinkedPolicyDefinition(Aws::Utils::Json::JsonView jsonValue);
34 AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetPolicyTemplateId() const { return m_policyTemplateId; }
41 inline bool PolicyTemplateIdHasBeenSet() const { return m_policyTemplateIdHasBeenSet; }
42 template <typename PolicyTemplateIdT = Aws::String>
43 void SetPolicyTemplateId(PolicyTemplateIdT&& value) {
44 m_policyTemplateIdHasBeenSet = true;
45 m_policyTemplateId = std::forward<PolicyTemplateIdT>(value);
46 }
47 template <typename PolicyTemplateIdT = Aws::String>
49 SetPolicyTemplateId(std::forward<PolicyTemplateIdT>(value));
50 return *this;
51 }
53
55
61 inline const EntityIdentifier& GetPrincipal() const { return m_principal; }
62 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
63 template <typename PrincipalT = EntityIdentifier>
64 void SetPrincipal(PrincipalT&& value) {
65 m_principalHasBeenSet = true;
66 m_principal = std::forward<PrincipalT>(value);
67 }
68 template <typename PrincipalT = EntityIdentifier>
70 SetPrincipal(std::forward<PrincipalT>(value));
71 return *this;
72 }
74
76
81 inline const EntityIdentifier& GetResource() const { return m_resource; }
82 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
83 template <typename ResourceT = EntityIdentifier>
84 void SetResource(ResourceT&& value) {
85 m_resourceHasBeenSet = true;
86 m_resource = std::forward<ResourceT>(value);
87 }
88 template <typename ResourceT = EntityIdentifier>
90 SetResource(std::forward<ResourceT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_policyTemplateId;
96
97 EntityIdentifier m_principal;
98
99 EntityIdentifier m_resource;
100 bool m_policyTemplateIdHasBeenSet = false;
101 bool m_principalHasBeenSet = false;
102 bool m_resourceHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace VerifiedPermissions
107} // namespace Aws
AWS_VERIFIEDPERMISSIONS_API TemplateLinkedPolicyDefinition()=default
AWS_VERIFIEDPERMISSIONS_API TemplateLinkedPolicyDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
TemplateLinkedPolicyDefinition & WithPrincipal(PrincipalT &&value)
AWS_VERIFIEDPERMISSIONS_API TemplateLinkedPolicyDefinition(Aws::Utils::Json::JsonView jsonValue)
TemplateLinkedPolicyDefinition & WithPolicyTemplateId(PolicyTemplateIdT &&value)
TemplateLinkedPolicyDefinition & WithResource(ResourceT &&value)
AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue