AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
ExecutionContext.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityagent/SecurityAgent_EXPORTS.h>
10#include <aws/securityagent/model/ContextType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityAgent {
22namespace Model {
23
31 public:
32 AWS_SECURITYAGENT_API ExecutionContext() = default;
33 AWS_SECURITYAGENT_API ExecutionContext(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYAGENT_API ExecutionContext& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline ContextType GetContextType() const { return m_contextType; }
43 inline bool ContextTypeHasBeenSet() const { return m_contextTypeHasBeenSet; }
44 inline void SetContextType(ContextType value) {
45 m_contextTypeHasBeenSet = true;
46 m_contextType = value;
47 }
49 SetContextType(value);
50 return *this;
51 }
53
55
58 inline const Aws::String& GetContext() const { return m_context; }
59 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
60 template <typename ContextT = Aws::String>
61 void SetContext(ContextT&& value) {
62 m_contextHasBeenSet = true;
63 m_context = std::forward<ContextT>(value);
64 }
65 template <typename ContextT = Aws::String>
66 ExecutionContext& WithContext(ContextT&& value) {
67 SetContext(std::forward<ContextT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
77 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
78 template <typename TimestampT = Aws::Utils::DateTime>
79 void SetTimestamp(TimestampT&& value) {
80 m_timestampHasBeenSet = true;
81 m_timestamp = std::forward<TimestampT>(value);
82 }
83 template <typename TimestampT = Aws::Utils::DateTime>
84 ExecutionContext& WithTimestamp(TimestampT&& value) {
85 SetTimestamp(std::forward<TimestampT>(value));
86 return *this;
87 }
89 private:
90 ContextType m_contextType{ContextType::NOT_SET};
91
92 Aws::String m_context;
93
94 Aws::Utils::DateTime m_timestamp{};
95 bool m_contextTypeHasBeenSet = false;
96 bool m_contextHasBeenSet = false;
97 bool m_timestampHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace SecurityAgent
102} // namespace Aws
ExecutionContext & WithContextType(ContextType value)
AWS_SECURITYAGENT_API ExecutionContext & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYAGENT_API ExecutionContext()=default
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetTimestamp() const
ExecutionContext & WithTimestamp(TimestampT &&value)
AWS_SECURITYAGENT_API ExecutionContext(Aws::Utils::Json::JsonView jsonValue)
ExecutionContext & WithContext(ContextT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue