1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/neptune/Neptune_EXPORTS.h>
8 #include <aws/neptune/NeptuneRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Neptune
15 {
16 namespace Model
17 {
18 
19   /**
20    */
21   class AWS_NEPTUNE_API RemoveRoleFromDBClusterRequest : public NeptuneRequest
22   {
23   public:
24     RemoveRoleFromDBClusterRequest();
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.
GetServiceRequestName()30     inline virtual const char* GetServiceRequestName() const override { return "RemoveRoleFromDBCluster"; }
31 
32     Aws::String SerializePayload() const override;
33 
34   protected:
35     void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37   public:
38 
39     /**
40      * <p>The name of the DB cluster to disassociate the IAM role from.</p>
41      */
GetDBClusterIdentifier()42     inline const Aws::String& GetDBClusterIdentifier() const{ return m_dBClusterIdentifier; }
43 
44     /**
45      * <p>The name of the DB cluster to disassociate the IAM role from.</p>
46      */
DBClusterIdentifierHasBeenSet()47     inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; }
48 
49     /**
50      * <p>The name of the DB cluster to disassociate the IAM role from.</p>
51      */
SetDBClusterIdentifier(const Aws::String & value)52     inline void SetDBClusterIdentifier(const Aws::String& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = value; }
53 
54     /**
55      * <p>The name of the DB cluster to disassociate the IAM role from.</p>
56      */
SetDBClusterIdentifier(Aws::String && value)57     inline void SetDBClusterIdentifier(Aws::String&& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = std::move(value); }
58 
59     /**
60      * <p>The name of the DB cluster to disassociate the IAM role from.</p>
61      */
SetDBClusterIdentifier(const char * value)62     inline void SetDBClusterIdentifier(const char* value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier.assign(value); }
63 
64     /**
65      * <p>The name of the DB cluster to disassociate the IAM role from.</p>
66      */
WithDBClusterIdentifier(const Aws::String & value)67     inline RemoveRoleFromDBClusterRequest& WithDBClusterIdentifier(const Aws::String& value) { SetDBClusterIdentifier(value); return *this;}
68 
69     /**
70      * <p>The name of the DB cluster to disassociate the IAM role from.</p>
71      */
WithDBClusterIdentifier(Aws::String && value)72     inline RemoveRoleFromDBClusterRequest& WithDBClusterIdentifier(Aws::String&& value) { SetDBClusterIdentifier(std::move(value)); return *this;}
73 
74     /**
75      * <p>The name of the DB cluster to disassociate the IAM role from.</p>
76      */
WithDBClusterIdentifier(const char * value)77     inline RemoveRoleFromDBClusterRequest& WithDBClusterIdentifier(const char* value) { SetDBClusterIdentifier(value); return *this;}
78 
79 
80     /**
81      * <p>The Amazon Resource Name (ARN) of the IAM role to disassociate from the DB
82      * cluster, for example
83      * <code>arn:aws:iam::123456789012:role/NeptuneAccessRole</code>.</p>
84      */
GetRoleArn()85     inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
86 
87     /**
88      * <p>The Amazon Resource Name (ARN) of the IAM role to disassociate from the DB
89      * cluster, for example
90      * <code>arn:aws:iam::123456789012:role/NeptuneAccessRole</code>.</p>
91      */
RoleArnHasBeenSet()92     inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
93 
94     /**
95      * <p>The Amazon Resource Name (ARN) of the IAM role to disassociate from the DB
96      * cluster, for example
97      * <code>arn:aws:iam::123456789012:role/NeptuneAccessRole</code>.</p>
98      */
SetRoleArn(const Aws::String & value)99     inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
100 
101     /**
102      * <p>The Amazon Resource Name (ARN) of the IAM role to disassociate from the DB
103      * cluster, for example
104      * <code>arn:aws:iam::123456789012:role/NeptuneAccessRole</code>.</p>
105      */
SetRoleArn(Aws::String && value)106     inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
107 
108     /**
109      * <p>The Amazon Resource Name (ARN) of the IAM role to disassociate from the DB
110      * cluster, for example
111      * <code>arn:aws:iam::123456789012:role/NeptuneAccessRole</code>.</p>
112      */
SetRoleArn(const char * value)113     inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
114 
115     /**
116      * <p>The Amazon Resource Name (ARN) of the IAM role to disassociate from the DB
117      * cluster, for example
118      * <code>arn:aws:iam::123456789012:role/NeptuneAccessRole</code>.</p>
119      */
WithRoleArn(const Aws::String & value)120     inline RemoveRoleFromDBClusterRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
121 
122     /**
123      * <p>The Amazon Resource Name (ARN) of the IAM role to disassociate from the DB
124      * cluster, for example
125      * <code>arn:aws:iam::123456789012:role/NeptuneAccessRole</code>.</p>
126      */
WithRoleArn(Aws::String && value)127     inline RemoveRoleFromDBClusterRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
128 
129     /**
130      * <p>The Amazon Resource Name (ARN) of the IAM role to disassociate from the DB
131      * cluster, for example
132      * <code>arn:aws:iam::123456789012:role/NeptuneAccessRole</code>.</p>
133      */
WithRoleArn(const char * value)134     inline RemoveRoleFromDBClusterRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
135 
136 
137     /**
138      * <p>The name of the feature for the DB cluster that the IAM role is to be
139      * disassociated from. For the list of supported feature names, see
140      * <a>DBEngineVersion</a>.</p>
141      */
GetFeatureName()142     inline const Aws::String& GetFeatureName() const{ return m_featureName; }
143 
144     /**
145      * <p>The name of the feature for the DB cluster that the IAM role is to be
146      * disassociated from. For the list of supported feature names, see
147      * <a>DBEngineVersion</a>.</p>
148      */
FeatureNameHasBeenSet()149     inline bool FeatureNameHasBeenSet() const { return m_featureNameHasBeenSet; }
150 
151     /**
152      * <p>The name of the feature for the DB cluster that the IAM role is to be
153      * disassociated from. For the list of supported feature names, see
154      * <a>DBEngineVersion</a>.</p>
155      */
SetFeatureName(const Aws::String & value)156     inline void SetFeatureName(const Aws::String& value) { m_featureNameHasBeenSet = true; m_featureName = value; }
157 
158     /**
159      * <p>The name of the feature for the DB cluster that the IAM role is to be
160      * disassociated from. For the list of supported feature names, see
161      * <a>DBEngineVersion</a>.</p>
162      */
SetFeatureName(Aws::String && value)163     inline void SetFeatureName(Aws::String&& value) { m_featureNameHasBeenSet = true; m_featureName = std::move(value); }
164 
165     /**
166      * <p>The name of the feature for the DB cluster that the IAM role is to be
167      * disassociated from. For the list of supported feature names, see
168      * <a>DBEngineVersion</a>.</p>
169      */
SetFeatureName(const char * value)170     inline void SetFeatureName(const char* value) { m_featureNameHasBeenSet = true; m_featureName.assign(value); }
171 
172     /**
173      * <p>The name of the feature for the DB cluster that the IAM role is to be
174      * disassociated from. For the list of supported feature names, see
175      * <a>DBEngineVersion</a>.</p>
176      */
WithFeatureName(const Aws::String & value)177     inline RemoveRoleFromDBClusterRequest& WithFeatureName(const Aws::String& value) { SetFeatureName(value); return *this;}
178 
179     /**
180      * <p>The name of the feature for the DB cluster that the IAM role is to be
181      * disassociated from. For the list of supported feature names, see
182      * <a>DBEngineVersion</a>.</p>
183      */
WithFeatureName(Aws::String && value)184     inline RemoveRoleFromDBClusterRequest& WithFeatureName(Aws::String&& value) { SetFeatureName(std::move(value)); return *this;}
185 
186     /**
187      * <p>The name of the feature for the DB cluster that the IAM role is to be
188      * disassociated from. For the list of supported feature names, see
189      * <a>DBEngineVersion</a>.</p>
190      */
WithFeatureName(const char * value)191     inline RemoveRoleFromDBClusterRequest& WithFeatureName(const char* value) { SetFeatureName(value); return *this;}
192 
193   private:
194 
195     Aws::String m_dBClusterIdentifier;
196     bool m_dBClusterIdentifierHasBeenSet;
197 
198     Aws::String m_roleArn;
199     bool m_roleArnHasBeenSet;
200 
201     Aws::String m_featureName;
202     bool m_featureNameHasBeenSet;
203   };
204 
205 } // namespace Model
206 } // namespace Neptune
207 } // namespace Aws
208