AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
CreateSdiSourceRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/medialive/MediaLiveRequest.h>
11#include <aws/medialive/MediaLive_EXPORTS.h>
12#include <aws/medialive/model/SdiSourceMode.h>
13#include <aws/medialive/model/SdiSourceType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace MediaLive {
19namespace Model {
20
27 public:
28 AWS_MEDIALIVE_API CreateSdiSourceRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateSdiSource"; }
35
36 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
37
39
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
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetRequestId() const { return m_requestId; }
81 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
82 template <typename RequestIdT = Aws::String>
83 void SetRequestId(RequestIdT&& value) {
84 m_requestIdHasBeenSet = true;
85 m_requestId = std::forward<RequestIdT>(value);
86 }
87 template <typename RequestIdT = Aws::String>
89 SetRequestId(std::forward<RequestIdT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
99 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
100 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
101 void SetTags(TagsT&& value) {
102 m_tagsHasBeenSet = true;
103 m_tags = std::forward<TagsT>(value);
104 }
105 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
107 SetTags(std::forward<TagsT>(value));
108 return *this;
109 }
110 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
111 CreateSdiSourceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
112 m_tagsHasBeenSet = true;
113 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
114 return *this;
115 }
117
119
123 inline SdiSourceType GetType() const { return m_type; }
124 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
125 inline void SetType(SdiSourceType value) {
126 m_typeHasBeenSet = true;
127 m_type = value;
128 }
130 SetType(value);
131 return *this;
132 }
134 private:
136
137 Aws::String m_name;
138
140
142
144 bool m_modeHasBeenSet = false;
145 bool m_nameHasBeenSet = false;
146 bool m_requestIdHasBeenSet = true;
147 bool m_tagsHasBeenSet = false;
148 bool m_typeHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace MediaLive
153} // namespace Aws
CreateSdiSourceRequest & WithMode(SdiSourceMode value)
CreateSdiSourceRequest & WithName(NameT &&value)
CreateSdiSourceRequest & WithRequestId(RequestIdT &&value)
CreateSdiSourceRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateSdiSourceRequest & WithType(SdiSourceType value)
CreateSdiSourceRequest & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_MEDIALIVE_API CreateSdiSourceRequest()=default
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String