AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateNamespaceRequest.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/s3tables/S3TablesRequest.h>
10#include <aws/s3tables/S3Tables_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace S3Tables {
16namespace Model {
17
21 public:
22 AWS_S3TABLES_API CreateNamespaceRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateNamespace"; }
29
30 AWS_S3TABLES_API Aws::String SerializePayload() const override;
31
33
37 inline const Aws::String& GetTableBucketARN() const { return m_tableBucketARN; }
38 inline bool TableBucketARNHasBeenSet() const { return m_tableBucketARNHasBeenSet; }
39 template <typename TableBucketARNT = Aws::String>
40 void SetTableBucketARN(TableBucketARNT&& value) {
41 m_tableBucketARNHasBeenSet = true;
42 m_tableBucketARN = std::forward<TableBucketARNT>(value);
43 }
44 template <typename TableBucketARNT = Aws::String>
45 CreateNamespaceRequest& WithTableBucketARN(TableBucketARNT&& value) {
46 SetTableBucketARN(std::forward<TableBucketARNT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::Vector<Aws::String>& GetNamespace() const { return m_namespace; }
56 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
57 template <typename NamespaceT = Aws::Vector<Aws::String>>
58 void SetNamespace(NamespaceT&& value) {
59 m_namespaceHasBeenSet = true;
60 m_namespace = std::forward<NamespaceT>(value);
61 }
62 template <typename NamespaceT = Aws::Vector<Aws::String>>
64 SetNamespace(std::forward<NamespaceT>(value));
65 return *this;
66 }
67 template <typename NamespaceT = Aws::String>
68 CreateNamespaceRequest& AddNamespace(NamespaceT&& value) {
69 m_namespaceHasBeenSet = true;
70 m_namespace.emplace_back(std::forward<NamespaceT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_tableBucketARN;
76
77 Aws::Vector<Aws::String> m_namespace;
78 bool m_tableBucketARNHasBeenSet = false;
79 bool m_namespaceHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace S3Tables
84} // namespace Aws
CreateNamespaceRequest & WithNamespace(NamespaceT &&value)
AWS_S3TABLES_API Aws::String SerializePayload() const override
AWS_S3TABLES_API CreateNamespaceRequest()=default
CreateNamespaceRequest & AddNamespace(NamespaceT &&value)
CreateNamespaceRequest & WithTableBucketARN(TableBucketARNT &&value)
const Aws::Vector< Aws::String > & GetNamespace() const
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector