AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
RegisterNamespaceRequest.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/redshift/RedshiftRequest.h>
10#include <aws/redshift/Redshift_EXPORTS.h>
11#include <aws/redshift/model/NamespaceIdentifierUnion.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Redshift {
17namespace Model {
18
22 public:
23 AWS_REDSHIFT_API RegisterNamespaceRequest() = 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 "RegisterNamespace"; }
30
31 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
42 inline const NamespaceIdentifierUnion& GetNamespaceIdentifier() const { return m_namespaceIdentifier; }
43 inline bool NamespaceIdentifierHasBeenSet() const { return m_namespaceIdentifierHasBeenSet; }
44 template <typename NamespaceIdentifierT = NamespaceIdentifierUnion>
45 void SetNamespaceIdentifier(NamespaceIdentifierT&& value) {
46 m_namespaceIdentifierHasBeenSet = true;
47 m_namespaceIdentifier = std::forward<NamespaceIdentifierT>(value);
48 }
49 template <typename NamespaceIdentifierT = NamespaceIdentifierUnion>
50 RegisterNamespaceRequest& WithNamespaceIdentifier(NamespaceIdentifierT&& value) {
51 SetNamespaceIdentifier(std::forward<NamespaceIdentifierT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::Vector<Aws::String>& GetConsumerIdentifiers() const { return m_consumerIdentifiers; }
62 inline bool ConsumerIdentifiersHasBeenSet() const { return m_consumerIdentifiersHasBeenSet; }
63 template <typename ConsumerIdentifiersT = Aws::Vector<Aws::String>>
64 void SetConsumerIdentifiers(ConsumerIdentifiersT&& value) {
65 m_consumerIdentifiersHasBeenSet = true;
66 m_consumerIdentifiers = std::forward<ConsumerIdentifiersT>(value);
67 }
68 template <typename ConsumerIdentifiersT = Aws::Vector<Aws::String>>
69 RegisterNamespaceRequest& WithConsumerIdentifiers(ConsumerIdentifiersT&& value) {
70 SetConsumerIdentifiers(std::forward<ConsumerIdentifiersT>(value));
71 return *this;
72 }
73 template <typename ConsumerIdentifiersT = Aws::String>
74 RegisterNamespaceRequest& AddConsumerIdentifiers(ConsumerIdentifiersT&& value) {
75 m_consumerIdentifiersHasBeenSet = true;
76 m_consumerIdentifiers.emplace_back(std::forward<ConsumerIdentifiersT>(value));
77 return *this;
78 }
80 private:
81 NamespaceIdentifierUnion m_namespaceIdentifier;
82
83 Aws::Vector<Aws::String> m_consumerIdentifiers;
84 bool m_namespaceIdentifierHasBeenSet = false;
85 bool m_consumerIdentifiersHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace Redshift
90} // namespace Aws
virtual const char * GetServiceRequestName() const override
RegisterNamespaceRequest & WithConsumerIdentifiers(ConsumerIdentifiersT &&value)
RegisterNamespaceRequest & AddConsumerIdentifiers(ConsumerIdentifiersT &&value)
const NamespaceIdentifierUnion & GetNamespaceIdentifier() const
const Aws::Vector< Aws::String > & GetConsumerIdentifiers() const
void SetNamespaceIdentifier(NamespaceIdentifierT &&value)
void SetConsumerIdentifiers(ConsumerIdentifiersT &&value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
AWS_REDSHIFT_API RegisterNamespaceRequest()=default
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
RegisterNamespaceRequest & WithNamespaceIdentifier(NamespaceIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector