AWS SDK for C++

AWS SDK for C++ Version 1.11.787

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
41 inline ContextType GetContextType() const { return m_contextType; }
42 inline bool ContextTypeHasBeenSet() const { return m_contextTypeHasBeenSet; }
43 inline void SetContextType(ContextType value) {
44 m_contextTypeHasBeenSet = true;
45 m_contextType = value;
46 }
48 SetContextType(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetContext() const { return m_context; }
58 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
59 template <typename ContextT = Aws::String>
60 void SetContext(ContextT&& value) {
61 m_contextHasBeenSet = true;
62 m_context = std::forward<ContextT>(value);
63 }
64 template <typename ContextT = Aws::String>
65 ExecutionContext& WithContext(ContextT&& value) {
66 SetContext(std::forward<ContextT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
76 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
77 template <typename TimestampT = Aws::Utils::DateTime>
78 void SetTimestamp(TimestampT&& value) {
79 m_timestampHasBeenSet = true;
80 m_timestamp = std::forward<TimestampT>(value);
81 }
82 template <typename TimestampT = Aws::Utils::DateTime>
83 ExecutionContext& WithTimestamp(TimestampT&& value) {
84 SetTimestamp(std::forward<TimestampT>(value));
85 return *this;
86 }
88 private:
89 ContextType m_contextType{ContextType::NOT_SET};
90
91 Aws::String m_context;
92
93 Aws::Utils::DateTime m_timestamp{};
94 bool m_contextTypeHasBeenSet = false;
95 bool m_contextHasBeenSet = false;
96 bool m_timestampHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace SecurityAgent
101} // 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