AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
AccessControlSummary.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
8#include <aws/amplifygen3/model/AccessControlRule.h>
9#include <aws/amplifygen3/model/AccessControlScope.h>
10#include <aws/amplifygen3/model/AccessControlStatus.h>
11#include <aws/amplifygen3/model/ProviderType.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AmplifyGen3 {
25namespace Model {
26
34 public:
35 AWS_AMPLIFYGEN3_API AccessControlSummary() = default;
36 AWS_AMPLIFYGEN3_API AccessControlSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
45 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
46 template <typename EnvironmentNameT = Aws::String>
47 void SetEnvironmentName(EnvironmentNameT&& value) {
48 m_environmentNameHasBeenSet = true;
49 m_environmentName = std::forward<EnvironmentNameT>(value);
50 }
51 template <typename EnvironmentNameT = Aws::String>
52 AccessControlSummary& WithEnvironmentName(EnvironmentNameT&& value) {
53 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
54 return *this;
55 }
57
59
62 inline ProviderType GetProviderType() const { return m_providerType; }
63 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
64 inline void SetProviderType(ProviderType value) {
65 m_providerTypeHasBeenSet = true;
66 m_providerType = value;
67 }
69 SetProviderType(value);
70 return *this;
71 }
73
75
78 inline AccessControlScope GetScope() const { return m_scope; }
79 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
80 inline void SetScope(AccessControlScope value) {
81 m_scopeHasBeenSet = true;
82 m_scope = value;
83 }
85 SetScope(value);
86 return *this;
87 }
89
91
94 inline const AccessControlRule& GetRule() const { return m_rule; }
95 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
96 template <typename RuleT = AccessControlRule>
97 void SetRule(RuleT&& value) {
98 m_ruleHasBeenSet = true;
99 m_rule = std::forward<RuleT>(value);
100 }
101 template <typename RuleT = AccessControlRule>
103 SetRule(std::forward<RuleT>(value));
104 return *this;
105 }
107
109
112 inline AccessControlStatus GetStatus() const { return m_status; }
113 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
114 inline void SetStatus(AccessControlStatus value) {
115 m_statusHasBeenSet = true;
116 m_status = value;
117 }
119 SetStatus(value);
120 return *this;
121 }
123
125
128 inline const Aws::Utils::DateTime& GetEnabledAt() const { return m_enabledAt; }
129 inline bool EnabledAtHasBeenSet() const { return m_enabledAtHasBeenSet; }
130 template <typename EnabledAtT = Aws::Utils::DateTime>
131 void SetEnabledAt(EnabledAtT&& value) {
132 m_enabledAtHasBeenSet = true;
133 m_enabledAt = std::forward<EnabledAtT>(value);
134 }
135 template <typename EnabledAtT = Aws::Utils::DateTime>
136 AccessControlSummary& WithEnabledAt(EnabledAtT&& value) {
137 SetEnabledAt(std::forward<EnabledAtT>(value));
138 return *this;
139 }
141 private:
142 Aws::String m_environmentName;
143
144 ProviderType m_providerType{ProviderType::NOT_SET};
145
147
148 AccessControlRule m_rule;
149
151
152 Aws::Utils::DateTime m_enabledAt{};
153 bool m_environmentNameHasBeenSet = false;
154 bool m_providerTypeHasBeenSet = false;
155 bool m_scopeHasBeenSet = false;
156 bool m_ruleHasBeenSet = false;
157 bool m_statusHasBeenSet = false;
158 bool m_enabledAtHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace AmplifyGen3
163} // namespace Aws
void SetEnvironmentName(EnvironmentNameT &&value)
AccessControlSummary & WithStatus(AccessControlStatus value)
AccessControlSummary & WithProviderType(ProviderType value)
AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const
AccessControlSummary & WithScope(AccessControlScope value)
AccessControlSummary & WithEnabledAt(EnabledAtT &&value)
AWS_AMPLIFYGEN3_API AccessControlSummary()=default
AWS_AMPLIFYGEN3_API AccessControlSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetEnabledAt() const
AccessControlSummary & WithEnvironmentName(EnvironmentNameT &&value)
AWS_AMPLIFYGEN3_API AccessControlSummary(Aws::Utils::Json::JsonView jsonValue)
AccessControlSummary & WithRule(RuleT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue