AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateConfigurationPolicyResult.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 <aws/securityhub/model/Policy.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace SecurityHub
26{
27namespace Model
28{
30 {
31 public:
32 AWS_SECURITYHUB_API CreateConfigurationPolicyResult() = default;
35
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 template<typename ArnT = Aws::String>
43 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
44 template<typename ArnT = Aws::String>
45 CreateConfigurationPolicyResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
47
49
52 inline const Aws::String& GetId() const { return m_id; }
53 template<typename IdT = Aws::String>
54 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
55 template<typename IdT = Aws::String>
56 CreateConfigurationPolicyResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
58
60
63 inline const Aws::String& GetName() const { return m_name; }
64 template<typename NameT = Aws::String>
65 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
66 template<typename NameT = Aws::String>
67 CreateConfigurationPolicyResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 template<typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
77 template<typename DescriptionT = Aws::String>
78 CreateConfigurationPolicyResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
80
82
86 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
87 template<typename UpdatedAtT = Aws::Utils::DateTime>
88 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
89 template<typename UpdatedAtT = Aws::Utils::DateTime>
90 CreateConfigurationPolicyResult& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
92
94
98 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
99 template<typename CreatedAtT = Aws::Utils::DateTime>
100 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
101 template<typename CreatedAtT = Aws::Utils::DateTime>
102 CreateConfigurationPolicyResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
104
106
117 inline const Policy& GetConfigurationPolicy() const { return m_configurationPolicy; }
118 template<typename ConfigurationPolicyT = Policy>
119 void SetConfigurationPolicy(ConfigurationPolicyT&& value) { m_configurationPolicyHasBeenSet = true; m_configurationPolicy = std::forward<ConfigurationPolicyT>(value); }
120 template<typename ConfigurationPolicyT = Policy>
121 CreateConfigurationPolicyResult& WithConfigurationPolicy(ConfigurationPolicyT&& value) { SetConfigurationPolicy(std::forward<ConfigurationPolicyT>(value)); return *this;}
123
125
126 inline const Aws::String& GetRequestId() const { return m_requestId; }
127 template<typename RequestIdT = Aws::String>
128 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
129 template<typename RequestIdT = Aws::String>
130 CreateConfigurationPolicyResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
132 private:
133
134 Aws::String m_arn;
135 bool m_arnHasBeenSet = false;
136
137 Aws::String m_id;
138 bool m_idHasBeenSet = false;
139
140 Aws::String m_name;
141 bool m_nameHasBeenSet = false;
142
143 Aws::String m_description;
144 bool m_descriptionHasBeenSet = false;
145
146 Aws::Utils::DateTime m_updatedAt{};
147 bool m_updatedAtHasBeenSet = false;
148
149 Aws::Utils::DateTime m_createdAt{};
150 bool m_createdAtHasBeenSet = false;
151
152 Policy m_configurationPolicy;
153 bool m_configurationPolicyHasBeenSet = false;
154
155 Aws::String m_requestId;
156 bool m_requestIdHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace SecurityHub
161} // namespace Aws
AWS_SECURITYHUB_API CreateConfigurationPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateConfigurationPolicyResult & WithConfigurationPolicy(ConfigurationPolicyT &&value)
CreateConfigurationPolicyResult & WithRequestId(RequestIdT &&value)
CreateConfigurationPolicyResult & WithDescription(DescriptionT &&value)
CreateConfigurationPolicyResult & WithName(NameT &&value)
AWS_SECURITYHUB_API CreateConfigurationPolicyResult()=default
AWS_SECURITYHUB_API CreateConfigurationPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateConfigurationPolicyResult & WithUpdatedAt(UpdatedAtT &&value)
CreateConfigurationPolicyResult & WithCreatedAt(CreatedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue