AWS SDK for C++

AWS SDK for C++ Version 1.11.745

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Macie2 {
21namespace Model {
22
31 public:
32 AWS_MACIE2_API SessionContext() = default;
33 AWS_MACIE2_API SessionContext(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const SessionContextAttributes& GetAttributes() const { return m_attributes; }
44 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
45 template <typename AttributesT = SessionContextAttributes>
46 void SetAttributes(AttributesT&& value) {
47 m_attributesHasBeenSet = true;
48 m_attributes = std::forward<AttributesT>(value);
49 }
50 template <typename AttributesT = SessionContextAttributes>
51 SessionContext& WithAttributes(AttributesT&& value) {
52 SetAttributes(std::forward<AttributesT>(value));
53 return *this;
54 }
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) {
65 m_sessionIssuerHasBeenSet = true;
66 m_sessionIssuer = std::forward<SessionIssuerT>(value);
67 }
68 template <typename SessionIssuerT = SessionIssuer>
69 SessionContext& WithSessionIssuer(SessionIssuerT&& value) {
70 SetSessionIssuer(std::forward<SessionIssuerT>(value));
71 return *this;
72 }
74 private:
75 SessionContextAttributes m_attributes;
76
77 SessionIssuer m_sessionIssuer;
78 bool m_attributesHasBeenSet = false;
79 bool m_sessionIssuerHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace Macie2
84} // 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