AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ControlSummary.h
1
6#pragma once
7#include <aws/controlcatalog/ControlCatalog_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/controlcatalog/model/ControlBehavior.h>
11#include <aws/controlcatalog/model/ControlSeverity.h>
12#include <aws/controlcatalog/model/ImplementationSummary.h>
13#include <aws/core/utils/DateTime.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ControlCatalog
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_CONTROLCATALOG_API ControlSummary() = default;
40 AWS_CONTROLCATALOG_API ControlSummary(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CONTROLCATALOG_API ControlSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CONTROLCATALOG_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetArn() const { return m_arn; }
50 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
51 template<typename ArnT = Aws::String>
52 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
53 template<typename ArnT = Aws::String>
54 ControlSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
56
58
64 inline const Aws::Vector<Aws::String>& GetAliases() const { return m_aliases; }
65 inline bool AliasesHasBeenSet() const { return m_aliasesHasBeenSet; }
66 template<typename AliasesT = Aws::Vector<Aws::String>>
67 void SetAliases(AliasesT&& value) { m_aliasesHasBeenSet = true; m_aliases = std::forward<AliasesT>(value); }
68 template<typename AliasesT = Aws::Vector<Aws::String>>
69 ControlSummary& WithAliases(AliasesT&& value) { SetAliases(std::forward<AliasesT>(value)); return *this;}
70 template<typename AliasesT = Aws::String>
71 ControlSummary& AddAliases(AliasesT&& value) { m_aliasesHasBeenSet = true; m_aliases.emplace_back(std::forward<AliasesT>(value)); return *this; }
73
75
78 inline const Aws::String& GetName() const { return m_name; }
79 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
80 template<typename NameT = Aws::String>
81 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
82 template<typename NameT = Aws::String>
83 ControlSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
85
87
91 inline const Aws::String& GetDescription() const { return m_description; }
92 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
93 template<typename DescriptionT = Aws::String>
94 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
95 template<typename DescriptionT = Aws::String>
96 ControlSummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
98
100
103 inline ControlBehavior GetBehavior() const { return m_behavior; }
104 inline bool BehaviorHasBeenSet() const { return m_behaviorHasBeenSet; }
105 inline void SetBehavior(ControlBehavior value) { m_behaviorHasBeenSet = true; m_behavior = value; }
106 inline ControlSummary& WithBehavior(ControlBehavior value) { SetBehavior(value); return *this;}
108
110
113 inline ControlSeverity GetSeverity() const { return m_severity; }
114 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
115 inline void SetSeverity(ControlSeverity value) { m_severityHasBeenSet = true; m_severity = value; }
116 inline ControlSummary& WithSeverity(ControlSeverity value) { SetSeverity(value); return *this;}
118
120
124 inline const ImplementationSummary& GetImplementation() const { return m_implementation; }
125 inline bool ImplementationHasBeenSet() const { return m_implementationHasBeenSet; }
126 template<typename ImplementationT = ImplementationSummary>
127 void SetImplementation(ImplementationT&& value) { m_implementationHasBeenSet = true; m_implementation = std::forward<ImplementationT>(value); }
128 template<typename ImplementationT = ImplementationSummary>
129 ControlSummary& WithImplementation(ImplementationT&& value) { SetImplementation(std::forward<ImplementationT>(value)); return *this;}
131
133
137 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
138 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
139 template<typename CreateTimeT = Aws::Utils::DateTime>
140 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet = true; m_createTime = std::forward<CreateTimeT>(value); }
141 template<typename CreateTimeT = Aws::Utils::DateTime>
142 ControlSummary& WithCreateTime(CreateTimeT&& value) { SetCreateTime(std::forward<CreateTimeT>(value)); return *this;}
144
146
155 inline const Aws::Vector<Aws::String>& GetGovernedResources() const { return m_governedResources; }
156 inline bool GovernedResourcesHasBeenSet() const { return m_governedResourcesHasBeenSet; }
157 template<typename GovernedResourcesT = Aws::Vector<Aws::String>>
158 void SetGovernedResources(GovernedResourcesT&& value) { m_governedResourcesHasBeenSet = true; m_governedResources = std::forward<GovernedResourcesT>(value); }
159 template<typename GovernedResourcesT = Aws::Vector<Aws::String>>
160 ControlSummary& WithGovernedResources(GovernedResourcesT&& value) { SetGovernedResources(std::forward<GovernedResourcesT>(value)); return *this;}
161 template<typename GovernedResourcesT = Aws::String>
162 ControlSummary& AddGovernedResources(GovernedResourcesT&& value) { m_governedResourcesHasBeenSet = true; m_governedResources.emplace_back(std::forward<GovernedResourcesT>(value)); return *this; }
164 private:
165
166 Aws::String m_arn;
167 bool m_arnHasBeenSet = false;
168
169 Aws::Vector<Aws::String> m_aliases;
170 bool m_aliasesHasBeenSet = false;
171
172 Aws::String m_name;
173 bool m_nameHasBeenSet = false;
174
175 Aws::String m_description;
176 bool m_descriptionHasBeenSet = false;
177
179 bool m_behaviorHasBeenSet = false;
180
182 bool m_severityHasBeenSet = false;
183
184 ImplementationSummary m_implementation;
185 bool m_implementationHasBeenSet = false;
186
187 Aws::Utils::DateTime m_createTime{};
188 bool m_createTimeHasBeenSet = false;
189
190 Aws::Vector<Aws::String> m_governedResources;
191 bool m_governedResourcesHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace ControlCatalog
196} // namespace Aws
ControlSummary & WithSeverity(ControlSeverity value)
ControlSummary & WithCreateTime(CreateTimeT &&value)
const Aws::Vector< Aws::String > & GetAliases() const
AWS_CONTROLCATALOG_API ControlSummary(Aws::Utils::Json::JsonView jsonValue)
void SetBehavior(ControlBehavior value)
ControlSummary & AddAliases(AliasesT &&value)
AWS_CONTROLCATALOG_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSeverity(ControlSeverity value)
const Aws::Vector< Aws::String > & GetGovernedResources() const
const Aws::Utils::DateTime & GetCreateTime() const
ControlSummary & WithArn(ArnT &&value)
void SetImplementation(ImplementationT &&value)
ControlSummary & WithBehavior(ControlBehavior value)
void SetDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
void SetGovernedResources(GovernedResourcesT &&value)
ControlSummary & WithDescription(DescriptionT &&value)
AWS_CONTROLCATALOG_API ControlSummary()=default
AWS_CONTROLCATALOG_API ControlSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const ImplementationSummary & GetImplementation() const
ControlSummary & WithGovernedResources(GovernedResourcesT &&value)
ControlSummary & WithImplementation(ImplementationT &&value)
ControlSummary & WithName(NameT &&value)
ControlSummary & WithAliases(AliasesT &&value)
ControlSummary & AddGovernedResources(GovernedResourcesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue