AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
GetMacieSessionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/macie2/Macie2_EXPORTS.h>
11#include <aws/macie2/model/FindingPublishingFrequency.h>
12#include <aws/macie2/model/MacieStatus.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Macie2 {
26namespace Model {
28 public:
29 AWS_MACIE2_API GetMacieSessionResult() = default;
32
34
38 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
39 template <typename CreatedAtT = Aws::Utils::DateTime>
40 void SetCreatedAt(CreatedAtT&& value) {
41 m_createdAtHasBeenSet = true;
42 m_createdAt = std::forward<CreatedAtT>(value);
43 }
44 template <typename CreatedAtT = Aws::Utils::DateTime>
45 GetMacieSessionResult& WithCreatedAt(CreatedAtT&& value) {
46 SetCreatedAt(std::forward<CreatedAtT>(value));
47 return *this;
48 }
50
52
57 inline FindingPublishingFrequency GetFindingPublishingFrequency() const { return m_findingPublishingFrequency; }
59 m_findingPublishingFrequencyHasBeenSet = true;
60 m_findingPublishingFrequency = value;
61 }
64 return *this;
65 }
67
69
74 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
75 template <typename ServiceRoleT = Aws::String>
76 void SetServiceRole(ServiceRoleT&& value) {
77 m_serviceRoleHasBeenSet = true;
78 m_serviceRole = std::forward<ServiceRoleT>(value);
79 }
80 template <typename ServiceRoleT = Aws::String>
81 GetMacieSessionResult& WithServiceRole(ServiceRoleT&& value) {
82 SetServiceRole(std::forward<ServiceRoleT>(value));
83 return *this;
84 }
86
88
94 inline MacieStatus GetStatus() const { return m_status; }
95 inline void SetStatus(MacieStatus value) {
96 m_statusHasBeenSet = true;
97 m_status = value;
98 }
100 SetStatus(value);
101 return *this;
102 }
104
106
110 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
111 template <typename UpdatedAtT = Aws::Utils::DateTime>
112 void SetUpdatedAt(UpdatedAtT&& value) {
113 m_updatedAtHasBeenSet = true;
114 m_updatedAt = std::forward<UpdatedAtT>(value);
115 }
116 template <typename UpdatedAtT = Aws::Utils::DateTime>
118 SetUpdatedAt(std::forward<UpdatedAtT>(value));
119 return *this;
120 }
122
124
125 inline const Aws::String& GetRequestId() const { return m_requestId; }
126 template <typename RequestIdT = Aws::String>
127 void SetRequestId(RequestIdT&& value) {
128 m_requestIdHasBeenSet = true;
129 m_requestId = std::forward<RequestIdT>(value);
130 }
131 template <typename RequestIdT = Aws::String>
133 SetRequestId(std::forward<RequestIdT>(value));
134 return *this;
135 }
137 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
138
139 private:
140 Aws::Utils::DateTime m_createdAt{};
141
143
144 Aws::String m_serviceRole;
145
147
148 Aws::Utils::DateTime m_updatedAt{};
149
150 Aws::String m_requestId;
151 Aws::Http::HttpResponseCode m_HttpResponseCode;
152 bool m_createdAtHasBeenSet = false;
153 bool m_findingPublishingFrequencyHasBeenSet = false;
154 bool m_serviceRoleHasBeenSet = false;
155 bool m_statusHasBeenSet = false;
156 bool m_updatedAtHasBeenSet = false;
157 bool m_requestIdHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace Macie2
162} // namespace Aws
GetMacieSessionResult & WithUpdatedAt(UpdatedAtT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetMacieSessionResult & WithFindingPublishingFrequency(FindingPublishingFrequency value)
void SetFindingPublishingFrequency(FindingPublishingFrequency value)
AWS_MACIE2_API GetMacieSessionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetMacieSessionResult & WithRequestId(RequestIdT &&value)
FindingPublishingFrequency GetFindingPublishingFrequency() const
GetMacieSessionResult & WithServiceRole(ServiceRoleT &&value)
GetMacieSessionResult & WithCreatedAt(CreatedAtT &&value)
GetMacieSessionResult & WithStatus(MacieStatus value)
AWS_MACIE2_API GetMacieSessionResult()=default
AWS_MACIE2_API GetMacieSessionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::Utils::DateTime & GetCreatedAt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue