AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateSdiSourceRequest.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/medialive/MediaLiveRequest.h>
9#include <aws/medialive/model/SdiSourceMode.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/medialive/model/SdiSourceType.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace MediaLive
19{
20namespace Model
21{
22
29 {
30 public:
31 AWS_MEDIALIVE_API CreateSdiSourceRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateSdiSource"; }
38
39 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
40
41
43
47 inline SdiSourceMode GetMode() const { return m_mode; }
48 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
49 inline void SetMode(SdiSourceMode value) { m_modeHasBeenSet = true; m_mode = value; }
50 inline CreateSdiSourceRequest& WithMode(SdiSourceMode value) { SetMode(value); return *this;}
52
54
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template<typename NameT = Aws::String>
62 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 CreateSdiSourceRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
72 inline const Aws::String& GetRequestId() const { return m_requestId; }
73 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
74 template<typename RequestIdT = Aws::String>
75 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
76 template<typename RequestIdT = Aws::String>
77 CreateSdiSourceRequest& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
79
81
84 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
85 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
86 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
87 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
88 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
89 CreateSdiSourceRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
90 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
91 CreateSdiSourceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
92 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
93 }
95
97
101 inline SdiSourceType GetType() const { return m_type; }
102 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
103 inline void SetType(SdiSourceType value) { m_typeHasBeenSet = true; m_type = value; }
104 inline CreateSdiSourceRequest& WithType(SdiSourceType value) { SetType(value); return *this;}
106 private:
107
109 bool m_modeHasBeenSet = false;
110
111 Aws::String m_name;
112 bool m_nameHasBeenSet = false;
113
115 bool m_requestIdHasBeenSet = true;
116
118 bool m_tagsHasBeenSet = false;
119
121 bool m_typeHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace MediaLive
126} // 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