AWS SDK for C++  0.12.9
AWS SDK for C++
CacheParameterGroup.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 Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace ElastiCache
30 {
31 namespace Model
32 {
33 
38  {
39  public:
42  CacheParameterGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43 
44  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45  void OutputToStream(Aws::OStream& oStream, const char* location) const;
46 
50  inline const Aws::String& GetCacheParameterGroupName() const{ return m_cacheParameterGroupName; }
51 
55  inline void SetCacheParameterGroupName(const Aws::String& value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName = value; }
56 
60  inline void SetCacheParameterGroupName(Aws::String&& value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName = value; }
61 
65  inline void SetCacheParameterGroupName(const char* value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName.assign(value); }
66 
70  inline CacheParameterGroup& WithCacheParameterGroupName(const Aws::String& value) { SetCacheParameterGroupName(value); return *this;}
71 
75  inline CacheParameterGroup& WithCacheParameterGroupName(Aws::String&& value) { SetCacheParameterGroupName(value); return *this;}
76 
80  inline CacheParameterGroup& WithCacheParameterGroupName(const char* value) { SetCacheParameterGroupName(value); return *this;}
81 
86  inline const Aws::String& GetCacheParameterGroupFamily() const{ return m_cacheParameterGroupFamily; }
87 
92  inline void SetCacheParameterGroupFamily(const Aws::String& value) { m_cacheParameterGroupFamilyHasBeenSet = true; m_cacheParameterGroupFamily = value; }
93 
98  inline void SetCacheParameterGroupFamily(Aws::String&& value) { m_cacheParameterGroupFamilyHasBeenSet = true; m_cacheParameterGroupFamily = value; }
99 
104  inline void SetCacheParameterGroupFamily(const char* value) { m_cacheParameterGroupFamilyHasBeenSet = true; m_cacheParameterGroupFamily.assign(value); }
105 
110  inline CacheParameterGroup& WithCacheParameterGroupFamily(const Aws::String& value) { SetCacheParameterGroupFamily(value); return *this;}
111 
116  inline CacheParameterGroup& WithCacheParameterGroupFamily(Aws::String&& value) { SetCacheParameterGroupFamily(value); return *this;}
117 
122  inline CacheParameterGroup& WithCacheParameterGroupFamily(const char* value) { SetCacheParameterGroupFamily(value); return *this;}
123 
127  inline const Aws::String& GetDescription() const{ return m_description; }
128 
132  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
133 
137  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
138 
142  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
143 
147  inline CacheParameterGroup& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
148 
152  inline CacheParameterGroup& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
153 
157  inline CacheParameterGroup& WithDescription(const char* value) { SetDescription(value); return *this;}
158 
159  private:
160  Aws::String m_cacheParameterGroupName;
161  bool m_cacheParameterGroupNameHasBeenSet;
162  Aws::String m_cacheParameterGroupFamily;
163  bool m_cacheParameterGroupFamilyHasBeenSet;
164  Aws::String m_description;
165  bool m_descriptionHasBeenSet;
166  };
167 
168 } // namespace Model
169 } // namespace ElastiCache
170 } // namespace Aws
CacheParameterGroup & WithCacheParameterGroupFamily(const char *value)
void SetDescription(const Aws::String &value)
CacheParameterGroup & WithDescription(const Aws::String &value)
void SetCacheParameterGroupName(Aws::String &&value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
const Aws::String & GetCacheParameterGroupFamily() const
void SetCacheParameterGroupFamily(Aws::String &&value)
CacheParameterGroup & WithDescription(const char *value)
CacheParameterGroup & WithCacheParameterGroupFamily(const Aws::String &value)
CacheParameterGroup & WithCacheParameterGroupFamily(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_ELASTICACHE_API
CacheParameterGroup & WithCacheParameterGroupName(Aws::String &&value)
CacheParameterGroup & WithCacheParameterGroupName(const char *value)
CacheParameterGroup & WithDescription(Aws::String &&value)
void SetCacheParameterGroupFamily(const Aws::String &value)
void SetCacheParameterGroupName(const Aws::String &value)
const Aws::String & GetCacheParameterGroupName() const
JSON (JavaScript Object Notation).
CacheParameterGroup & WithCacheParameterGroupName(const Aws::String &value)