AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
EventStreamDestinationDetails.h
1
6#pragma once
7#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/customer-profiles/model/EventStreamDestinationStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CustomerProfiles
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CUSTOMERPROFILES_API EventStreamDestinationDetails() = default;
38 AWS_CUSTOMERPROFILES_API EventStreamDestinationDetails(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetUri() const { return m_uri; }
49 inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
50 template<typename UriT = Aws::String>
51 void SetUri(UriT&& value) { m_uriHasBeenSet = true; m_uri = std::forward<UriT>(value); }
52 template<typename UriT = Aws::String>
53 EventStreamDestinationDetails& WithUri(UriT&& value) { SetUri(std::forward<UriT>(value)); return *this;}
55
57
60 inline EventStreamDestinationStatus GetStatus() const { return m_status; }
61 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
62 inline void SetStatus(EventStreamDestinationStatus value) { m_statusHasBeenSet = true; m_status = value; }
65
67
70 inline const Aws::Utils::DateTime& GetUnhealthySince() const { return m_unhealthySince; }
71 inline bool UnhealthySinceHasBeenSet() const { return m_unhealthySinceHasBeenSet; }
72 template<typename UnhealthySinceT = Aws::Utils::DateTime>
73 void SetUnhealthySince(UnhealthySinceT&& value) { m_unhealthySinceHasBeenSet = true; m_unhealthySince = std::forward<UnhealthySinceT>(value); }
74 template<typename UnhealthySinceT = Aws::Utils::DateTime>
75 EventStreamDestinationDetails& WithUnhealthySince(UnhealthySinceT&& value) { SetUnhealthySince(std::forward<UnhealthySinceT>(value)); return *this;}
77
79
83 inline const Aws::String& GetMessage() const { return m_message; }
84 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
85 template<typename MessageT = Aws::String>
86 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
87 template<typename MessageT = Aws::String>
88 EventStreamDestinationDetails& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
90 private:
91
92 Aws::String m_uri;
93 bool m_uriHasBeenSet = false;
94
96 bool m_statusHasBeenSet = false;
97
98 Aws::Utils::DateTime m_unhealthySince{};
99 bool m_unhealthySinceHasBeenSet = false;
100
101 Aws::String m_message;
102 bool m_messageHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace CustomerProfiles
107} // 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