AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
CreatePackagingGroupRequest.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-vod/MediaPackageVodRequest.h>
10#include <aws/mediapackage-vod/MediaPackageVod_EXPORTS.h>
11#include <aws/mediapackage-vod/model/Authorization.h>
12#include <aws/mediapackage-vod/model/EgressAccessLogs.h>
13
14#include <utility>
15
16namespace Aws {
17namespace MediaPackageVod {
18namespace Model {
19
27 public:
28 AWS_MEDIAPACKAGEVOD_API CreatePackagingGroupRequest() = 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 "CreatePackagingGroup"; }
35
36 AWS_MEDIAPACKAGEVOD_API Aws::String SerializePayload() const override;
37
39
40 inline const Authorization& GetAuthorization() const { return m_authorization; }
41 inline bool AuthorizationHasBeenSet() const { return m_authorizationHasBeenSet; }
42 template <typename AuthorizationT = Authorization>
43 void SetAuthorization(AuthorizationT&& value) {
44 m_authorizationHasBeenSet = true;
45 m_authorization = std::forward<AuthorizationT>(value);
46 }
47 template <typename AuthorizationT = Authorization>
49 SetAuthorization(std::forward<AuthorizationT>(value));
50 return *this;
51 }
53
55
56 inline const EgressAccessLogs& GetEgressAccessLogs() const { return m_egressAccessLogs; }
57 inline bool EgressAccessLogsHasBeenSet() const { return m_egressAccessLogsHasBeenSet; }
58 template <typename EgressAccessLogsT = EgressAccessLogs>
59 void SetEgressAccessLogs(EgressAccessLogsT&& value) {
60 m_egressAccessLogsHasBeenSet = true;
61 m_egressAccessLogs = std::forward<EgressAccessLogsT>(value);
62 }
63 template <typename EgressAccessLogsT = EgressAccessLogs>
65 SetEgressAccessLogs(std::forward<EgressAccessLogsT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetId() const { return m_id; }
75 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
76 template <typename IdT = Aws::String>
77 void SetId(IdT&& value) {
78 m_idHasBeenSet = true;
79 m_id = std::forward<IdT>(value);
80 }
81 template <typename IdT = Aws::String>
83 SetId(std::forward<IdT>(value));
84 return *this;
85 }
87
89
90 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
91 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
92 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
93 void SetTags(TagsT&& value) {
94 m_tagsHasBeenSet = true;
95 m_tags = std::forward<TagsT>(value);
96 }
97 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
99 SetTags(std::forward<TagsT>(value));
100 return *this;
101 }
102 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
103 CreatePackagingGroupRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
104 m_tagsHasBeenSet = true;
105 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
106 return *this;
107 }
109 private:
110 Authorization m_authorization;
111
112 EgressAccessLogs m_egressAccessLogs;
113
114 Aws::String m_id;
115
117 bool m_authorizationHasBeenSet = false;
118 bool m_egressAccessLogsHasBeenSet = false;
119 bool m_idHasBeenSet = false;
120 bool m_tagsHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace MediaPackageVod
125} // namespace Aws
AWS_MEDIAPACKAGEVOD_API CreatePackagingGroupRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreatePackagingGroupRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_MEDIAPACKAGEVOD_API Aws::String SerializePayload() const override
CreatePackagingGroupRequest & WithEgressAccessLogs(EgressAccessLogsT &&value)
CreatePackagingGroupRequest & WithAuthorization(AuthorizationT &&value)
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