AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
Session.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/guardduty/GuardDuty_EXPORTS.h>
10#include <aws/guardduty/model/MfaStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GuardDuty {
22namespace Model {
23
30class Session {
31 public:
32 AWS_GUARDDUTY_API Session() = default;
33 AWS_GUARDDUTY_API Session(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GUARDDUTY_API Session& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetUid() const { return m_uid; }
42 inline bool UidHasBeenSet() const { return m_uidHasBeenSet; }
43 template <typename UidT = Aws::String>
44 void SetUid(UidT&& value) {
45 m_uidHasBeenSet = true;
46 m_uid = std::forward<UidT>(value);
47 }
48 template <typename UidT = Aws::String>
49 Session& WithUid(UidT&& value) {
50 SetUid(std::forward<UidT>(value));
51 return *this;
52 }
54
56
62 inline MfaStatus GetMfaStatus() const { return m_mfaStatus; }
63 inline bool MfaStatusHasBeenSet() const { return m_mfaStatusHasBeenSet; }
64 inline void SetMfaStatus(MfaStatus value) {
65 m_mfaStatusHasBeenSet = true;
66 m_mfaStatus = value;
67 }
69 SetMfaStatus(value);
70 return *this;
71 }
73
75
80 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
81 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
82 template <typename CreatedTimeT = Aws::Utils::DateTime>
83 void SetCreatedTime(CreatedTimeT&& value) {
84 m_createdTimeHasBeenSet = true;
85 m_createdTime = std::forward<CreatedTimeT>(value);
86 }
87 template <typename CreatedTimeT = Aws::Utils::DateTime>
88 Session& WithCreatedTime(CreatedTimeT&& value) {
89 SetCreatedTime(std::forward<CreatedTimeT>(value));
90 return *this;
91 }
93
95
100 inline const Aws::String& GetIssuer() const { return m_issuer; }
101 inline bool IssuerHasBeenSet() const { return m_issuerHasBeenSet; }
102 template <typename IssuerT = Aws::String>
103 void SetIssuer(IssuerT&& value) {
104 m_issuerHasBeenSet = true;
105 m_issuer = std::forward<IssuerT>(value);
106 }
107 template <typename IssuerT = Aws::String>
108 Session& WithIssuer(IssuerT&& value) {
109 SetIssuer(std::forward<IssuerT>(value));
110 return *this;
111 }
113 private:
114 Aws::String m_uid;
115
116 MfaStatus m_mfaStatus{MfaStatus::NOT_SET};
117
118 Aws::Utils::DateTime m_createdTime{};
119
120 Aws::String m_issuer;
121 bool m_uidHasBeenSet = false;
122 bool m_mfaStatusHasBeenSet = false;
123 bool m_createdTimeHasBeenSet = false;
124 bool m_issuerHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace GuardDuty
129} // namespace Aws
AWS_GUARDDUTY_API Session(Aws::Utils::Json::JsonView jsonValue)
bool MfaStatusHasBeenSet() const
Definition Session.h:63
void SetUid(UidT &&value)
Definition Session.h:44
void SetMfaStatus(MfaStatus value)
Definition Session.h:64
Session & WithCreatedTime(CreatedTimeT &&value)
Definition Session.h:88
AWS_GUARDDUTY_API Session & operator=(Aws::Utils::Json::JsonView jsonValue)
Session & WithMfaStatus(MfaStatus value)
Definition Session.h:68
MfaStatus GetMfaStatus() const
Definition Session.h:62
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
bool CreatedTimeHasBeenSet() const
Definition Session.h:81
void SetIssuer(IssuerT &&value)
Definition Session.h:103
AWS_GUARDDUTY_API Session()=default
Session & WithUid(UidT &&value)
Definition Session.h:49
const Aws::Utils::DateTime & GetCreatedTime() const
Definition Session.h:80
Session & WithIssuer(IssuerT &&value)
Definition Session.h:108
const Aws::String & GetIssuer() const
Definition Session.h:100
const Aws::String & GetUid() const
Definition Session.h:41
void SetCreatedTime(CreatedTimeT &&value)
Definition Session.h:83
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue