AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetKeyspaceName(const Aws::String& value) { m_keyspaceNameHasBeenSet = true; m_keyspaceName = value; }
47 inline void SetKeyspaceName(Aws::String&& value) { m_keyspaceNameHasBeenSet = true; m_keyspaceName = std::move(value); }
48 inline void SetKeyspaceName(const char* value) { m_keyspaceNameHasBeenSet = true; m_keyspaceName.assign(value); }
49 inline CreateKeyspaceRequest& WithKeyspaceName(const Aws::String& value) { SetKeyspaceName(value); return *this;}
50 inline CreateKeyspaceRequest& WithKeyspaceName(Aws::String&& value) { SetKeyspaceName(std::move(value)); return *this;}
51 inline CreateKeyspaceRequest& WithKeyspaceName(const char* value) { SetKeyspaceName(value); return *this;}
53
55
62 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
63 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
64 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
65 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
66 inline CreateKeyspaceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
67 inline CreateKeyspaceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
68 inline CreateKeyspaceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
69 inline CreateKeyspaceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
71
73
83 inline const ReplicationSpecification& GetReplicationSpecification() const{ return m_replicationSpecification; }
84 inline bool ReplicationSpecificationHasBeenSet() const { return m_replicationSpecificationHasBeenSet; }
85 inline void SetReplicationSpecification(const ReplicationSpecification& value) { m_replicationSpecificationHasBeenSet = true; m_replicationSpecification = value; }
86 inline void SetReplicationSpecification(ReplicationSpecification&& value) { m_replicationSpecificationHasBeenSet = true; m_replicationSpecification = std::move(value); }
90 private:
91
92 Aws::String m_keyspaceName;
93 bool m_keyspaceNameHasBeenSet = false;
94
95 Aws::Vector<Tag> m_tags;
96 bool m_tagsHasBeenSet = false;
97
98 ReplicationSpecification m_replicationSpecification;
99 bool m_replicationSpecificationHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace Keyspaces
104} // namespace Aws
CreateKeyspaceRequest & WithReplicationSpecification(const ReplicationSpecification &value)
CreateKeyspaceRequest & AddTags(const Tag &value)
AWS_KEYSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetReplicationSpecification(ReplicationSpecification &&value)
CreateKeyspaceRequest & WithReplicationSpecification(ReplicationSpecification &&value)
virtual const char * GetServiceRequestName() const override
CreateKeyspaceRequest & WithKeyspaceName(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
CreateKeyspaceRequest & WithTags(Aws::Vector< Tag > &&value)
void SetReplicationSpecification(const ReplicationSpecification &value)
CreateKeyspaceRequest & AddTags(Tag &&value)
const ReplicationSpecification & GetReplicationSpecification() const
CreateKeyspaceRequest & WithKeyspaceName(const Aws::String &value)
CreateKeyspaceRequest & WithTags(const Aws::Vector< Tag > &value)
AWS_KEYSPACES_API Aws::String SerializePayload() const override
const Aws::Vector< Tag > & GetTags() const
CreateKeyspaceRequest & WithKeyspaceName(const char *value)
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