AWS SDK for C++

AWS SDK for C++ Version 1.11.891

Loading...
Searching...
No Matches
TestRunSourceEvent.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
10#include <aws/resiliencehubv2/model/TestRunSourceEventDetail.h>
11#include <aws/resiliencehubv2/model/TestRunSourceEventType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace resiliencehubv2 {
23namespace Model {
24
32 public:
33 AWS_RESILIENCEHUBV2_API TestRunSourceEvent() = default;
34 AWS_RESILIENCEHUBV2_API TestRunSourceEvent(Aws::Utils::Json::JsonView jsonValue);
35 AWS_RESILIENCEHUBV2_API TestRunSourceEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
43 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
44 template <typename TimestampT = Aws::Utils::DateTime>
45 void SetTimestamp(TimestampT&& value) {
46 m_timestampHasBeenSet = true;
47 m_timestamp = std::forward<TimestampT>(value);
48 }
49 template <typename TimestampT = Aws::Utils::DateTime>
50 TestRunSourceEvent& WithTimestamp(TimestampT&& value) {
51 SetTimestamp(std::forward<TimestampT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
61 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
62 template <typename SourceArnT = Aws::String>
63 void SetSourceArn(SourceArnT&& value) {
64 m_sourceArnHasBeenSet = true;
65 m_sourceArn = std::forward<SourceArnT>(value);
66 }
67 template <typename SourceArnT = Aws::String>
68 TestRunSourceEvent& WithSourceArn(SourceArnT&& value) {
69 SetSourceArn(std::forward<SourceArnT>(value));
70 return *this;
71 }
73
75
80 inline TestRunSourceEventType GetEventType() const { return m_eventType; }
81 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
83 m_eventTypeHasBeenSet = true;
84 m_eventType = value;
85 }
87 SetEventType(value);
88 return *this;
89 }
91
93
96 inline const TestRunSourceEventDetail& GetDetail() const { return m_detail; }
97 inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; }
98 template <typename DetailT = TestRunSourceEventDetail>
99 void SetDetail(DetailT&& value) {
100 m_detailHasBeenSet = true;
101 m_detail = std::forward<DetailT>(value);
102 }
103 template <typename DetailT = TestRunSourceEventDetail>
104 TestRunSourceEvent& WithDetail(DetailT&& value) {
105 SetDetail(std::forward<DetailT>(value));
106 return *this;
107 }
109 private:
110 Aws::Utils::DateTime m_timestamp{};
111
112 Aws::String m_sourceArn;
113
115
116 TestRunSourceEventDetail m_detail;
117 bool m_timestampHasBeenSet = false;
118 bool m_sourceArnHasBeenSet = false;
119 bool m_eventTypeHasBeenSet = false;
120 bool m_detailHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace resiliencehubv2
125} // namespace Aws
TestRunSourceEvent & WithTimestamp(TimestampT &&value)
AWS_RESILIENCEHUBV2_API TestRunSourceEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
TestRunSourceEvent & WithDetail(DetailT &&value)
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_RESILIENCEHUBV2_API TestRunSourceEvent()=default
const TestRunSourceEventDetail & GetDetail() const
const Aws::Utils::DateTime & GetTimestamp() const
AWS_RESILIENCEHUBV2_API TestRunSourceEvent(Aws::Utils::Json::JsonView jsonValue)
TestRunSourceEvent & WithEventType(TestRunSourceEventType value)
void SetEventType(TestRunSourceEventType value)
TestRunSourceEvent & WithSourceArn(SourceArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue