AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
CustomPolicyDetails.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ConfigService {
20namespace Model {
21
30 public:
31 AWS_CONFIGSERVICE_API CustomPolicyDetails() = default;
32 AWS_CONFIGSERVICE_API CustomPolicyDetails(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONFIGSERVICE_API CustomPolicyDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
44 inline const Aws::String& GetPolicyRuntime() const { return m_policyRuntime; }
45 inline bool PolicyRuntimeHasBeenSet() const { return m_policyRuntimeHasBeenSet; }
46 template <typename PolicyRuntimeT = Aws::String>
47 void SetPolicyRuntime(PolicyRuntimeT&& value) {
48 m_policyRuntimeHasBeenSet = true;
49 m_policyRuntime = std::forward<PolicyRuntimeT>(value);
50 }
51 template <typename PolicyRuntimeT = Aws::String>
52 CustomPolicyDetails& WithPolicyRuntime(PolicyRuntimeT&& value) {
53 SetPolicyRuntime(std::forward<PolicyRuntimeT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetPolicyText() const { return m_policyText; }
64 inline bool PolicyTextHasBeenSet() const { return m_policyTextHasBeenSet; }
65 template <typename PolicyTextT = Aws::String>
66 void SetPolicyText(PolicyTextT&& value) {
67 m_policyTextHasBeenSet = true;
68 m_policyText = std::forward<PolicyTextT>(value);
69 }
70 template <typename PolicyTextT = Aws::String>
71 CustomPolicyDetails& WithPolicyText(PolicyTextT&& value) {
72 SetPolicyText(std::forward<PolicyTextT>(value));
73 return *this;
74 }
76
78
82 inline bool GetEnableDebugLogDelivery() const { return m_enableDebugLogDelivery; }
83 inline bool EnableDebugLogDeliveryHasBeenSet() const { return m_enableDebugLogDeliveryHasBeenSet; }
84 inline void SetEnableDebugLogDelivery(bool value) {
85 m_enableDebugLogDeliveryHasBeenSet = true;
86 m_enableDebugLogDelivery = value;
87 }
90 return *this;
91 }
93 private:
94 Aws::String m_policyRuntime;
95
96 Aws::String m_policyText;
97
98 bool m_enableDebugLogDelivery{false};
99 bool m_policyRuntimeHasBeenSet = false;
100 bool m_policyTextHasBeenSet = false;
101 bool m_enableDebugLogDeliveryHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace ConfigService
106} // namespace Aws
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
CustomPolicyDetails & WithPolicyText(PolicyTextT &&value)
AWS_CONFIGSERVICE_API CustomPolicyDetails(Aws::Utils::Json::JsonView jsonValue)
CustomPolicyDetails & WithEnableDebugLogDelivery(bool value)
CustomPolicyDetails & WithPolicyRuntime(PolicyRuntimeT &&value)
AWS_CONFIGSERVICE_API CustomPolicyDetails()=default
AWS_CONFIGSERVICE_API CustomPolicyDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue