AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
GetMacieSessionResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/macie2/Macie2_EXPORTS.h>
10#include <aws/macie2/model/FindingPublishingFrequency.h>
11#include <aws/macie2/model/MacieStatus.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Macie2 {
25namespace Model {
27 public:
28 AWS_MACIE2_API GetMacieSessionResult() = default;
31
33
37 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
38 template <typename CreatedAtT = Aws::Utils::DateTime>
39 void SetCreatedAt(CreatedAtT&& value) {
40 m_createdAtHasBeenSet = true;
41 m_createdAt = std::forward<CreatedAtT>(value);
42 }
43 template <typename CreatedAtT = Aws::Utils::DateTime>
44 GetMacieSessionResult& WithCreatedAt(CreatedAtT&& value) {
45 SetCreatedAt(std::forward<CreatedAtT>(value));
46 return *this;
47 }
49
51
56 inline FindingPublishingFrequency GetFindingPublishingFrequency() const { return m_findingPublishingFrequency; }
58 m_findingPublishingFrequencyHasBeenSet = true;
59 m_findingPublishingFrequency = value;
60 }
63 return *this;
64 }
66
68
73 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
74 template <typename ServiceRoleT = Aws::String>
75 void SetServiceRole(ServiceRoleT&& value) {
76 m_serviceRoleHasBeenSet = true;
77 m_serviceRole = std::forward<ServiceRoleT>(value);
78 }
79 template <typename ServiceRoleT = Aws::String>
80 GetMacieSessionResult& WithServiceRole(ServiceRoleT&& value) {
81 SetServiceRole(std::forward<ServiceRoleT>(value));
82 return *this;
83 }
85
87
93 inline MacieStatus GetStatus() const { return m_status; }
94 inline void SetStatus(MacieStatus value) {
95 m_statusHasBeenSet = true;
96 m_status = value;
97 }
99 SetStatus(value);
100 return *this;
101 }
103
105
109 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
110 template <typename UpdatedAtT = Aws::Utils::DateTime>
111 void SetUpdatedAt(UpdatedAtT&& value) {
112 m_updatedAtHasBeenSet = true;
113 m_updatedAt = std::forward<UpdatedAtT>(value);
114 }
115 template <typename UpdatedAtT = Aws::Utils::DateTime>
117 SetUpdatedAt(std::forward<UpdatedAtT>(value));
118 return *this;
119 }
121
123
124 inline const Aws::String& GetRequestId() const { return m_requestId; }
125 template <typename RequestIdT = Aws::String>
126 void SetRequestId(RequestIdT&& value) {
127 m_requestIdHasBeenSet = true;
128 m_requestId = std::forward<RequestIdT>(value);
129 }
130 template <typename RequestIdT = Aws::String>
132 SetRequestId(std::forward<RequestIdT>(value));
133 return *this;
134 }
136 private:
137 Aws::Utils::DateTime m_createdAt{};
138
140
141 Aws::String m_serviceRole;
142
144
145 Aws::Utils::DateTime m_updatedAt{};
146
147 Aws::String m_requestId;
148 bool m_createdAtHasBeenSet = false;
149 bool m_findingPublishingFrequencyHasBeenSet = false;
150 bool m_serviceRoleHasBeenSet = false;
151 bool m_statusHasBeenSet = false;
152 bool m_updatedAtHasBeenSet = false;
153 bool m_requestIdHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace Macie2
158} // namespace Aws
GetMacieSessionResult & WithUpdatedAt(UpdatedAtT &&value)
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