AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
SdiSource.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/medialive/model/SdiSourceMode.h>
11#include <aws/medialive/model/SdiSourceState.h>
12#include <aws/medialive/model/SdiSourceType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace MediaLive
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_MEDIALIVE_API SdiSource() = default;
41 AWS_MEDIALIVE_API SdiSource(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MEDIALIVE_API SdiSource& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::String& GetArn() const { return m_arn; }
52 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
53 template<typename ArnT = Aws::String>
54 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
55 template<typename ArnT = Aws::String>
56 SdiSource& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
58
60
64 inline const Aws::String& GetId() const { return m_id; }
65 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
66 template<typename IdT = Aws::String>
67 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
68 template<typename IdT = Aws::String>
69 SdiSource& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
71
73
77 inline const Aws::Vector<Aws::String>& GetInputs() const { return m_inputs; }
78 inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; }
79 template<typename InputsT = Aws::Vector<Aws::String>>
80 void SetInputs(InputsT&& value) { m_inputsHasBeenSet = true; m_inputs = std::forward<InputsT>(value); }
81 template<typename InputsT = Aws::Vector<Aws::String>>
82 SdiSource& WithInputs(InputsT&& value) { SetInputs(std::forward<InputsT>(value)); return *this;}
83 template<typename InputsT = Aws::String>
84 SdiSource& AddInputs(InputsT&& value) { m_inputsHasBeenSet = true; m_inputs.emplace_back(std::forward<InputsT>(value)); return *this; }
86
88
92 inline SdiSourceMode GetMode() const { return m_mode; }
93 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
94 inline void SetMode(SdiSourceMode value) { m_modeHasBeenSet = true; m_mode = value; }
95 inline SdiSource& WithMode(SdiSourceMode value) { SetMode(value); return *this;}
97
99
102 inline const Aws::String& GetName() const { return m_name; }
103 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
104 template<typename NameT = Aws::String>
105 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
106 template<typename NameT = Aws::String>
107 SdiSource& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
109
111
115 inline SdiSourceState GetState() const { return m_state; }
116 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
117 inline void SetState(SdiSourceState value) { m_stateHasBeenSet = true; m_state = value; }
118 inline SdiSource& WithState(SdiSourceState value) { SetState(value); return *this;}
120
122
123 inline SdiSourceType GetType() const { return m_type; }
124 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
125 inline void SetType(SdiSourceType value) { m_typeHasBeenSet = true; m_type = value; }
126 inline SdiSource& WithType(SdiSourceType value) { SetType(value); return *this;}
128 private:
129
130 Aws::String m_arn;
131 bool m_arnHasBeenSet = false;
132
133 Aws::String m_id;
134 bool m_idHasBeenSet = false;
135
137 bool m_inputsHasBeenSet = false;
138
140 bool m_modeHasBeenSet = false;
141
142 Aws::String m_name;
143 bool m_nameHasBeenSet = false;
144
146 bool m_stateHasBeenSet = false;
147
149 bool m_typeHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace MediaLive
154} // namespace Aws
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
SdiSourceMode GetMode() const
Definition SdiSource.h:92
void SetType(SdiSourceType value)
Definition SdiSource.h:125
AWS_MEDIALIVE_API SdiSource & operator=(Aws::Utils::Json::JsonView jsonValue)
SdiSource & WithState(SdiSourceState value)
Definition SdiSource.h:118
void SetState(SdiSourceState value)
Definition SdiSource.h:117
void SetMode(SdiSourceMode value)
Definition SdiSource.h:94
SdiSourceState GetState() const
Definition SdiSource.h:115
void SetInputs(InputsT &&value)
Definition SdiSource.h:80
const Aws::String & GetId() const
Definition SdiSource.h:64
SdiSource & AddInputs(InputsT &&value)
Definition SdiSource.h:84
SdiSource & WithId(IdT &&value)
Definition SdiSource.h:69
AWS_MEDIALIVE_API SdiSource(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API SdiSource()=default
const Aws::Vector< Aws::String > & GetInputs() const
Definition SdiSource.h:77
SdiSource & WithType(SdiSourceType value)
Definition SdiSource.h:126
void SetArn(ArnT &&value)
Definition SdiSource.h:54
SdiSource & WithInputs(InputsT &&value)
Definition SdiSource.h:82
SdiSource & WithMode(SdiSourceMode value)
Definition SdiSource.h:95
void SetName(NameT &&value)
Definition SdiSource.h:105
SdiSource & WithArn(ArnT &&value)
Definition SdiSource.h:56
SdiSource & WithName(NameT &&value)
Definition SdiSource.h:107
const Aws::String & GetArn() const
Definition SdiSource.h:51
const Aws::String & GetName() const
Definition SdiSource.h:102
SdiSourceType GetType() const
Definition SdiSource.h:123
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue