AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
RegisterSourceEndpointRequest.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/mediaconnect/MediaConnectRequest.h>
11#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
12#include <aws/mediaconnect/model/SourceEndpointConfiguration.h>
13
14#include <utility>
15
16namespace Aws {
17namespace MediaConnect {
18namespace Model {
19
23 public:
24 AWS_MEDIACONNECT_API RegisterSourceEndpointRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "RegisterSourceEndpoint"; }
31
32 AWS_MEDIACONNECT_API Aws::String SerializePayload() const override;
33
35
39 inline const Aws::String& GetRegionName() const { return m_regionName; }
40 inline bool RegionNameHasBeenSet() const { return m_regionNameHasBeenSet; }
41 template <typename RegionNameT = Aws::String>
42 void SetRegionName(RegionNameT&& value) {
43 m_regionNameHasBeenSet = true;
44 m_regionName = std::forward<RegionNameT>(value);
45 }
46 template <typename RegionNameT = Aws::String>
48 SetRegionName(std::forward<RegionNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
75 inline const SourceEndpointConfiguration& GetConfiguration() const { return m_configuration; }
76 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
77 template <typename ConfigurationT = SourceEndpointConfiguration>
78 void SetConfiguration(ConfigurationT&& value) {
79 m_configurationHasBeenSet = true;
80 m_configuration = std::forward<ConfigurationT>(value);
81 }
82 template <typename ConfigurationT = SourceEndpointConfiguration>
84 SetConfiguration(std::forward<ConfigurationT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
94 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
95 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
96 void SetTags(TagsT&& value) {
97 m_tagsHasBeenSet = true;
98 m_tags = std::forward<TagsT>(value);
99 }
100 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
102 SetTags(std::forward<TagsT>(value));
103 return *this;
104 }
105 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
106 RegisterSourceEndpointRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
107 m_tagsHasBeenSet = true;
108 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
109 return *this;
110 }
112
114
119 inline const Aws::String& GetClientToken() const { return m_clientToken; }
120 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
121 template <typename ClientTokenT = Aws::String>
122 void SetClientToken(ClientTokenT&& value) {
123 m_clientTokenHasBeenSet = true;
124 m_clientToken = std::forward<ClientTokenT>(value);
125 }
126 template <typename ClientTokenT = Aws::String>
128 SetClientToken(std::forward<ClientTokenT>(value));
129 return *this;
130 }
132 private:
133 Aws::String m_regionName;
134
135 Aws::String m_description;
136
137 SourceEndpointConfiguration m_configuration;
138
140
142 bool m_regionNameHasBeenSet = false;
143 bool m_descriptionHasBeenSet = false;
144 bool m_configurationHasBeenSet = false;
145 bool m_tagsHasBeenSet = false;
146 bool m_clientTokenHasBeenSet = true;
147};
148
149} // namespace Model
150} // namespace MediaConnect
151} // namespace Aws
AWS_MEDIACONNECT_API RegisterSourceEndpointRequest()=default
AWS_MEDIACONNECT_API Aws::String SerializePayload() const override
RegisterSourceEndpointRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
RegisterSourceEndpointRequest & WithClientToken(ClientTokenT &&value)
RegisterSourceEndpointRequest & WithDescription(DescriptionT &&value)
RegisterSourceEndpointRequest & WithRegionName(RegionNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
RegisterSourceEndpointRequest & WithConfiguration(ConfigurationT &&value)
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