AWS SDK for C++  0.14.3
AWS SDK for C++
RevokeCacheSecurityGroupIngressRequest.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
19 
20 namespace Aws
21 {
22 namespace ElastiCache
23 {
24 namespace Model
25 {
26 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
39  inline const Aws::String& GetCacheSecurityGroupName() const{ return m_cacheSecurityGroupName; }
40 
44  inline void SetCacheSecurityGroupName(const Aws::String& value) { m_cacheSecurityGroupNameHasBeenSet = true; m_cacheSecurityGroupName = value; }
45 
49  inline void SetCacheSecurityGroupName(Aws::String&& value) { m_cacheSecurityGroupNameHasBeenSet = true; m_cacheSecurityGroupName = value; }
50 
54  inline void SetCacheSecurityGroupName(const char* value) { m_cacheSecurityGroupNameHasBeenSet = true; m_cacheSecurityGroupName.assign(value); }
55 
59  inline RevokeCacheSecurityGroupIngressRequest& WithCacheSecurityGroupName(const Aws::String& value) { SetCacheSecurityGroupName(value); return *this;}
60 
64  inline RevokeCacheSecurityGroupIngressRequest& WithCacheSecurityGroupName(Aws::String&& value) { SetCacheSecurityGroupName(value); return *this;}
65 
69  inline RevokeCacheSecurityGroupIngressRequest& WithCacheSecurityGroupName(const char* value) { SetCacheSecurityGroupName(value); return *this;}
70 
74  inline const Aws::String& GetEC2SecurityGroupName() const{ return m_eC2SecurityGroupName; }
75 
79  inline void SetEC2SecurityGroupName(const Aws::String& value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName = value; }
80 
84  inline void SetEC2SecurityGroupName(Aws::String&& value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName = value; }
85 
89  inline void SetEC2SecurityGroupName(const char* value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName.assign(value); }
90 
94  inline RevokeCacheSecurityGroupIngressRequest& WithEC2SecurityGroupName(const Aws::String& value) { SetEC2SecurityGroupName(value); return *this;}
95 
99  inline RevokeCacheSecurityGroupIngressRequest& WithEC2SecurityGroupName(Aws::String&& value) { SetEC2SecurityGroupName(value); return *this;}
100 
104  inline RevokeCacheSecurityGroupIngressRequest& WithEC2SecurityGroupName(const char* value) { SetEC2SecurityGroupName(value); return *this;}
105 
111  inline const Aws::String& GetEC2SecurityGroupOwnerId() const{ return m_eC2SecurityGroupOwnerId; }
112 
118  inline void SetEC2SecurityGroupOwnerId(const Aws::String& value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId = value; }
119 
125  inline void SetEC2SecurityGroupOwnerId(Aws::String&& value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId = value; }
126 
132  inline void SetEC2SecurityGroupOwnerId(const char* value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId.assign(value); }
133 
139  inline RevokeCacheSecurityGroupIngressRequest& WithEC2SecurityGroupOwnerId(const Aws::String& value) { SetEC2SecurityGroupOwnerId(value); return *this;}
140 
146  inline RevokeCacheSecurityGroupIngressRequest& WithEC2SecurityGroupOwnerId(Aws::String&& value) { SetEC2SecurityGroupOwnerId(value); return *this;}
147 
153  inline RevokeCacheSecurityGroupIngressRequest& WithEC2SecurityGroupOwnerId(const char* value) { SetEC2SecurityGroupOwnerId(value); return *this;}
154 
155  private:
156  Aws::String m_cacheSecurityGroupName;
157  bool m_cacheSecurityGroupNameHasBeenSet;
158  Aws::String m_eC2SecurityGroupName;
159  bool m_eC2SecurityGroupNameHasBeenSet;
160  Aws::String m_eC2SecurityGroupOwnerId;
161  bool m_eC2SecurityGroupOwnerIdHasBeenSet;
162  };
163 
164 } // namespace Model
165 } // namespace ElastiCache
166 } // namespace Aws
RevokeCacheSecurityGroupIngressRequest & WithEC2SecurityGroupOwnerId(Aws::String &&value)
RevokeCacheSecurityGroupIngressRequest & WithEC2SecurityGroupName(Aws::String &&value)
RevokeCacheSecurityGroupIngressRequest & WithCacheSecurityGroupName(const char *value)
RevokeCacheSecurityGroupIngressRequest & WithEC2SecurityGroupName(const Aws::String &value)
RevokeCacheSecurityGroupIngressRequest & WithEC2SecurityGroupOwnerId(const Aws::String &value)
RevokeCacheSecurityGroupIngressRequest & WithCacheSecurityGroupName(const Aws::String &value)
RevokeCacheSecurityGroupIngressRequest & WithEC2SecurityGroupName(const char *value)
RevokeCacheSecurityGroupIngressRequest & WithCacheSecurityGroupName(Aws::String &&value)
RevokeCacheSecurityGroupIngressRequest & WithEC2SecurityGroupOwnerId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_ELASTICACHE_API
JSON (JavaScript Object Notation).