AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
UpdateSdiSourceRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/medialive/MediaLiveRequest.h>
9#include <aws/medialive/MediaLive_EXPORTS.h>
10#include <aws/medialive/model/SdiSourceMode.h>
11#include <aws/medialive/model/SdiSourceType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace MediaLive {
17namespace Model {
18
25 public:
26 AWS_MEDIALIVE_API UpdateSdiSourceRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateSdiSource"; }
33
34 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
35
37
43 inline SdiSourceMode GetMode() const { return m_mode; }
44 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
45 inline void SetMode(SdiSourceMode value) {
46 m_modeHasBeenSet = true;
47 m_mode = value;
48 }
50 SetMode(value);
51 return *this;
52 }
54
56
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template <typename NameT = Aws::String>
65 void SetName(NameT&& value) {
66 m_nameHasBeenSet = true;
67 m_name = std::forward<NameT>(value);
68 }
69 template <typename NameT = Aws::String>
71 SetName(std::forward<NameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetSdiSourceId() const { return m_sdiSourceId; }
81 inline bool SdiSourceIdHasBeenSet() const { return m_sdiSourceIdHasBeenSet; }
82 template <typename SdiSourceIdT = Aws::String>
83 void SetSdiSourceId(SdiSourceIdT&& value) {
84 m_sdiSourceIdHasBeenSet = true;
85 m_sdiSourceId = std::forward<SdiSourceIdT>(value);
86 }
87 template <typename SdiSourceIdT = Aws::String>
88 UpdateSdiSourceRequest& WithSdiSourceId(SdiSourceIdT&& value) {
89 SetSdiSourceId(std::forward<SdiSourceIdT>(value));
90 return *this;
91 }
93
95
100 inline SdiSourceType GetType() const { return m_type; }
101 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
102 inline void SetType(SdiSourceType value) {
103 m_typeHasBeenSet = true;
104 m_type = value;
105 }
107 SetType(value);
108 return *this;
109 }
111 private:
113
114 Aws::String m_name;
115
116 Aws::String m_sdiSourceId;
117
119 bool m_modeHasBeenSet = false;
120 bool m_nameHasBeenSet = false;
121 bool m_sdiSourceIdHasBeenSet = false;
122 bool m_typeHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace MediaLive
127} // namespace Aws
UpdateSdiSourceRequest & WithSdiSourceId(SdiSourceIdT &&value)
virtual const char * GetServiceRequestName() const override
UpdateSdiSourceRequest & WithName(NameT &&value)
UpdateSdiSourceRequest & WithMode(SdiSourceMode value)
UpdateSdiSourceRequest & WithType(SdiSourceType value)
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
AWS_MEDIALIVE_API UpdateSdiSourceRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String