AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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:
26 AWS_RDS_API CreateDBShardGroupRequest() = default;
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 template<typename DBShardGroupIdentifierT = Aws::String>
48 void SetDBShardGroupIdentifier(DBShardGroupIdentifierT&& value) { m_dBShardGroupIdentifierHasBeenSet = true; m_dBShardGroupIdentifier = std::forward<DBShardGroupIdentifierT>(value); }
49 template<typename DBShardGroupIdentifierT = Aws::String>
50 CreateDBShardGroupRequest& WithDBShardGroupIdentifier(DBShardGroupIdentifierT&& value) { SetDBShardGroupIdentifier(std::forward<DBShardGroupIdentifierT>(value)); return *this;}
52
54
57 inline const Aws::String& GetDBClusterIdentifier() const { return m_dBClusterIdentifier; }
58 inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; }
59 template<typename DBClusterIdentifierT = Aws::String>
60 void SetDBClusterIdentifier(DBClusterIdentifierT&& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = std::forward<DBClusterIdentifierT>(value); }
61 template<typename DBClusterIdentifierT = Aws::String>
62 CreateDBShardGroupRequest& WithDBClusterIdentifier(DBClusterIdentifierT&& value) { SetDBClusterIdentifier(std::forward<DBClusterIdentifierT>(value)); return *this;}
64
66
75 inline int GetComputeRedundancy() const { return m_computeRedundancy; }
76 inline bool ComputeRedundancyHasBeenSet() const { return m_computeRedundancyHasBeenSet; }
77 inline void SetComputeRedundancy(int value) { m_computeRedundancyHasBeenSet = true; m_computeRedundancy = value; }
78 inline CreateDBShardGroupRequest& WithComputeRedundancy(int value) { SetComputeRedundancy(value); return *this;}
80
82
86 inline double GetMaxACU() const { return m_maxACU; }
87 inline bool MaxACUHasBeenSet() const { return m_maxACUHasBeenSet; }
88 inline void SetMaxACU(double value) { m_maxACUHasBeenSet = true; m_maxACU = value; }
89 inline CreateDBShardGroupRequest& WithMaxACU(double value) { SetMaxACU(value); return *this;}
91
93
97 inline double GetMinACU() const { return m_minACU; }
98 inline bool MinACUHasBeenSet() const { return m_minACUHasBeenSet; }
99 inline void SetMinACU(double value) { m_minACUHasBeenSet = true; m_minACU = value; }
100 inline CreateDBShardGroupRequest& WithMinACU(double value) { SetMinACU(value); return *this;}
102
104
127 inline bool GetPubliclyAccessible() const { return m_publiclyAccessible; }
128 inline bool PubliclyAccessibleHasBeenSet() const { return m_publiclyAccessibleHasBeenSet; }
129 inline void SetPubliclyAccessible(bool value) { m_publiclyAccessibleHasBeenSet = true; m_publiclyAccessible = value; }
130 inline CreateDBShardGroupRequest& WithPubliclyAccessible(bool value) { SetPubliclyAccessible(value); return *this;}
132
134
135 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
136 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
137 template<typename TagsT = Aws::Vector<Tag>>
138 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
139 template<typename TagsT = Aws::Vector<Tag>>
140 CreateDBShardGroupRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
141 template<typename TagsT = Tag>
142 CreateDBShardGroupRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
144 private:
145
146 Aws::String m_dBShardGroupIdentifier;
147 bool m_dBShardGroupIdentifierHasBeenSet = false;
148
149 Aws::String m_dBClusterIdentifier;
150 bool m_dBClusterIdentifierHasBeenSet = false;
151
152 int m_computeRedundancy{0};
153 bool m_computeRedundancyHasBeenSet = false;
154
155 double m_maxACU{0.0};
156 bool m_maxACUHasBeenSet = false;
157
158 double m_minACU{0.0};
159 bool m_minACUHasBeenSet = false;
160
161 bool m_publiclyAccessible{false};
162 bool m_publiclyAccessibleHasBeenSet = false;
163
164 Aws::Vector<Tag> m_tags;
165 bool m_tagsHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace RDS
170} // namespace Aws
CreateDBShardGroupRequest & WithTags(TagsT &&value)
CreateDBShardGroupRequest & WithDBClusterIdentifier(DBClusterIdentifierT &&value)
CreateDBShardGroupRequest & WithMinACU(double value)
CreateDBShardGroupRequest & AddTags(TagsT &&value)
void SetDBClusterIdentifier(DBClusterIdentifierT &&value)
CreateDBShardGroupRequest & WithPubliclyAccessible(bool value)
CreateDBShardGroupRequest & WithComputeRedundancy(int value)
AWS_RDS_API CreateDBShardGroupRequest()=default
CreateDBShardGroupRequest & WithMaxACU(double value)
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetDBShardGroupIdentifier(DBShardGroupIdentifierT &&value)
AWS_RDS_API Aws::String SerializePayload() const override
CreateDBShardGroupRequest & WithDBShardGroupIdentifier(DBShardGroupIdentifierT &&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