AWS SDK for C++  0.14.3
AWS SDK for C++
AuthorizeCacheSecurityGroupIngressRequest.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 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
40  inline const Aws::String& GetCacheSecurityGroupName() const{ return m_cacheSecurityGroupName; }
41 
45  inline void SetCacheSecurityGroupName(const Aws::String& value) { m_cacheSecurityGroupNameHasBeenSet = true; m_cacheSecurityGroupName = value; }
46 
50  inline void SetCacheSecurityGroupName(Aws::String&& value) { m_cacheSecurityGroupNameHasBeenSet = true; m_cacheSecurityGroupName = value; }
51 
55  inline void SetCacheSecurityGroupName(const char* value) { m_cacheSecurityGroupNameHasBeenSet = true; m_cacheSecurityGroupName.assign(value); }
56 
60  inline AuthorizeCacheSecurityGroupIngressRequest& WithCacheSecurityGroupName(const Aws::String& value) { SetCacheSecurityGroupName(value); return *this;}
61 
65  inline AuthorizeCacheSecurityGroupIngressRequest& WithCacheSecurityGroupName(Aws::String&& value) { SetCacheSecurityGroupName(value); return *this;}
66 
70  inline AuthorizeCacheSecurityGroupIngressRequest& WithCacheSecurityGroupName(const char* value) { SetCacheSecurityGroupName(value); return *this;}
71 
76  inline const Aws::String& GetEC2SecurityGroupName() const{ return m_eC2SecurityGroupName; }
77 
82  inline void SetEC2SecurityGroupName(const Aws::String& value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName = value; }
83 
88  inline void SetEC2SecurityGroupName(Aws::String&& value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName = value; }
89 
94  inline void SetEC2SecurityGroupName(const char* value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName.assign(value); }
95 
100  inline AuthorizeCacheSecurityGroupIngressRequest& WithEC2SecurityGroupName(const Aws::String& value) { SetEC2SecurityGroupName(value); return *this;}
101 
106  inline AuthorizeCacheSecurityGroupIngressRequest& WithEC2SecurityGroupName(Aws::String&& value) { SetEC2SecurityGroupName(value); return *this;}
107 
112  inline AuthorizeCacheSecurityGroupIngressRequest& WithEC2SecurityGroupName(const char* value) { SetEC2SecurityGroupName(value); return *this;}
113 
119  inline const Aws::String& GetEC2SecurityGroupOwnerId() const{ return m_eC2SecurityGroupOwnerId; }
120 
126  inline void SetEC2SecurityGroupOwnerId(const Aws::String& value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId = value; }
127 
133  inline void SetEC2SecurityGroupOwnerId(Aws::String&& value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId = value; }
134 
140  inline void SetEC2SecurityGroupOwnerId(const char* value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId.assign(value); }
141 
147  inline AuthorizeCacheSecurityGroupIngressRequest& WithEC2SecurityGroupOwnerId(const Aws::String& value) { SetEC2SecurityGroupOwnerId(value); return *this;}
148 
154  inline AuthorizeCacheSecurityGroupIngressRequest& WithEC2SecurityGroupOwnerId(Aws::String&& value) { SetEC2SecurityGroupOwnerId(value); return *this;}
155 
161  inline AuthorizeCacheSecurityGroupIngressRequest& WithEC2SecurityGroupOwnerId(const char* value) { SetEC2SecurityGroupOwnerId(value); return *this;}
162 
163  private:
164  Aws::String m_cacheSecurityGroupName;
165  bool m_cacheSecurityGroupNameHasBeenSet;
166  Aws::String m_eC2SecurityGroupName;
167  bool m_eC2SecurityGroupNameHasBeenSet;
168  Aws::String m_eC2SecurityGroupOwnerId;
169  bool m_eC2SecurityGroupOwnerIdHasBeenSet;
170  };
171 
172 } // namespace Model
173 } // namespace ElastiCache
174 } // namespace Aws
AuthorizeCacheSecurityGroupIngressRequest & WithEC2SecurityGroupOwnerId(Aws::String &&value)
AuthorizeCacheSecurityGroupIngressRequest & WithEC2SecurityGroupOwnerId(const Aws::String &value)
AuthorizeCacheSecurityGroupIngressRequest & WithCacheSecurityGroupName(const Aws::String &value)
AuthorizeCacheSecurityGroupIngressRequest & WithEC2SecurityGroupOwnerId(const char *value)
AuthorizeCacheSecurityGroupIngressRequest & WithCacheSecurityGroupName(Aws::String &&value)
AuthorizeCacheSecurityGroupIngressRequest & WithEC2SecurityGroupName(const char *value)
AuthorizeCacheSecurityGroupIngressRequest & WithEC2SecurityGroupName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_ELASTICACHE_API
AuthorizeCacheSecurityGroupIngressRequest & WithCacheSecurityGroupName(const char *value)
JSON (JavaScript Object Notation).
AuthorizeCacheSecurityGroupIngressRequest & WithEC2SecurityGroupName(Aws::String &&value)