AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
SessionContextAttributes.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/macie2/Macie2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Macie2 {
20namespace Model {
21
29 public:
30 AWS_MACIE2_API SessionContextAttributes() = default;
33 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
41 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
42 template <typename CreationDateT = Aws::Utils::DateTime>
43 void SetCreationDate(CreationDateT&& value) {
44 m_creationDateHasBeenSet = true;
45 m_creationDate = std::forward<CreationDateT>(value);
46 }
47 template <typename CreationDateT = Aws::Utils::DateTime>
49 SetCreationDate(std::forward<CreationDateT>(value));
50 return *this;
51 }
53
55
59 inline bool GetMfaAuthenticated() const { return m_mfaAuthenticated; }
60 inline bool MfaAuthenticatedHasBeenSet() const { return m_mfaAuthenticatedHasBeenSet; }
61 inline void SetMfaAuthenticated(bool value) {
62 m_mfaAuthenticatedHasBeenSet = true;
63 m_mfaAuthenticated = value;
64 }
67 return *this;
68 }
70 private:
71 Aws::Utils::DateTime m_creationDate{};
72
73 bool m_mfaAuthenticated{false};
74 bool m_creationDateHasBeenSet = false;
75 bool m_mfaAuthenticatedHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace Macie2
80} // namespace Aws
SessionContextAttributes & WithCreationDate(CreationDateT &&value)
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreationDate() const
AWS_MACIE2_API SessionContextAttributes(Aws::Utils::Json::JsonView jsonValue)
SessionContextAttributes & WithMfaAuthenticated(bool value)
AWS_MACIE2_API SessionContextAttributes()=default
AWS_MACIE2_API SessionContextAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue