AWS SDK for C++  0.12.9
AWS SDK for C++
CacheParameterGroupStatus.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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace ElastiCache
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  CacheParameterGroupStatus& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
51  inline const Aws::String& GetCacheParameterGroupName() const{ return m_cacheParameterGroupName; }
52 
56  inline void SetCacheParameterGroupName(const Aws::String& value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName = value; }
57 
61  inline void SetCacheParameterGroupName(Aws::String&& value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName = value; }
62 
66  inline void SetCacheParameterGroupName(const char* value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName.assign(value); }
67 
71  inline CacheParameterGroupStatus& WithCacheParameterGroupName(const Aws::String& value) { SetCacheParameterGroupName(value); return *this;}
72 
76  inline CacheParameterGroupStatus& WithCacheParameterGroupName(Aws::String&& value) { SetCacheParameterGroupName(value); return *this;}
77 
81  inline CacheParameterGroupStatus& WithCacheParameterGroupName(const char* value) { SetCacheParameterGroupName(value); return *this;}
82 
86  inline const Aws::String& GetParameterApplyStatus() const{ return m_parameterApplyStatus; }
87 
91  inline void SetParameterApplyStatus(const Aws::String& value) { m_parameterApplyStatusHasBeenSet = true; m_parameterApplyStatus = value; }
92 
96  inline void SetParameterApplyStatus(Aws::String&& value) { m_parameterApplyStatusHasBeenSet = true; m_parameterApplyStatus = value; }
97 
101  inline void SetParameterApplyStatus(const char* value) { m_parameterApplyStatusHasBeenSet = true; m_parameterApplyStatus.assign(value); }
102 
106  inline CacheParameterGroupStatus& WithParameterApplyStatus(const Aws::String& value) { SetParameterApplyStatus(value); return *this;}
107 
111  inline CacheParameterGroupStatus& WithParameterApplyStatus(Aws::String&& value) { SetParameterApplyStatus(value); return *this;}
112 
116  inline CacheParameterGroupStatus& WithParameterApplyStatus(const char* value) { SetParameterApplyStatus(value); return *this;}
117 
122  inline const Aws::Vector<Aws::String>& GetCacheNodeIdsToReboot() const{ return m_cacheNodeIdsToReboot; }
123 
128  inline void SetCacheNodeIdsToReboot(const Aws::Vector<Aws::String>& value) { m_cacheNodeIdsToRebootHasBeenSet = true; m_cacheNodeIdsToReboot = value; }
129 
134  inline void SetCacheNodeIdsToReboot(Aws::Vector<Aws::String>&& value) { m_cacheNodeIdsToRebootHasBeenSet = true; m_cacheNodeIdsToReboot = value; }
135 
140  inline CacheParameterGroupStatus& WithCacheNodeIdsToReboot(const Aws::Vector<Aws::String>& value) { SetCacheNodeIdsToReboot(value); return *this;}
141 
146  inline CacheParameterGroupStatus& WithCacheNodeIdsToReboot(Aws::Vector<Aws::String>&& value) { SetCacheNodeIdsToReboot(value); return *this;}
147 
152  inline CacheParameterGroupStatus& AddCacheNodeIdsToReboot(const Aws::String& value) { m_cacheNodeIdsToRebootHasBeenSet = true; m_cacheNodeIdsToReboot.push_back(value); return *this; }
153 
158  inline CacheParameterGroupStatus& AddCacheNodeIdsToReboot(Aws::String&& value) { m_cacheNodeIdsToRebootHasBeenSet = true; m_cacheNodeIdsToReboot.push_back(value); return *this; }
159 
164  inline CacheParameterGroupStatus& AddCacheNodeIdsToReboot(const char* value) { m_cacheNodeIdsToRebootHasBeenSet = true; m_cacheNodeIdsToReboot.push_back(value); return *this; }
165 
166  private:
167  Aws::String m_cacheParameterGroupName;
168  bool m_cacheParameterGroupNameHasBeenSet;
169  Aws::String m_parameterApplyStatus;
170  bool m_parameterApplyStatusHasBeenSet;
171  Aws::Vector<Aws::String> m_cacheNodeIdsToReboot;
172  bool m_cacheNodeIdsToRebootHasBeenSet;
173  };
174 
175 } // namespace Model
176 } // namespace ElastiCache
177 } // namespace Aws
CacheParameterGroupStatus & WithCacheParameterGroupName(const Aws::String &value)
CacheParameterGroupStatus & WithCacheNodeIdsToReboot(Aws::Vector< Aws::String > &&value)
CacheParameterGroupStatus & WithCacheParameterGroupName(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetCacheNodeIdsToReboot(const Aws::Vector< Aws::String > &value)
CacheParameterGroupStatus & WithCacheParameterGroupName(const char *value)
CacheParameterGroupStatus & WithParameterApplyStatus(Aws::String &&value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
CacheParameterGroupStatus & AddCacheNodeIdsToReboot(const Aws::String &value)
const Aws::Vector< Aws::String > & GetCacheNodeIdsToReboot() const
void SetCacheNodeIdsToReboot(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CacheParameterGroupStatus & WithParameterApplyStatus(const Aws::String &value)
#define AWS_ELASTICACHE_API
CacheParameterGroupStatus & AddCacheNodeIdsToReboot(const char *value)
CacheParameterGroupStatus & WithParameterApplyStatus(const char *value)
CacheParameterGroupStatus & AddCacheNodeIdsToReboot(Aws::String &&value)
CacheParameterGroupStatus & WithCacheNodeIdsToReboot(const Aws::Vector< Aws::String > &value)
JSON (JavaScript Object Notation).