AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateClusterRequest.h
1
6#pragma once
7#include <aws/dsql/DSQL_EXPORTS.h>
8#include <aws/dsql/DSQLRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/dsql/model/MultiRegionProperties.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace DSQL
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_DSQL_API CreateClusterRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateCluster"; }
34
35 AWS_DSQL_API Aws::String SerializePayload() const override;
36
37
39
43 inline bool GetDeletionProtectionEnabled() const { return m_deletionProtectionEnabled; }
44 inline bool DeletionProtectionEnabledHasBeenSet() const { return m_deletionProtectionEnabledHasBeenSet; }
45 inline void SetDeletionProtectionEnabled(bool value) { m_deletionProtectionEnabledHasBeenSet = true; m_deletionProtectionEnabled = value; }
48
50
55 inline const Aws::String& GetKmsEncryptionKey() const { return m_kmsEncryptionKey; }
56 inline bool KmsEncryptionKeyHasBeenSet() const { return m_kmsEncryptionKeyHasBeenSet; }
57 template<typename KmsEncryptionKeyT = Aws::String>
58 void SetKmsEncryptionKey(KmsEncryptionKeyT&& value) { m_kmsEncryptionKeyHasBeenSet = true; m_kmsEncryptionKey = std::forward<KmsEncryptionKeyT>(value); }
59 template<typename KmsEncryptionKeyT = Aws::String>
60 CreateClusterRequest& WithKmsEncryptionKey(KmsEncryptionKeyT&& value) { SetKmsEncryptionKey(std::forward<KmsEncryptionKeyT>(value)); return *this;}
62
64
67 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
68 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
69 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
70 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
71 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
72 CreateClusterRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
73 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
74 CreateClusterRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
75 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
76 }
78
80
89 inline const Aws::String& GetClientToken() const { return m_clientToken; }
90 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
91 template<typename ClientTokenT = Aws::String>
92 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
93 template<typename ClientTokenT = Aws::String>
94 CreateClusterRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
96
98
102 inline const MultiRegionProperties& GetMultiRegionProperties() const { return m_multiRegionProperties; }
103 inline bool MultiRegionPropertiesHasBeenSet() const { return m_multiRegionPropertiesHasBeenSet; }
104 template<typename MultiRegionPropertiesT = MultiRegionProperties>
105 void SetMultiRegionProperties(MultiRegionPropertiesT&& value) { m_multiRegionPropertiesHasBeenSet = true; m_multiRegionProperties = std::forward<MultiRegionPropertiesT>(value); }
106 template<typename MultiRegionPropertiesT = MultiRegionProperties>
107 CreateClusterRequest& WithMultiRegionProperties(MultiRegionPropertiesT&& value) { SetMultiRegionProperties(std::forward<MultiRegionPropertiesT>(value)); return *this;}
109 private:
110
111 bool m_deletionProtectionEnabled{false};
112 bool m_deletionProtectionEnabledHasBeenSet = false;
113
114 Aws::String m_kmsEncryptionKey;
115 bool m_kmsEncryptionKeyHasBeenSet = false;
116
118 bool m_tagsHasBeenSet = false;
119
121 bool m_clientTokenHasBeenSet = true;
122
123 MultiRegionProperties m_multiRegionProperties;
124 bool m_multiRegionPropertiesHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace DSQL
129} // namespace Aws
const Aws::String & GetClientToken() const
AWS_DSQL_API CreateClusterRequest()=default
CreateClusterRequest & WithClientToken(ClientTokenT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetKmsEncryptionKey() const
AWS_DSQL_API Aws::String SerializePayload() const override
CreateClusterRequest & WithDeletionProtectionEnabled(bool value)
const MultiRegionProperties & GetMultiRegionProperties() const
CreateClusterRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateClusterRequest & WithKmsEncryptionKey(KmsEncryptionKeyT &&value)
void SetMultiRegionProperties(MultiRegionPropertiesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateClusterRequest & WithMultiRegionProperties(MultiRegionPropertiesT &&value)
CreateClusterRequest & WithTags(TagsT &&value)
void SetKmsEncryptionKey(KmsEncryptionKeyT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String