AWS SDK for C++  0.12.9
AWS SDK for C++
CacheSecurityGroup.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
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace ElastiCache
32 {
33 namespace Model
34 {
35 
43  {
44  public:
47  CacheSecurityGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
48 
49  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
50  void OutputToStream(Aws::OStream& oStream, const char* location) const;
51 
55  inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
56 
60  inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
61 
65  inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
66 
70  inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
71 
75  inline CacheSecurityGroup& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
76 
80  inline CacheSecurityGroup& WithOwnerId(Aws::String&& value) { SetOwnerId(value); return *this;}
81 
85  inline CacheSecurityGroup& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
86 
90  inline const Aws::String& GetCacheSecurityGroupName() const{ return m_cacheSecurityGroupName; }
91 
95  inline void SetCacheSecurityGroupName(const Aws::String& value) { m_cacheSecurityGroupNameHasBeenSet = true; m_cacheSecurityGroupName = value; }
96 
100  inline void SetCacheSecurityGroupName(Aws::String&& value) { m_cacheSecurityGroupNameHasBeenSet = true; m_cacheSecurityGroupName = value; }
101 
105  inline void SetCacheSecurityGroupName(const char* value) { m_cacheSecurityGroupNameHasBeenSet = true; m_cacheSecurityGroupName.assign(value); }
106 
110  inline CacheSecurityGroup& WithCacheSecurityGroupName(const Aws::String& value) { SetCacheSecurityGroupName(value); return *this;}
111 
115  inline CacheSecurityGroup& WithCacheSecurityGroupName(Aws::String&& value) { SetCacheSecurityGroupName(value); return *this;}
116 
120  inline CacheSecurityGroup& WithCacheSecurityGroupName(const char* value) { SetCacheSecurityGroupName(value); return *this;}
121 
125  inline const Aws::String& GetDescription() const{ return m_description; }
126 
130  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
131 
135  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
136 
140  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
141 
145  inline CacheSecurityGroup& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
146 
150  inline CacheSecurityGroup& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
151 
155  inline CacheSecurityGroup& WithDescription(const char* value) { SetDescription(value); return *this;}
156 
161  inline const Aws::Vector<EC2SecurityGroup>& GetEC2SecurityGroups() const{ return m_eC2SecurityGroups; }
162 
167  inline void SetEC2SecurityGroups(const Aws::Vector<EC2SecurityGroup>& value) { m_eC2SecurityGroupsHasBeenSet = true; m_eC2SecurityGroups = value; }
168 
173  inline void SetEC2SecurityGroups(Aws::Vector<EC2SecurityGroup>&& value) { m_eC2SecurityGroupsHasBeenSet = true; m_eC2SecurityGroups = value; }
174 
179  inline CacheSecurityGroup& WithEC2SecurityGroups(const Aws::Vector<EC2SecurityGroup>& value) { SetEC2SecurityGroups(value); return *this;}
180 
185  inline CacheSecurityGroup& WithEC2SecurityGroups(Aws::Vector<EC2SecurityGroup>&& value) { SetEC2SecurityGroups(value); return *this;}
186 
191  inline CacheSecurityGroup& AddEC2SecurityGroups(const EC2SecurityGroup& value) { m_eC2SecurityGroupsHasBeenSet = true; m_eC2SecurityGroups.push_back(value); return *this; }
192 
197  inline CacheSecurityGroup& AddEC2SecurityGroups(EC2SecurityGroup&& value) { m_eC2SecurityGroupsHasBeenSet = true; m_eC2SecurityGroups.push_back(value); return *this; }
198 
199  private:
200  Aws::String m_ownerId;
201  bool m_ownerIdHasBeenSet;
202  Aws::String m_cacheSecurityGroupName;
203  bool m_cacheSecurityGroupNameHasBeenSet;
204  Aws::String m_description;
205  bool m_descriptionHasBeenSet;
206  Aws::Vector<EC2SecurityGroup> m_eC2SecurityGroups;
207  bool m_eC2SecurityGroupsHasBeenSet;
208  };
209 
210 } // namespace Model
211 } // namespace ElastiCache
212 } // namespace Aws
const Aws::String & GetCacheSecurityGroupName() const
CacheSecurityGroup & WithDescription(Aws::String &&value)
CacheSecurityGroup & WithCacheSecurityGroupName(Aws::String &&value)
void SetEC2SecurityGroups(const Aws::Vector< EC2SecurityGroup > &value)
void SetDescription(const Aws::String &value)
void SetCacheSecurityGroupName(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
CacheSecurityGroup & WithCacheSecurityGroupName(const char *value)
CacheSecurityGroup & WithCacheSecurityGroupName(const Aws::String &value)
void SetCacheSecurityGroupName(Aws::String &&value)
const Aws::Vector< EC2SecurityGroup > & GetEC2SecurityGroups() const
CacheSecurityGroup & WithOwnerId(const char *value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
CacheSecurityGroup & WithEC2SecurityGroups(Aws::Vector< EC2SecurityGroup > &&value)
void SetEC2SecurityGroups(Aws::Vector< EC2SecurityGroup > &&value)
CacheSecurityGroup & WithOwnerId(Aws::String &&value)
CacheSecurityGroup & WithDescription(const Aws::String &value)
CacheSecurityGroup & WithEC2SecurityGroups(const Aws::Vector< EC2SecurityGroup > &value)
CacheSecurityGroup & WithOwnerId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_ELASTICACHE_API
CacheSecurityGroup & AddEC2SecurityGroups(EC2SecurityGroup &&value)
CacheSecurityGroup & WithDescription(const char *value)
CacheSecurityGroup & AddEC2SecurityGroups(const EC2SecurityGroup &value)
void SetOwnerId(const Aws::String &value)
JSON (JavaScript Object Notation).