AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
AcceleratorEvent.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/globalaccelerator/GlobalAccelerator_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GlobalAccelerator {
21namespace Model {
22
34 public:
35 AWS_GLOBALACCELERATOR_API AcceleratorEvent() = default;
36 AWS_GLOBALACCELERATOR_API AcceleratorEvent(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GLOBALACCELERATOR_API AcceleratorEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
46 inline const Aws::String& GetMessage() const { return m_message; }
47 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
48 template <typename MessageT = Aws::String>
49 void SetMessage(MessageT&& value) {
50 m_messageHasBeenSet = true;
51 m_message = std::forward<MessageT>(value);
52 }
53 template <typename MessageT = Aws::String>
54 AcceleratorEvent& WithMessage(MessageT&& value) {
55 SetMessage(std::forward<MessageT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
66 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
67 template <typename TimestampT = Aws::Utils::DateTime>
68 void SetTimestamp(TimestampT&& value) {
69 m_timestampHasBeenSet = true;
70 m_timestamp = std::forward<TimestampT>(value);
71 }
72 template <typename TimestampT = Aws::Utils::DateTime>
73 AcceleratorEvent& WithTimestamp(TimestampT&& value) {
74 SetTimestamp(std::forward<TimestampT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_message;
80
81 Aws::Utils::DateTime m_timestamp{};
82 bool m_messageHasBeenSet = false;
83 bool m_timestampHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace GlobalAccelerator
88} // namespace Aws
AcceleratorEvent & WithMessage(MessageT &&value)
AWS_GLOBALACCELERATOR_API AcceleratorEvent(Aws::Utils::Json::JsonView jsonValue)
AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetTimestamp() const
AcceleratorEvent & WithTimestamp(TimestampT &&value)
AWS_GLOBALACCELERATOR_API AcceleratorEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLOBALACCELERATOR_API AcceleratorEvent()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue