AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateDBShardGroupRequest.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/rds/RDSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/rds/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace RDS
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateDBShardGroup"; }
33
34 AWS_RDS_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
45 inline const Aws::String& GetDBShardGroupIdentifier() const{ return m_dBShardGroupIdentifier; }
46 inline bool DBShardGroupIdentifierHasBeenSet() const { return m_dBShardGroupIdentifierHasBeenSet; }
47 inline void SetDBShardGroupIdentifier(const Aws::String& value) { m_dBShardGroupIdentifierHasBeenSet = true; m_dBShardGroupIdentifier = value; }
48 inline void SetDBShardGroupIdentifier(Aws::String&& value) { m_dBShardGroupIdentifierHasBeenSet = true; m_dBShardGroupIdentifier = std::move(value); }
49 inline void SetDBShardGroupIdentifier(const char* value) { m_dBShardGroupIdentifierHasBeenSet = true; m_dBShardGroupIdentifier.assign(value); }
52 inline CreateDBShardGroupRequest& WithDBShardGroupIdentifier(const char* value) { SetDBShardGroupIdentifier(value); return *this;}
54
56
59 inline const Aws::String& GetDBClusterIdentifier() const{ return m_dBClusterIdentifier; }
60 inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; }
61 inline void SetDBClusterIdentifier(const Aws::String& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = value; }
62 inline void SetDBClusterIdentifier(Aws::String&& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = std::move(value); }
63 inline void SetDBClusterIdentifier(const char* value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier.assign(value); }
65 inline CreateDBShardGroupRequest& WithDBClusterIdentifier(Aws::String&& value) { SetDBClusterIdentifier(std::move(value)); return *this;}
66 inline CreateDBShardGroupRequest& WithDBClusterIdentifier(const char* value) { SetDBClusterIdentifier(value); return *this;}
68
70
78 inline int GetComputeRedundancy() const{ return m_computeRedundancy; }
79 inline bool ComputeRedundancyHasBeenSet() const { return m_computeRedundancyHasBeenSet; }
80 inline void SetComputeRedundancy(int value) { m_computeRedundancyHasBeenSet = true; m_computeRedundancy = value; }
81 inline CreateDBShardGroupRequest& WithComputeRedundancy(int value) { SetComputeRedundancy(value); return *this;}
83
85
89 inline double GetMaxACU() const{ return m_maxACU; }
90 inline bool MaxACUHasBeenSet() const { return m_maxACUHasBeenSet; }
91 inline void SetMaxACU(double value) { m_maxACUHasBeenSet = true; m_maxACU = value; }
92 inline CreateDBShardGroupRequest& WithMaxACU(double value) { SetMaxACU(value); return *this;}
94
96
100 inline double GetMinACU() const{ return m_minACU; }
101 inline bool MinACUHasBeenSet() const { return m_minACUHasBeenSet; }
102 inline void SetMinACU(double value) { m_minACUHasBeenSet = true; m_minACU = value; }
103 inline CreateDBShardGroupRequest& WithMinACU(double value) { SetMinACU(value); return *this;}
105
107
130 inline bool GetPubliclyAccessible() const{ return m_publiclyAccessible; }
131 inline bool PubliclyAccessibleHasBeenSet() const { return m_publiclyAccessibleHasBeenSet; }
132 inline void SetPubliclyAccessible(bool value) { m_publiclyAccessibleHasBeenSet = true; m_publiclyAccessible = value; }
133 inline CreateDBShardGroupRequest& WithPubliclyAccessible(bool value) { SetPubliclyAccessible(value); return *this;}
135
137
138 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
139 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
140 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
141 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
142 inline CreateDBShardGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
143 inline CreateDBShardGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
144 inline CreateDBShardGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
145 inline CreateDBShardGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
147 private:
148
149 Aws::String m_dBShardGroupIdentifier;
150 bool m_dBShardGroupIdentifierHasBeenSet = false;
151
152 Aws::String m_dBClusterIdentifier;
153 bool m_dBClusterIdentifierHasBeenSet = false;
154
155 int m_computeRedundancy;
156 bool m_computeRedundancyHasBeenSet = false;
157
158 double m_maxACU;
159 bool m_maxACUHasBeenSet = false;
160
161 double m_minACU;
162 bool m_minACUHasBeenSet = false;
163
164 bool m_publiclyAccessible;
165 bool m_publiclyAccessibleHasBeenSet = false;
166
167 Aws::Vector<Tag> m_tags;
168 bool m_tagsHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace RDS
173} // namespace Aws
CreateDBShardGroupRequest & WithTags(const Aws::Vector< Tag > &value)
CreateDBShardGroupRequest & WithMinACU(double value)
CreateDBShardGroupRequest & WithDBClusterIdentifier(const Aws::String &value)
CreateDBShardGroupRequest & WithTags(Aws::Vector< Tag > &&value)
void SetDBClusterIdentifier(const Aws::String &value)
CreateDBShardGroupRequest & AddTags(const Tag &value)
void SetTags(const Aws::Vector< Tag > &value)
CreateDBShardGroupRequest & WithPubliclyAccessible(bool value)
CreateDBShardGroupRequest & AddTags(Tag &&value)
CreateDBShardGroupRequest & WithDBShardGroupIdentifier(const Aws::String &value)
void SetDBShardGroupIdentifier(const Aws::String &value)
CreateDBShardGroupRequest & WithComputeRedundancy(int value)
CreateDBShardGroupRequest & WithDBClusterIdentifier(const char *value)
CreateDBShardGroupRequest & WithMaxACU(double value)
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateDBShardGroupRequest & WithDBClusterIdentifier(Aws::String &&value)
CreateDBShardGroupRequest & WithDBShardGroupIdentifier(const char *value)
AWS_RDS_API Aws::String SerializePayload() const override
CreateDBShardGroupRequest & WithDBShardGroupIdentifier(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector