AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SessionContext.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/macie2/model/SessionContextAttributes.h>
9#include <aws/macie2/model/SessionIssuer.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Macie2
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_MACIE2_API SessionContext() = default;
38 AWS_MACIE2_API SessionContext(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const SessionContextAttributes& GetAttributes() const { return m_attributes; }
50 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
51 template<typename AttributesT = SessionContextAttributes>
52 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
53 template<typename AttributesT = SessionContextAttributes>
54 SessionContext& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
56
58
61 inline const SessionIssuer& GetSessionIssuer() const { return m_sessionIssuer; }
62 inline bool SessionIssuerHasBeenSet() const { return m_sessionIssuerHasBeenSet; }
63 template<typename SessionIssuerT = SessionIssuer>
64 void SetSessionIssuer(SessionIssuerT&& value) { m_sessionIssuerHasBeenSet = true; m_sessionIssuer = std::forward<SessionIssuerT>(value); }
65 template<typename SessionIssuerT = SessionIssuer>
66 SessionContext& WithSessionIssuer(SessionIssuerT&& value) { SetSessionIssuer(std::forward<SessionIssuerT>(value)); return *this;}
68 private:
69
70 SessionContextAttributes m_attributes;
71 bool m_attributesHasBeenSet = false;
72
73 SessionIssuer m_sessionIssuer;
74 bool m_sessionIssuerHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace Macie2
79} // namespace Aws
void SetSessionIssuer(SessionIssuerT &&value)
SessionContext & WithAttributes(AttributesT &&value)
SessionContext & WithSessionIssuer(SessionIssuerT &&value)
const SessionIssuer & GetSessionIssuer() const
AWS_MACIE2_API SessionContext()=default
void SetAttributes(AttributesT &&value)
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MACIE2_API SessionContext(Aws::Utils::Json::JsonView jsonValue)
const SessionContextAttributes & GetAttributes() const
AWS_MACIE2_API SessionContext & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue