AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/quicksight/QuickSightRequest.h>
10#include <aws/quicksight/QuickSight_EXPORTS.h>
11#include <aws/quicksight/model/IdentityStore.h>
12#include <aws/quicksight/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace QuickSight {
18namespace Model {
19
23 public:
24 AWS_QUICKSIGHT_API CreateNamespaceRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateNamespace"; }
31
32 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
33
35
39 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
40 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
41 template <typename AwsAccountIdT = Aws::String>
42 void SetAwsAccountId(AwsAccountIdT&& value) {
43 m_awsAccountIdHasBeenSet = true;
44 m_awsAccountId = std::forward<AwsAccountIdT>(value);
45 }
46 template <typename AwsAccountIdT = Aws::String>
47 CreateNamespaceRequest& WithAwsAccountId(AwsAccountIdT&& value) {
48 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetNamespace() const { return m_namespace; }
58 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
59 template <typename NamespaceT = Aws::String>
60 void SetNamespace(NamespaceT&& value) {
61 m_namespaceHasBeenSet = true;
62 m_namespace = std::forward<NamespaceT>(value);
63 }
64 template <typename NamespaceT = Aws::String>
66 SetNamespace(std::forward<NamespaceT>(value));
67 return *this;
68 }
70
72
76 inline IdentityStore GetIdentityStore() const { return m_identityStore; }
77 inline bool IdentityStoreHasBeenSet() const { return m_identityStoreHasBeenSet; }
78 inline void SetIdentityStore(IdentityStore value) {
79 m_identityStoreHasBeenSet = true;
80 m_identityStore = value;
81 }
83 SetIdentityStore(value);
84 return *this;
85 }
87
89
93 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
94 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
95 template <typename TagsT = Aws::Vector<Tag>>
96 void SetTags(TagsT&& value) {
97 m_tagsHasBeenSet = true;
98 m_tags = std::forward<TagsT>(value);
99 }
100 template <typename TagsT = Aws::Vector<Tag>>
102 SetTags(std::forward<TagsT>(value));
103 return *this;
104 }
105 template <typename TagsT = Tag>
107 m_tagsHasBeenSet = true;
108 m_tags.emplace_back(std::forward<TagsT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_awsAccountId;
114
115 Aws::String m_namespace;
116
117 IdentityStore m_identityStore{IdentityStore::NOT_SET};
118
119 Aws::Vector<Tag> m_tags;
120 bool m_awsAccountIdHasBeenSet = false;
121 bool m_namespaceHasBeenSet = false;
122 bool m_identityStoreHasBeenSet = false;
123 bool m_tagsHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace QuickSight
128} // namespace Aws
CreateNamespaceRequest & WithAwsAccountId(AwsAccountIdT &&value)
CreateNamespaceRequest & WithTags(TagsT &&value)
AWS_QUICKSIGHT_API CreateNamespaceRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
CreateNamespaceRequest & WithIdentityStore(IdentityStore value)
CreateNamespaceRequest & WithNamespace(NamespaceT &&value)
CreateNamespaceRequest & AddTags(TagsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector