AWS SDK for C++  0.14.3
AWS SDK for C++
AuthorizeDBSecurityGroupIngressRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/rds/RDS_EXPORTS.h>
17 #include <aws/rds/RDSRequest.h>
19 
20 namespace Aws
21 {
22 namespace RDS
23 {
24 namespace Model
25 {
26 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
39  inline const Aws::String& GetDBSecurityGroupName() const{ return m_dBSecurityGroupName; }
40 
44  inline void SetDBSecurityGroupName(const Aws::String& value) { m_dBSecurityGroupNameHasBeenSet = true; m_dBSecurityGroupName = value; }
45 
49  inline void SetDBSecurityGroupName(Aws::String&& value) { m_dBSecurityGroupNameHasBeenSet = true; m_dBSecurityGroupName = value; }
50 
54  inline void SetDBSecurityGroupName(const char* value) { m_dBSecurityGroupNameHasBeenSet = true; m_dBSecurityGroupName.assign(value); }
55 
59  inline AuthorizeDBSecurityGroupIngressRequest& WithDBSecurityGroupName(const Aws::String& value) { SetDBSecurityGroupName(value); return *this;}
60 
64  inline AuthorizeDBSecurityGroupIngressRequest& WithDBSecurityGroupName(Aws::String&& value) { SetDBSecurityGroupName(value); return *this;}
65 
69  inline AuthorizeDBSecurityGroupIngressRequest& WithDBSecurityGroupName(const char* value) { SetDBSecurityGroupName(value); return *this;}
70 
74  inline const Aws::String& GetCIDRIP() const{ return m_cIDRIP; }
75 
79  inline void SetCIDRIP(const Aws::String& value) { m_cIDRIPHasBeenSet = true; m_cIDRIP = value; }
80 
84  inline void SetCIDRIP(Aws::String&& value) { m_cIDRIPHasBeenSet = true; m_cIDRIP = value; }
85 
89  inline void SetCIDRIP(const char* value) { m_cIDRIPHasBeenSet = true; m_cIDRIP.assign(value); }
90 
94  inline AuthorizeDBSecurityGroupIngressRequest& WithCIDRIP(const Aws::String& value) { SetCIDRIP(value); return *this;}
95 
99  inline AuthorizeDBSecurityGroupIngressRequest& WithCIDRIP(Aws::String&& value) { SetCIDRIP(value); return *this;}
100 
104  inline AuthorizeDBSecurityGroupIngressRequest& WithCIDRIP(const char* value) { SetCIDRIP(value); return *this;}
105 
113  inline const Aws::String& GetEC2SecurityGroupName() const{ return m_eC2SecurityGroupName; }
114 
122  inline void SetEC2SecurityGroupName(const Aws::String& value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName = value; }
123 
131  inline void SetEC2SecurityGroupName(Aws::String&& value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName = value; }
132 
140  inline void SetEC2SecurityGroupName(const char* value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName.assign(value); }
141 
149  inline AuthorizeDBSecurityGroupIngressRequest& WithEC2SecurityGroupName(const Aws::String& value) { SetEC2SecurityGroupName(value); return *this;}
150 
158  inline AuthorizeDBSecurityGroupIngressRequest& WithEC2SecurityGroupName(Aws::String&& value) { SetEC2SecurityGroupName(value); return *this;}
159 
167  inline AuthorizeDBSecurityGroupIngressRequest& WithEC2SecurityGroupName(const char* value) { SetEC2SecurityGroupName(value); return *this;}
168 
176  inline const Aws::String& GetEC2SecurityGroupId() const{ return m_eC2SecurityGroupId; }
177 
185  inline void SetEC2SecurityGroupId(const Aws::String& value) { m_eC2SecurityGroupIdHasBeenSet = true; m_eC2SecurityGroupId = value; }
186 
194  inline void SetEC2SecurityGroupId(Aws::String&& value) { m_eC2SecurityGroupIdHasBeenSet = true; m_eC2SecurityGroupId = value; }
195 
203  inline void SetEC2SecurityGroupId(const char* value) { m_eC2SecurityGroupIdHasBeenSet = true; m_eC2SecurityGroupId.assign(value); }
204 
212  inline AuthorizeDBSecurityGroupIngressRequest& WithEC2SecurityGroupId(const Aws::String& value) { SetEC2SecurityGroupId(value); return *this;}
213 
221  inline AuthorizeDBSecurityGroupIngressRequest& WithEC2SecurityGroupId(Aws::String&& value) { SetEC2SecurityGroupId(value); return *this;}
222 
230  inline AuthorizeDBSecurityGroupIngressRequest& WithEC2SecurityGroupId(const char* value) { SetEC2SecurityGroupId(value); return *this;}
231 
240  inline const Aws::String& GetEC2SecurityGroupOwnerId() const{ return m_eC2SecurityGroupOwnerId; }
241 
250  inline void SetEC2SecurityGroupOwnerId(const Aws::String& value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId = value; }
251 
260  inline void SetEC2SecurityGroupOwnerId(Aws::String&& value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId = value; }
261 
270  inline void SetEC2SecurityGroupOwnerId(const char* value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId.assign(value); }
271 
280  inline AuthorizeDBSecurityGroupIngressRequest& WithEC2SecurityGroupOwnerId(const Aws::String& value) { SetEC2SecurityGroupOwnerId(value); return *this;}
281 
290  inline AuthorizeDBSecurityGroupIngressRequest& WithEC2SecurityGroupOwnerId(Aws::String&& value) { SetEC2SecurityGroupOwnerId(value); return *this;}
291 
300  inline AuthorizeDBSecurityGroupIngressRequest& WithEC2SecurityGroupOwnerId(const char* value) { SetEC2SecurityGroupOwnerId(value); return *this;}
301 
302  private:
303  Aws::String m_dBSecurityGroupName;
304  bool m_dBSecurityGroupNameHasBeenSet;
305  Aws::String m_cIDRIP;
306  bool m_cIDRIPHasBeenSet;
307  Aws::String m_eC2SecurityGroupName;
308  bool m_eC2SecurityGroupNameHasBeenSet;
309  Aws::String m_eC2SecurityGroupId;
310  bool m_eC2SecurityGroupIdHasBeenSet;
311  Aws::String m_eC2SecurityGroupOwnerId;
312  bool m_eC2SecurityGroupOwnerIdHasBeenSet;
313  };
314 
315 } // namespace Model
316 } // namespace RDS
317 } // namespace Aws
AuthorizeDBSecurityGroupIngressRequest & WithDBSecurityGroupName(Aws::String &&value)
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:37
AuthorizeDBSecurityGroupIngressRequest & WithEC2SecurityGroupId(const Aws::String &value)
AuthorizeDBSecurityGroupIngressRequest & WithEC2SecurityGroupId(const char *value)
AuthorizeDBSecurityGroupIngressRequest & WithEC2SecurityGroupOwnerId(const char *value)
AuthorizeDBSecurityGroupIngressRequest & WithDBSecurityGroupName(const Aws::String &value)
AuthorizeDBSecurityGroupIngressRequest & WithCIDRIP(const Aws::String &value)
AuthorizeDBSecurityGroupIngressRequest & WithEC2SecurityGroupOwnerId(Aws::String &&value)
AuthorizeDBSecurityGroupIngressRequest & WithEC2SecurityGroupName(const Aws::String &value)
AuthorizeDBSecurityGroupIngressRequest & WithCIDRIP(Aws::String &&value)
AuthorizeDBSecurityGroupIngressRequest & WithDBSecurityGroupName(const char *value)
AuthorizeDBSecurityGroupIngressRequest & WithEC2SecurityGroupName(const char *value)
AuthorizeDBSecurityGroupIngressRequest & WithEC2SecurityGroupOwnerId(const Aws::String &value)
AuthorizeDBSecurityGroupIngressRequest & WithCIDRIP(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AuthorizeDBSecurityGroupIngressRequest & WithEC2SecurityGroupName(Aws::String &&value)
AuthorizeDBSecurityGroupIngressRequest & WithEC2SecurityGroupId(Aws::String &&value)
JSON (JavaScript Object Notation).