AWS SDK for C++  1.8.71
AWS SDK for C++
AddRoleToDBClusterRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Neptune
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 "AddRoleToDBCluster"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
42  inline const Aws::String& GetDBClusterIdentifier() const{ return m_dBClusterIdentifier; }
43 
47  inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; }
48 
52  inline void SetDBClusterIdentifier(const Aws::String& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = value; }
53 
57  inline void SetDBClusterIdentifier(Aws::String&& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = std::move(value); }
58 
62  inline void SetDBClusterIdentifier(const char* value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier.assign(value); }
63 
67  inline AddRoleToDBClusterRequest& WithDBClusterIdentifier(const Aws::String& value) { SetDBClusterIdentifier(value); return *this;}
68 
72  inline AddRoleToDBClusterRequest& WithDBClusterIdentifier(Aws::String&& value) { SetDBClusterIdentifier(std::move(value)); return *this;}
73 
77  inline AddRoleToDBClusterRequest& WithDBClusterIdentifier(const char* value) { SetDBClusterIdentifier(value); return *this;}
78 
79 
85  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
86 
92  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
93 
99  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
100 
106  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
107 
113  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
114 
120  inline AddRoleToDBClusterRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
121 
127  inline AddRoleToDBClusterRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
128 
134  inline AddRoleToDBClusterRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
135 
136  private:
137 
138  Aws::String m_dBClusterIdentifier;
139  bool m_dBClusterIdentifierHasBeenSet;
140 
141  Aws::String m_roleArn;
142  bool m_roleArnHasBeenSet;
143  };
144 
145 } // namespace Model
146 } // namespace Neptune
147 } // namespace Aws
AddRoleToDBClusterRequest & WithDBClusterIdentifier(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
AddRoleToDBClusterRequest & WithRoleArn(const Aws::String &value)
AddRoleToDBClusterRequest & WithRoleArn(Aws::String &&value)
#define AWS_NEPTUNE_API
AddRoleToDBClusterRequest & WithDBClusterIdentifier(Aws::String &&value)
AddRoleToDBClusterRequest & WithRoleArn(const char *value)
AddRoleToDBClusterRequest & WithDBClusterIdentifier(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97