AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateContainerRequest.h
1
6#pragma once
7#include <aws/mediastore/MediaStore_EXPORTS.h>
8#include <aws/mediastore/MediaStoreRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/mediastore/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace MediaStore
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_MEDIASTORE_API CreateContainerRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateContainer"; }
33
34 AWS_MEDIASTORE_API Aws::String SerializePayload() const override;
35
37
38
40
46 inline const Aws::String& GetContainerName() const { return m_containerName; }
47 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
48 template<typename ContainerNameT = Aws::String>
49 void SetContainerName(ContainerNameT&& value) { m_containerNameHasBeenSet = true; m_containerName = std::forward<ContainerNameT>(value); }
50 template<typename ContainerNameT = Aws::String>
51 CreateContainerRequest& WithContainerName(ContainerNameT&& value) { SetContainerName(std::forward<ContainerNameT>(value)); return *this;}
53
55
65 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
66 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
67 template<typename TagsT = Aws::Vector<Tag>>
68 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
69 template<typename TagsT = Aws::Vector<Tag>>
70 CreateContainerRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
71 template<typename TagsT = Tag>
72 CreateContainerRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
74 private:
75
76 Aws::String m_containerName;
77 bool m_containerNameHasBeenSet = false;
78
79 Aws::Vector<Tag> m_tags;
80 bool m_tagsHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace MediaStore
85} // 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