AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
50 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
51 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
52 inline ConfigurationPolicySummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
53 inline ConfigurationPolicySummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
54 inline ConfigurationPolicySummary& WithArn(const char* value) { SetArn(value); return *this;}
56
58
61 inline const Aws::String& GetId() const{ return m_id; }
62 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
63 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
64 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
65 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
66 inline ConfigurationPolicySummary& WithId(const Aws::String& value) { SetId(value); return *this;}
67 inline ConfigurationPolicySummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
68 inline ConfigurationPolicySummary& WithId(const char* value) { SetId(value); return *this;}
70
72
76 inline const Aws::String& GetName() const{ return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
79 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
80 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
81 inline ConfigurationPolicySummary& WithName(const Aws::String& value) { SetName(value); return *this;}
82 inline ConfigurationPolicySummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
83 inline ConfigurationPolicySummary& WithName(const char* value) { SetName(value); return *this;}
85
87
90 inline const Aws::String& GetDescription() const{ return m_description; }
91 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
92 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
93 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
94 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
95 inline ConfigurationPolicySummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
96 inline ConfigurationPolicySummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
97 inline ConfigurationPolicySummary& WithDescription(const char* value) { SetDescription(value); return *this;}
99
101
105 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
106 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
107 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
108 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
109 inline ConfigurationPolicySummary& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
110 inline ConfigurationPolicySummary& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
112
114
118 inline bool GetServiceEnabled() const{ return m_serviceEnabled; }
119 inline bool ServiceEnabledHasBeenSet() const { return m_serviceEnabledHasBeenSet; }
120 inline void SetServiceEnabled(bool value) { m_serviceEnabledHasBeenSet = true; m_serviceEnabled = value; }
121 inline ConfigurationPolicySummary& WithServiceEnabled(bool value) { SetServiceEnabled(value); return *this;}
123 private:
124
125 Aws::String m_arn;
126 bool m_arnHasBeenSet = false;
127
128 Aws::String m_id;
129 bool m_idHasBeenSet = false;
130
131 Aws::String m_name;
132 bool m_nameHasBeenSet = false;
133
134 Aws::String m_description;
135 bool m_descriptionHasBeenSet = false;
136
137 Aws::Utils::DateTime m_updatedAt;
138 bool m_updatedAtHasBeenSet = false;
139
140 bool m_serviceEnabled;
141 bool m_serviceEnabledHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace SecurityHub
146} // namespace Aws
AWS_SECURITYHUB_API ConfigurationPolicySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ConfigurationPolicySummary & WithUpdatedAt(const Aws::Utils::DateTime &value)
ConfigurationPolicySummary & WithDescription(const char *value)
ConfigurationPolicySummary & WithId(Aws::String &&value)
ConfigurationPolicySummary & WithArn(Aws::String &&value)
ConfigurationPolicySummary & WithUpdatedAt(Aws::Utils::DateTime &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API ConfigurationPolicySummary(Aws::Utils::Json::JsonView jsonValue)
ConfigurationPolicySummary & WithDescription(const Aws::String &value)
ConfigurationPolicySummary & WithId(const char *value)
ConfigurationPolicySummary & WithName(const Aws::String &value)
ConfigurationPolicySummary & WithDescription(Aws::String &&value)
ConfigurationPolicySummary & WithId(const Aws::String &value)
ConfigurationPolicySummary & WithName(const char *value)
ConfigurationPolicySummary & WithServiceEnabled(bool value)
ConfigurationPolicySummary & WithArn(const char *value)
ConfigurationPolicySummary & WithArn(const Aws::String &value)
ConfigurationPolicySummary & WithName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue