AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DestinationSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ivs-realtime/Ivsrealtime_EXPORTS.h>
10#include <aws/ivs-realtime/model/DestinationState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ivsrealtime {
22namespace Model {
23
30 public:
31 AWS_IVSREALTIME_API DestinationSummary() = default;
32 AWS_IVSREALTIME_API DestinationSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IVSREALTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetId() const { return m_id; }
41 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
42 template <typename IdT = Aws::String>
43 void SetId(IdT&& value) {
44 m_idHasBeenSet = true;
45 m_id = std::forward<IdT>(value);
46 }
47 template <typename IdT = Aws::String>
48 DestinationSummary& WithId(IdT&& value) {
49 SetId(std::forward<IdT>(value));
50 return *this;
51 }
53
55
58 inline DestinationState GetState() const { return m_state; }
59 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
60 inline void SetState(DestinationState value) {
61 m_stateHasBeenSet = true;
62 m_state = value;
63 }
65 SetState(value);
66 return *this;
67 }
69
71
75 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
76 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
77 template <typename StartTimeT = Aws::Utils::DateTime>
78 void SetStartTime(StartTimeT&& value) {
79 m_startTimeHasBeenSet = true;
80 m_startTime = std::forward<StartTimeT>(value);
81 }
82 template <typename StartTimeT = Aws::Utils::DateTime>
83 DestinationSummary& WithStartTime(StartTimeT&& value) {
84 SetStartTime(std::forward<StartTimeT>(value));
85 return *this;
86 }
88
90
94 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
95 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
96 template <typename EndTimeT = Aws::Utils::DateTime>
97 void SetEndTime(EndTimeT&& value) {
98 m_endTimeHasBeenSet = true;
99 m_endTime = std::forward<EndTimeT>(value);
100 }
101 template <typename EndTimeT = Aws::Utils::DateTime>
102 DestinationSummary& WithEndTime(EndTimeT&& value) {
103 SetEndTime(std::forward<EndTimeT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_id;
109
111
112 Aws::Utils::DateTime m_startTime{};
113
114 Aws::Utils::DateTime m_endTime{};
115 bool m_idHasBeenSet = false;
116 bool m_stateHasBeenSet = false;
117 bool m_startTimeHasBeenSet = false;
118 bool m_endTimeHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace ivsrealtime
123} // namespace Aws
AWS_IVSREALTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IVSREALTIME_API DestinationSummary(Aws::Utils::Json::JsonView jsonValue)
DestinationSummary & WithState(DestinationState value)
DestinationSummary & WithEndTime(EndTimeT &&value)
const Aws::Utils::DateTime & GetStartTime() const
const Aws::Utils::DateTime & GetEndTime() const
AWS_IVSREALTIME_API DestinationSummary()=default
AWS_IVSREALTIME_API DestinationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
DestinationSummary & WithId(IdT &&value)
DestinationSummary & WithStartTime(StartTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue