AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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