AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateNamespaceRequest.h
1
6#pragma once
7#include <aws/s3tables/S3Tables_EXPORTS.h>
8#include <aws/s3tables/S3TablesRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace S3Tables
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_S3TABLES_API CreateNamespaceRequest() = 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 "CreateNamespace"; }
32
33 AWS_S3TABLES_API Aws::String SerializePayload() const override;
34
35
37
41 inline const Aws::String& GetTableBucketARN() const { return m_tableBucketARN; }
42 inline bool TableBucketARNHasBeenSet() const { return m_tableBucketARNHasBeenSet; }
43 template<typename TableBucketARNT = Aws::String>
44 void SetTableBucketARN(TableBucketARNT&& value) { m_tableBucketARNHasBeenSet = true; m_tableBucketARN = std::forward<TableBucketARNT>(value); }
45 template<typename TableBucketARNT = Aws::String>
46 CreateNamespaceRequest& WithTableBucketARN(TableBucketARNT&& value) { SetTableBucketARN(std::forward<TableBucketARNT>(value)); return *this;}
48
50
53 inline const Aws::Vector<Aws::String>& GetNamespace() const { return m_namespace; }
54 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
55 template<typename NamespaceT = Aws::Vector<Aws::String>>
56 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
57 template<typename NamespaceT = Aws::Vector<Aws::String>>
58 CreateNamespaceRequest& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
59 template<typename NamespaceT = Aws::String>
60 CreateNamespaceRequest& AddNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace.emplace_back(std::forward<NamespaceT>(value)); return *this; }
62 private:
63
64 Aws::String m_tableBucketARN;
65 bool m_tableBucketARNHasBeenSet = false;
66
67 Aws::Vector<Aws::String> m_namespace;
68 bool m_namespaceHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace S3Tables
73} // 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