AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DestinationSummary.h
1
6#pragma once
7#include <aws/ivs-realtime/Ivsrealtime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ivs-realtime/model/DestinationState.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 ivsrealtime
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_IVSREALTIME_API DestinationSummary() = default;
37 AWS_IVSREALTIME_API DestinationSummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IVSREALTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetId() const { return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 template<typename IdT = Aws::String>
49 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
50 template<typename IdT = Aws::String>
51 DestinationSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
53
55
58 inline DestinationState GetState() const { return m_state; }
59 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
60 inline void SetState(DestinationState value) { m_stateHasBeenSet = true; m_state = value; }
61 inline DestinationSummary& WithState(DestinationState value) { SetState(value); return *this;}
63
65
69 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
70 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
71 template<typename StartTimeT = Aws::Utils::DateTime>
72 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
73 template<typename StartTimeT = Aws::Utils::DateTime>
74 DestinationSummary& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
76
78
82 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
83 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
84 template<typename EndTimeT = Aws::Utils::DateTime>
85 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
86 template<typename EndTimeT = Aws::Utils::DateTime>
87 DestinationSummary& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
89 private:
90
91 Aws::String m_id;
92 bool m_idHasBeenSet = false;
93
95 bool m_stateHasBeenSet = false;
96
97 Aws::Utils::DateTime m_startTime{};
98 bool m_startTimeHasBeenSet = false;
99
100 Aws::Utils::DateTime m_endTime{};
101 bool m_endTimeHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace ivsrealtime
106} // 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