AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
InputAttachment.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/medialive/MediaLive_EXPORTS.h>
10#include <aws/medialive/model/AutomaticInputFailoverSettings.h>
11#include <aws/medialive/model/InputSettings.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MediaLive {
23namespace Model {
24
31 public:
32 AWS_MEDIALIVE_API InputAttachment() = default;
33 AWS_MEDIALIVE_API InputAttachment(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const AutomaticInputFailoverSettings& GetAutomaticInputFailoverSettings() const { return m_automaticInputFailoverSettings; }
43 inline bool AutomaticInputFailoverSettingsHasBeenSet() const { return m_automaticInputFailoverSettingsHasBeenSet; }
44 template <typename AutomaticInputFailoverSettingsT = AutomaticInputFailoverSettings>
45 void SetAutomaticInputFailoverSettings(AutomaticInputFailoverSettingsT&& value) {
46 m_automaticInputFailoverSettingsHasBeenSet = true;
47 m_automaticInputFailoverSettings = std::forward<AutomaticInputFailoverSettingsT>(value);
48 }
49 template <typename AutomaticInputFailoverSettingsT = AutomaticInputFailoverSettings>
50 InputAttachment& WithAutomaticInputFailoverSettings(AutomaticInputFailoverSettingsT&& value) {
51 SetAutomaticInputFailoverSettings(std::forward<AutomaticInputFailoverSettingsT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetInputAttachmentName() const { return m_inputAttachmentName; }
62 inline bool InputAttachmentNameHasBeenSet() const { return m_inputAttachmentNameHasBeenSet; }
63 template <typename InputAttachmentNameT = Aws::String>
64 void SetInputAttachmentName(InputAttachmentNameT&& value) {
65 m_inputAttachmentNameHasBeenSet = true;
66 m_inputAttachmentName = std::forward<InputAttachmentNameT>(value);
67 }
68 template <typename InputAttachmentNameT = Aws::String>
69 InputAttachment& WithInputAttachmentName(InputAttachmentNameT&& value) {
70 SetInputAttachmentName(std::forward<InputAttachmentNameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetInputId() const { return m_inputId; }
80 inline bool InputIdHasBeenSet() const { return m_inputIdHasBeenSet; }
81 template <typename InputIdT = Aws::String>
82 void SetInputId(InputIdT&& value) {
83 m_inputIdHasBeenSet = true;
84 m_inputId = std::forward<InputIdT>(value);
85 }
86 template <typename InputIdT = Aws::String>
87 InputAttachment& WithInputId(InputIdT&& value) {
88 SetInputId(std::forward<InputIdT>(value));
89 return *this;
90 }
92
94
97 inline const InputSettings& GetInputSettings() const { return m_inputSettings; }
98 inline bool InputSettingsHasBeenSet() const { return m_inputSettingsHasBeenSet; }
99 template <typename InputSettingsT = InputSettings>
100 void SetInputSettings(InputSettingsT&& value) {
101 m_inputSettingsHasBeenSet = true;
102 m_inputSettings = std::forward<InputSettingsT>(value);
103 }
104 template <typename InputSettingsT = InputSettings>
105 InputAttachment& WithInputSettings(InputSettingsT&& value) {
106 SetInputSettings(std::forward<InputSettingsT>(value));
107 return *this;
108 }
110
112
116 inline const Aws::Vector<Aws::String>& GetLogicalInterfaceNames() const { return m_logicalInterfaceNames; }
117 inline bool LogicalInterfaceNamesHasBeenSet() const { return m_logicalInterfaceNamesHasBeenSet; }
118 template <typename LogicalInterfaceNamesT = Aws::Vector<Aws::String>>
119 void SetLogicalInterfaceNames(LogicalInterfaceNamesT&& value) {
120 m_logicalInterfaceNamesHasBeenSet = true;
121 m_logicalInterfaceNames = std::forward<LogicalInterfaceNamesT>(value);
122 }
123 template <typename LogicalInterfaceNamesT = Aws::Vector<Aws::String>>
124 InputAttachment& WithLogicalInterfaceNames(LogicalInterfaceNamesT&& value) {
125 SetLogicalInterfaceNames(std::forward<LogicalInterfaceNamesT>(value));
126 return *this;
127 }
128 template <typename LogicalInterfaceNamesT = Aws::String>
129 InputAttachment& AddLogicalInterfaceNames(LogicalInterfaceNamesT&& value) {
130 m_logicalInterfaceNamesHasBeenSet = true;
131 m_logicalInterfaceNames.emplace_back(std::forward<LogicalInterfaceNamesT>(value));
132 return *this;
133 }
135 private:
136 AutomaticInputFailoverSettings m_automaticInputFailoverSettings;
137
138 Aws::String m_inputAttachmentName;
139
140 Aws::String m_inputId;
141
142 InputSettings m_inputSettings;
143
144 Aws::Vector<Aws::String> m_logicalInterfaceNames;
145 bool m_automaticInputFailoverSettingsHasBeenSet = false;
146 bool m_inputAttachmentNameHasBeenSet = false;
147 bool m_inputIdHasBeenSet = false;
148 bool m_inputSettingsHasBeenSet = false;
149 bool m_logicalInterfaceNamesHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace MediaLive
154} // namespace Aws
AWS_MEDIALIVE_API InputAttachment(Aws::Utils::Json::JsonView jsonValue)
void SetLogicalInterfaceNames(LogicalInterfaceNamesT &&value)
InputAttachment & WithLogicalInterfaceNames(LogicalInterfaceNamesT &&value)
InputAttachment & WithInputAttachmentName(InputAttachmentNameT &&value)
AWS_MEDIALIVE_API InputAttachment()=default
void SetInputSettings(InputSettingsT &&value)
AWS_MEDIALIVE_API InputAttachment & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetInputAttachmentName(InputAttachmentNameT &&value)
InputAttachment & WithAutomaticInputFailoverSettings(AutomaticInputFailoverSettingsT &&value)
const AutomaticInputFailoverSettings & GetAutomaticInputFailoverSettings() const
const Aws::String & GetInputId() const
InputAttachment & WithInputSettings(InputSettingsT &&value)
void SetAutomaticInputFailoverSettings(AutomaticInputFailoverSettingsT &&value)
const Aws::Vector< Aws::String > & GetLogicalInterfaceNames() const
const InputSettings & GetInputSettings() const
InputAttachment & WithInputId(InputIdT &&value)
InputAttachment & AddLogicalInterfaceNames(LogicalInterfaceNamesT &&value)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetInputAttachmentName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue