AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
CreateContainerRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/mediastore/MediaStoreRequest.h>
10#include <aws/mediastore/MediaStore_EXPORTS.h>
11#include <aws/mediastore/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace MediaStore {
17namespace Model {
18
22 public:
23 AWS_MEDIASTORE_API CreateContainerRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateContainer"; }
30
31 AWS_MEDIASTORE_API Aws::String SerializePayload() const override;
32
34
36
42 inline const Aws::String& GetContainerName() const { return m_containerName; }
43 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
44 template <typename ContainerNameT = Aws::String>
45 void SetContainerName(ContainerNameT&& value) {
46 m_containerNameHasBeenSet = true;
47 m_containerName = std::forward<ContainerNameT>(value);
48 }
49 template <typename ContainerNameT = Aws::String>
50 CreateContainerRequest& WithContainerName(ContainerNameT&& value) {
51 SetContainerName(std::forward<ContainerNameT>(value));
52 return *this;
53 }
55
57
67 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
68 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
69 template <typename TagsT = Aws::Vector<Tag>>
70 void SetTags(TagsT&& value) {
71 m_tagsHasBeenSet = true;
72 m_tags = std::forward<TagsT>(value);
73 }
74 template <typename TagsT = Aws::Vector<Tag>>
76 SetTags(std::forward<TagsT>(value));
77 return *this;
78 }
79 template <typename TagsT = Tag>
81 m_tagsHasBeenSet = true;
82 m_tags.emplace_back(std::forward<TagsT>(value));
83 return *this;
84 }
86 private:
87 Aws::String m_containerName;
88
89 Aws::Vector<Tag> m_tags;
90 bool m_containerNameHasBeenSet = false;
91 bool m_tagsHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace MediaStore
96} // namespace Aws
AWS_MEDIASTORE_API CreateContainerRequest()=default
AWS_MEDIASTORE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_MEDIASTORE_API Aws::String SerializePayload() const override
CreateContainerRequest & WithTags(TagsT &&value)
CreateContainerRequest & AddTags(TagsT &&value)
CreateContainerRequest & WithContainerName(ContainerNameT &&value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector