AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateChannelRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mediapackage/MediaPackageRequest.h>
10#include <aws/mediapackage/MediaPackage_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace MediaPackage {
16namespace Model {
17
24 public:
25 AWS_MEDIAPACKAGE_API CreateChannelRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateChannel"; }
32
33 AWS_MEDIAPACKAGE_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetDescription() const { return m_description; }
40 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
41 template <typename DescriptionT = Aws::String>
42 void SetDescription(DescriptionT&& value) {
43 m_descriptionHasBeenSet = true;
44 m_description = std::forward<DescriptionT>(value);
45 }
46 template <typename DescriptionT = Aws::String>
47 CreateChannelRequest& WithDescription(DescriptionT&& value) {
48 SetDescription(std::forward<DescriptionT>(value));
49 return *this;
50 }
52
54
60 inline const Aws::String& GetId() const { return m_id; }
61 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
62 template <typename IdT = Aws::String>
63 void SetId(IdT&& value) {
64 m_idHasBeenSet = true;
65 m_id = std::forward<IdT>(value);
66 }
67 template <typename IdT = Aws::String>
69 SetId(std::forward<IdT>(value));
70 return *this;
71 }
73
75
76 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
77 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
78 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
79 void SetTags(TagsT&& value) {
80 m_tagsHasBeenSet = true;
81 m_tags = std::forward<TagsT>(value);
82 }
83 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
85 SetTags(std::forward<TagsT>(value));
86 return *this;
87 }
88 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
89 CreateChannelRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
90 m_tagsHasBeenSet = true;
91 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_description;
97
98 Aws::String m_id;
99
101 bool m_descriptionHasBeenSet = false;
102 bool m_idHasBeenSet = false;
103 bool m_tagsHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace MediaPackage
108} // namespace Aws
CreateChannelRequest & WithTags(TagsT &&value)
CreateChannelRequest & WithId(IdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
virtual const char * GetServiceRequestName() const override
CreateChannelRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_MEDIAPACKAGE_API Aws::String SerializePayload() const override
CreateChannelRequest & WithDescription(DescriptionT &&value)
AWS_MEDIAPACKAGE_API CreateChannelRequest()=default
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