AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PolicyDefinition.h
1
6#pragma once
7#include <aws/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
8#include <aws/verifiedpermissions/model/StaticPolicyDefinition.h>
9#include <aws/verifiedpermissions/model/TemplateLinkedPolicyDefinition.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
39 {
40 public:
41 AWS_VERIFIEDPERMISSIONS_API PolicyDefinition();
42 AWS_VERIFIEDPERMISSIONS_API PolicyDefinition(Aws::Utils::Json::JsonView jsonValue);
43 AWS_VERIFIEDPERMISSIONS_API PolicyDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const StaticPolicyDefinition& GetStatic() const{ return m_static; }
53 inline bool StaticHasBeenSet() const { return m_staticHasBeenSet; }
54 inline void SetStatic(const StaticPolicyDefinition& value) { m_staticHasBeenSet = true; m_static = value; }
55 inline void SetStatic(StaticPolicyDefinition&& value) { m_staticHasBeenSet = true; m_static = std::move(value); }
56 inline PolicyDefinition& WithStatic(const StaticPolicyDefinition& value) { SetStatic(value); return *this;}
57 inline PolicyDefinition& WithStatic(StaticPolicyDefinition&& value) { SetStatic(std::move(value)); return *this;}
59
61
69 inline const TemplateLinkedPolicyDefinition& GetTemplateLinked() const{ return m_templateLinked; }
70 inline bool TemplateLinkedHasBeenSet() const { return m_templateLinkedHasBeenSet; }
71 inline void SetTemplateLinked(const TemplateLinkedPolicyDefinition& value) { m_templateLinkedHasBeenSet = true; m_templateLinked = value; }
72 inline void SetTemplateLinked(TemplateLinkedPolicyDefinition&& value) { m_templateLinkedHasBeenSet = true; m_templateLinked = std::move(value); }
74 inline PolicyDefinition& WithTemplateLinked(TemplateLinkedPolicyDefinition&& value) { SetTemplateLinked(std::move(value)); return *this;}
76 private:
77
79 bool m_staticHasBeenSet = false;
80
81 TemplateLinkedPolicyDefinition m_templateLinked;
82 bool m_templateLinkedHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace VerifiedPermissions
87} // namespace Aws
const StaticPolicyDefinition & GetStatic() const
void SetStatic(const StaticPolicyDefinition &value)
AWS_VERIFIEDPERMISSIONS_API PolicyDefinition()
AWS_VERIFIEDPERMISSIONS_API PolicyDefinition(Aws::Utils::Json::JsonView jsonValue)
void SetTemplateLinked(const TemplateLinkedPolicyDefinition &value)
void SetTemplateLinked(TemplateLinkedPolicyDefinition &&value)
PolicyDefinition & WithStatic(const StaticPolicyDefinition &value)
PolicyDefinition & WithTemplateLinked(const TemplateLinkedPolicyDefinition &value)
AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
PolicyDefinition & WithStatic(StaticPolicyDefinition &&value)
void SetStatic(StaticPolicyDefinition &&value)
PolicyDefinition & WithTemplateLinked(TemplateLinkedPolicyDefinition &&value)
const TemplateLinkedPolicyDefinition & GetTemplateLinked() const
AWS_VERIFIEDPERMISSIONS_API PolicyDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue