AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ActorSession.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9#include <aws/securityhub/model/ActorSessionMfaStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SecurityHub {
21namespace Model {
22
37 public:
38 AWS_SECURITYHUB_API ActorSession() = default;
39 AWS_SECURITYHUB_API ActorSession(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECURITYHUB_API ActorSession& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetUid() const { return m_uid; }
48 inline bool UidHasBeenSet() const { return m_uidHasBeenSet; }
49 template <typename UidT = Aws::String>
50 void SetUid(UidT&& value) {
51 m_uidHasBeenSet = true;
52 m_uid = std::forward<UidT>(value);
53 }
54 template <typename UidT = Aws::String>
55 ActorSession& WithUid(UidT&& value) {
56 SetUid(std::forward<UidT>(value));
57 return *this;
58 }
60
62
67 inline ActorSessionMfaStatus GetMfaStatus() const { return m_mfaStatus; }
68 inline bool MfaStatusHasBeenSet() const { return m_mfaStatusHasBeenSet; }
70 m_mfaStatusHasBeenSet = true;
71 m_mfaStatus = value;
72 }
74 SetMfaStatus(value);
75 return *this;
76 }
78
80
85 inline long long GetCreatedTime() const { return m_createdTime; }
86 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
87 inline void SetCreatedTime(long long value) {
88 m_createdTimeHasBeenSet = true;
89 m_createdTime = value;
90 }
91 inline ActorSession& WithCreatedTime(long long value) {
92 SetCreatedTime(value);
93 return *this;
94 }
96
98
102 inline const Aws::String& GetIssuer() const { return m_issuer; }
103 inline bool IssuerHasBeenSet() const { return m_issuerHasBeenSet; }
104 template <typename IssuerT = Aws::String>
105 void SetIssuer(IssuerT&& value) {
106 m_issuerHasBeenSet = true;
107 m_issuer = std::forward<IssuerT>(value);
108 }
109 template <typename IssuerT = Aws::String>
110 ActorSession& WithIssuer(IssuerT&& value) {
111 SetIssuer(std::forward<IssuerT>(value));
112 return *this;
113 }
115 private:
116 Aws::String m_uid;
117
119
120 long long m_createdTime{0};
121
122 Aws::String m_issuer;
123 bool m_uidHasBeenSet = false;
124 bool m_mfaStatusHasBeenSet = false;
125 bool m_createdTimeHasBeenSet = false;
126 bool m_issuerHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace SecurityHub
131} // namespace Aws
void SetCreatedTime(long long value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
ActorSession & WithMfaStatus(ActorSessionMfaStatus value)
ActorSessionMfaStatus GetMfaStatus() const
const Aws::String & GetUid() const
ActorSession & WithIssuer(IssuerT &&value)
void SetMfaStatus(ActorSessionMfaStatus value)
AWS_SECURITYHUB_API ActorSession & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API ActorSession()=default
AWS_SECURITYHUB_API ActorSession(Aws::Utils::Json::JsonView jsonValue)
ActorSession & WithCreatedTime(long long value)
ActorSession & WithUid(UidT &&value)
const Aws::String & GetIssuer() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue