AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ConfigurationPolicySummary.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.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 SecurityHub
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_SECURITYHUB_API ConfigurationPolicySummary() = default;
40 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetArn() const { return m_arn; }
48 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
49 template<typename ArnT = Aws::String>
50 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
51 template<typename ArnT = Aws::String>
52 ConfigurationPolicySummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
54
56
59 inline const Aws::String& GetId() const { return m_id; }
60 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
61 template<typename IdT = Aws::String>
62 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
63 template<typename IdT = Aws::String>
64 ConfigurationPolicySummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
66
68
72 inline const Aws::String& GetName() const { return m_name; }
73 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
74 template<typename NameT = Aws::String>
75 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
76 template<typename NameT = Aws::String>
77 ConfigurationPolicySummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
79
81
84 inline const Aws::String& GetDescription() const { return m_description; }
85 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 template<typename DescriptionT = Aws::String>
87 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
88 template<typename DescriptionT = Aws::String>
89 ConfigurationPolicySummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
91
93
97 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
98 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
99 template<typename UpdatedAtT = Aws::Utils::DateTime>
100 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
101 template<typename UpdatedAtT = Aws::Utils::DateTime>
102 ConfigurationPolicySummary& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
104
106
110 inline bool GetServiceEnabled() const { return m_serviceEnabled; }
111 inline bool ServiceEnabledHasBeenSet() const { return m_serviceEnabledHasBeenSet; }
112 inline void SetServiceEnabled(bool value) { m_serviceEnabledHasBeenSet = true; m_serviceEnabled = value; }
113 inline ConfigurationPolicySummary& WithServiceEnabled(bool value) { SetServiceEnabled(value); return *this;}
115 private:
116
117 Aws::String m_arn;
118 bool m_arnHasBeenSet = false;
119
120 Aws::String m_id;
121 bool m_idHasBeenSet = false;
122
123 Aws::String m_name;
124 bool m_nameHasBeenSet = false;
125
126 Aws::String m_description;
127 bool m_descriptionHasBeenSet = false;
128
129 Aws::Utils::DateTime m_updatedAt{};
130 bool m_updatedAtHasBeenSet = false;
131
132 bool m_serviceEnabled{false};
133 bool m_serviceEnabledHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace SecurityHub
138} // namespace Aws
AWS_SECURITYHUB_API ConfigurationPolicySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ConfigurationPolicySummary & WithArn(ArnT &&value)
AWS_SECURITYHUB_API ConfigurationPolicySummary()=default
ConfigurationPolicySummary & WithDescription(DescriptionT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API ConfigurationPolicySummary(Aws::Utils::Json::JsonView jsonValue)
ConfigurationPolicySummary & WithName(NameT &&value)
ConfigurationPolicySummary & WithServiceEnabled(bool value)
ConfigurationPolicySummary & WithUpdatedAt(UpdatedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue