AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
EventStreamDestinationDetails.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
10#include <aws/customer-profiles/model/EventStreamDestinationStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CustomerProfiles {
22namespace Model {
23
31 public:
32 AWS_CUSTOMERPROFILES_API EventStreamDestinationDetails() = default;
33 AWS_CUSTOMERPROFILES_API EventStreamDestinationDetails(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetUri() const { return m_uri; }
43 inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
44 template <typename UriT = Aws::String>
45 void SetUri(UriT&& value) {
46 m_uriHasBeenSet = true;
47 m_uri = std::forward<UriT>(value);
48 }
49 template <typename UriT = Aws::String>
51 SetUri(std::forward<UriT>(value));
52 return *this;
53 }
55
57
60 inline EventStreamDestinationStatus GetStatus() const { return m_status; }
61 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
63 m_statusHasBeenSet = true;
64 m_status = value;
65 }
67 SetStatus(value);
68 return *this;
69 }
71
73
76 inline const Aws::Utils::DateTime& GetUnhealthySince() const { return m_unhealthySince; }
77 inline bool UnhealthySinceHasBeenSet() const { return m_unhealthySinceHasBeenSet; }
78 template <typename UnhealthySinceT = Aws::Utils::DateTime>
79 void SetUnhealthySince(UnhealthySinceT&& value) {
80 m_unhealthySinceHasBeenSet = true;
81 m_unhealthySince = std::forward<UnhealthySinceT>(value);
82 }
83 template <typename UnhealthySinceT = Aws::Utils::DateTime>
85 SetUnhealthySince(std::forward<UnhealthySinceT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetMessage() const { return m_message; }
96 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
97 template <typename MessageT = Aws::String>
98 void SetMessage(MessageT&& value) {
99 m_messageHasBeenSet = true;
100 m_message = std::forward<MessageT>(value);
101 }
102 template <typename MessageT = Aws::String>
104 SetMessage(std::forward<MessageT>(value));
105 return *this;
106 }
108 private:
109 Aws::String m_uri;
110
112
113 Aws::Utils::DateTime m_unhealthySince{};
114
115 Aws::String m_message;
116 bool m_uriHasBeenSet = false;
117 bool m_statusHasBeenSet = false;
118 bool m_unhealthySinceHasBeenSet = false;
119 bool m_messageHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace CustomerProfiles
124} // namespace Aws
EventStreamDestinationDetails & WithStatus(EventStreamDestinationStatus value)
EventStreamDestinationDetails & WithUnhealthySince(UnhealthySinceT &&value)
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CUSTOMERPROFILES_API EventStreamDestinationDetails()=default
AWS_CUSTOMERPROFILES_API EventStreamDestinationDetails(Aws::Utils::Json::JsonView jsonValue)
EventStreamDestinationDetails & WithMessage(MessageT &&value)
AWS_CUSTOMERPROFILES_API EventStreamDestinationDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue