AWS SDK for C++  1.9.108
AWS SDK for C++
ModifyClusterDbRevisionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Redshift
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "ModifyClusterDbRevision"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
43  inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
44 
49  inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
50 
55  inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
56 
61  inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
62 
67  inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
68 
73  inline ModifyClusterDbRevisionRequest& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
74 
79  inline ModifyClusterDbRevisionRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
80 
85  inline ModifyClusterDbRevisionRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
86 
87 
92  inline const Aws::String& GetRevisionTarget() const{ return m_revisionTarget; }
93 
98  inline bool RevisionTargetHasBeenSet() const { return m_revisionTargetHasBeenSet; }
99 
104  inline void SetRevisionTarget(const Aws::String& value) { m_revisionTargetHasBeenSet = true; m_revisionTarget = value; }
105 
110  inline void SetRevisionTarget(Aws::String&& value) { m_revisionTargetHasBeenSet = true; m_revisionTarget = std::move(value); }
111 
116  inline void SetRevisionTarget(const char* value) { m_revisionTargetHasBeenSet = true; m_revisionTarget.assign(value); }
117 
122  inline ModifyClusterDbRevisionRequest& WithRevisionTarget(const Aws::String& value) { SetRevisionTarget(value); return *this;}
123 
128  inline ModifyClusterDbRevisionRequest& WithRevisionTarget(Aws::String&& value) { SetRevisionTarget(std::move(value)); return *this;}
129 
134  inline ModifyClusterDbRevisionRequest& WithRevisionTarget(const char* value) { SetRevisionTarget(value); return *this;}
135 
136  private:
137 
138  Aws::String m_clusterIdentifier;
139  bool m_clusterIdentifierHasBeenSet;
140 
141  Aws::String m_revisionTarget;
142  bool m_revisionTargetHasBeenSet;
143  };
144 
145 } // namespace Model
146 } // namespace Redshift
147 } // namespace Aws
Aws::Redshift::Model::ModifyClusterDbRevisionRequest::GetClusterIdentifier
const Aws::String & GetClusterIdentifier() const
Definition: ModifyClusterDbRevisionRequest.h:43
Aws::Redshift::Model::ModifyClusterDbRevisionRequest::SetClusterIdentifier
void SetClusterIdentifier(Aws::String &&value)
Definition: ModifyClusterDbRevisionRequest.h:61
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::ModifyClusterDbRevisionRequest::SetRevisionTarget
void SetRevisionTarget(const char *value)
Definition: ModifyClusterDbRevisionRequest.h:116
Aws::Redshift::Model::ModifyClusterDbRevisionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Redshift::Model::ModifyClusterDbRevisionRequest::ClusterIdentifierHasBeenSet
bool ClusterIdentifierHasBeenSet() const
Definition: ModifyClusterDbRevisionRequest.h:49
RedshiftRequest.h
Aws::Redshift::Model::ModifyClusterDbRevisionRequest::WithRevisionTarget
ModifyClusterDbRevisionRequest & WithRevisionTarget(Aws::String &&value)
Definition: ModifyClusterDbRevisionRequest.h:128
Aws::Redshift::Model::ModifyClusterDbRevisionRequest::SetClusterIdentifier
void SetClusterIdentifier(const char *value)
Definition: ModifyClusterDbRevisionRequest.h:67
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
AWSString.h
Aws::Redshift::Model::ModifyClusterDbRevisionRequest::SetRevisionTarget
void SetRevisionTarget(const Aws::String &value)
Definition: ModifyClusterDbRevisionRequest.h:104
Aws::Redshift::Model::ModifyClusterDbRevisionRequest::RevisionTargetHasBeenSet
bool RevisionTargetHasBeenSet() const
Definition: ModifyClusterDbRevisionRequest.h:98
Aws::Redshift::Model::ModifyClusterDbRevisionRequest
Definition: ModifyClusterDbRevisionRequest.h:22
Aws::Redshift::Model::ModifyClusterDbRevisionRequest::SetClusterIdentifier
void SetClusterIdentifier(const Aws::String &value)
Definition: ModifyClusterDbRevisionRequest.h:55
Aws::Redshift::Model::ModifyClusterDbRevisionRequest::ModifyClusterDbRevisionRequest
ModifyClusterDbRevisionRequest()
Aws::Redshift::Model::ModifyClusterDbRevisionRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Redshift::Model::ModifyClusterDbRevisionRequest::WithRevisionTarget
ModifyClusterDbRevisionRequest & WithRevisionTarget(const Aws::String &value)
Definition: ModifyClusterDbRevisionRequest.h:122
Aws::Redshift::Model::ModifyClusterDbRevisionRequest::WithRevisionTarget
ModifyClusterDbRevisionRequest & WithRevisionTarget(const char *value)
Definition: ModifyClusterDbRevisionRequest.h:134
Aws::Redshift::Model::ModifyClusterDbRevisionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyClusterDbRevisionRequest.h:30
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::ModifyClusterDbRevisionRequest::WithClusterIdentifier
ModifyClusterDbRevisionRequest & WithClusterIdentifier(const char *value)
Definition: ModifyClusterDbRevisionRequest.h:85
Aws::Redshift::Model::ModifyClusterDbRevisionRequest::SetRevisionTarget
void SetRevisionTarget(Aws::String &&value)
Definition: ModifyClusterDbRevisionRequest.h:110
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::ModifyClusterDbRevisionRequest::WithClusterIdentifier
ModifyClusterDbRevisionRequest & WithClusterIdentifier(Aws::String &&value)
Definition: ModifyClusterDbRevisionRequest.h:79
Aws::Redshift::Model::ModifyClusterDbRevisionRequest::GetRevisionTarget
const Aws::String & GetRevisionTarget() const
Definition: ModifyClusterDbRevisionRequest.h:92
Aws::Redshift::Model::ModifyClusterDbRevisionRequest::WithClusterIdentifier
ModifyClusterDbRevisionRequest & WithClusterIdentifier(const Aws::String &value)
Definition: ModifyClusterDbRevisionRequest.h:73