AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
ByoipCidrEvent.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
32 public:
33 AWS_GLOBALACCELERATOR_API ByoipCidrEvent() = default;
34 AWS_GLOBALACCELERATOR_API ByoipCidrEvent(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GLOBALACCELERATOR_API ByoipCidrEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline const Aws::String& GetMessage() const { return m_message; }
45 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
46 template <typename MessageT = Aws::String>
47 void SetMessage(MessageT&& value) {
48 m_messageHasBeenSet = true;
49 m_message = std::forward<MessageT>(value);
50 }
51 template <typename MessageT = Aws::String>
52 ByoipCidrEvent& WithMessage(MessageT&& value) {
53 SetMessage(std::forward<MessageT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
64 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
65 template <typename TimestampT = Aws::Utils::DateTime>
66 void SetTimestamp(TimestampT&& value) {
67 m_timestampHasBeenSet = true;
68 m_timestamp = std::forward<TimestampT>(value);
69 }
70 template <typename TimestampT = Aws::Utils::DateTime>
71 ByoipCidrEvent& WithTimestamp(TimestampT&& value) {
72 SetTimestamp(std::forward<TimestampT>(value));
73 return *this;
74 }
76 private:
77 Aws::String m_message;
78
79 Aws::Utils::DateTime m_timestamp{};
80 bool m_messageHasBeenSet = false;
81 bool m_timestampHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace GlobalAccelerator
86} // namespace Aws
AWS_GLOBALACCELERATOR_API ByoipCidrEvent(Aws::Utils::Json::JsonView jsonValue)
AWS_GLOBALACCELERATOR_API ByoipCidrEvent()=default
AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const
ByoipCidrEvent & WithMessage(MessageT &&value)
AWS_GLOBALACCELERATOR_API ByoipCidrEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
ByoipCidrEvent & WithTimestamp(TimestampT &&value)
const Aws::Utils::DateTime & GetTimestamp() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue