AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateKeyspaceRequest.h
1
6#pragma once
7#include <aws/keyspaces/Keyspaces_EXPORTS.h>
8#include <aws/keyspaces/KeyspacesRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/keyspaces/model/ReplicationSpecification.h>
12#include <aws/keyspaces/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Keyspaces
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_KEYSPACES_API CreateKeyspaceRequest() = 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 "CreateKeyspace"; }
34
35 AWS_KEYSPACES_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetKeyspaceName() const { return m_keyspaceName; }
45 inline bool KeyspaceNameHasBeenSet() const { return m_keyspaceNameHasBeenSet; }
46 template<typename KeyspaceNameT = Aws::String>
47 void SetKeyspaceName(KeyspaceNameT&& value) { m_keyspaceNameHasBeenSet = true; m_keyspaceName = std::forward<KeyspaceNameT>(value); }
48 template<typename KeyspaceNameT = Aws::String>
49 CreateKeyspaceRequest& WithKeyspaceName(KeyspaceNameT&& value) { SetKeyspaceName(std::forward<KeyspaceNameT>(value)); return *this;}
51
53
60 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
61 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
62 template<typename TagsT = Aws::Vector<Tag>>
63 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
64 template<typename TagsT = Aws::Vector<Tag>>
65 CreateKeyspaceRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
66 template<typename TagsT = Tag>
67 CreateKeyspaceRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
69
71
80 inline const ReplicationSpecification& GetReplicationSpecification() const { return m_replicationSpecification; }
81 inline bool ReplicationSpecificationHasBeenSet() const { return m_replicationSpecificationHasBeenSet; }
82 template<typename ReplicationSpecificationT = ReplicationSpecification>
83 void SetReplicationSpecification(ReplicationSpecificationT&& value) { m_replicationSpecificationHasBeenSet = true; m_replicationSpecification = std::forward<ReplicationSpecificationT>(value); }
84 template<typename ReplicationSpecificationT = ReplicationSpecification>
85 CreateKeyspaceRequest& WithReplicationSpecification(ReplicationSpecificationT&& value) { SetReplicationSpecification(std::forward<ReplicationSpecificationT>(value)); return *this;}
87 private:
88
89 Aws::String m_keyspaceName;
90 bool m_keyspaceNameHasBeenSet = false;
91
92 Aws::Vector<Tag> m_tags;
93 bool m_tagsHasBeenSet = false;
94
95 ReplicationSpecification m_replicationSpecification;
96 bool m_replicationSpecificationHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace Keyspaces
101} // namespace Aws
AWS_KEYSPACES_API CreateKeyspaceRequest()=default
void SetReplicationSpecification(ReplicationSpecificationT &&value)
AWS_KEYSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
CreateKeyspaceRequest & WithKeyspaceName(KeyspaceNameT &&value)
CreateKeyspaceRequest & AddTags(TagsT &&value)
CreateKeyspaceRequest & WithReplicationSpecification(ReplicationSpecificationT &&value)
const ReplicationSpecification & GetReplicationSpecification() const
AWS_KEYSPACES_API Aws::String SerializePayload() const override
CreateKeyspaceRequest & WithTags(TagsT &&value)
const Aws::Vector< Tag > & GetTags() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector