AWS SDK for C++  0.12.9
AWS SDK for C++
NodeSnapshot.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:
41  NodeSnapshot();
42  NodeSnapshot(const Aws::Utils::Xml::XmlNode& xmlNode);
43  NodeSnapshot& 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& GetCacheNodeId() const{ return m_cacheNodeId; }
52 
56  inline void SetCacheNodeId(const Aws::String& value) { m_cacheNodeIdHasBeenSet = true; m_cacheNodeId = value; }
57 
61  inline void SetCacheNodeId(Aws::String&& value) { m_cacheNodeIdHasBeenSet = true; m_cacheNodeId = value; }
62 
66  inline void SetCacheNodeId(const char* value) { m_cacheNodeIdHasBeenSet = true; m_cacheNodeId.assign(value); }
67 
71  inline NodeSnapshot& WithCacheNodeId(const Aws::String& value) { SetCacheNodeId(value); return *this;}
72 
76  inline NodeSnapshot& WithCacheNodeId(Aws::String&& value) { SetCacheNodeId(value); return *this;}
77 
81  inline NodeSnapshot& WithCacheNodeId(const char* value) { SetCacheNodeId(value); return *this;}
82 
86  inline const Aws::String& GetCacheSize() const{ return m_cacheSize; }
87 
91  inline void SetCacheSize(const Aws::String& value) { m_cacheSizeHasBeenSet = true; m_cacheSize = value; }
92 
96  inline void SetCacheSize(Aws::String&& value) { m_cacheSizeHasBeenSet = true; m_cacheSize = value; }
97 
101  inline void SetCacheSize(const char* value) { m_cacheSizeHasBeenSet = true; m_cacheSize.assign(value); }
102 
106  inline NodeSnapshot& WithCacheSize(const Aws::String& value) { SetCacheSize(value); return *this;}
107 
111  inline NodeSnapshot& WithCacheSize(Aws::String&& value) { SetCacheSize(value); return *this;}
112 
116  inline NodeSnapshot& WithCacheSize(const char* value) { SetCacheSize(value); return *this;}
117 
122  inline const Aws::Utils::DateTime& GetCacheNodeCreateTime() const{ return m_cacheNodeCreateTime; }
123 
128  inline void SetCacheNodeCreateTime(const Aws::Utils::DateTime& value) { m_cacheNodeCreateTimeHasBeenSet = true; m_cacheNodeCreateTime = value; }
129 
134  inline void SetCacheNodeCreateTime(Aws::Utils::DateTime&& value) { m_cacheNodeCreateTimeHasBeenSet = true; m_cacheNodeCreateTime = value; }
135 
140  inline NodeSnapshot& WithCacheNodeCreateTime(const Aws::Utils::DateTime& value) { SetCacheNodeCreateTime(value); return *this;}
141 
146  inline NodeSnapshot& WithCacheNodeCreateTime(Aws::Utils::DateTime&& value) { SetCacheNodeCreateTime(value); return *this;}
147 
152  inline const Aws::Utils::DateTime& GetSnapshotCreateTime() const{ return m_snapshotCreateTime; }
153 
158  inline void SetSnapshotCreateTime(const Aws::Utils::DateTime& value) { m_snapshotCreateTimeHasBeenSet = true; m_snapshotCreateTime = value; }
159 
164  inline void SetSnapshotCreateTime(Aws::Utils::DateTime&& value) { m_snapshotCreateTimeHasBeenSet = true; m_snapshotCreateTime = value; }
165 
170  inline NodeSnapshot& WithSnapshotCreateTime(const Aws::Utils::DateTime& value) { SetSnapshotCreateTime(value); return *this;}
171 
176  inline NodeSnapshot& WithSnapshotCreateTime(Aws::Utils::DateTime&& value) { SetSnapshotCreateTime(value); return *this;}
177 
178  private:
179  Aws::String m_cacheNodeId;
180  bool m_cacheNodeIdHasBeenSet;
181  Aws::String m_cacheSize;
182  bool m_cacheSizeHasBeenSet;
183  Aws::Utils::DateTime m_cacheNodeCreateTime;
184  bool m_cacheNodeCreateTimeHasBeenSet;
185  Aws::Utils::DateTime m_snapshotCreateTime;
186  bool m_snapshotCreateTimeHasBeenSet;
187  };
188 
189 } // namespace Model
190 } // namespace ElastiCache
191 } // namespace Aws
void SetSnapshotCreateTime(Aws::Utils::DateTime &&value)
Definition: NodeSnapshot.h:164
NodeSnapshot & WithCacheSize(const char *value)
Definition: NodeSnapshot.h:116
void SetCacheSize(Aws::String &&value)
Definition: NodeSnapshot.h:96
NodeSnapshot & WithCacheSize(const Aws::String &value)
Definition: NodeSnapshot.h:106
NodeSnapshot & WithSnapshotCreateTime(Aws::Utils::DateTime &&value)
Definition: NodeSnapshot.h:176
void SetCacheNodeCreateTime(Aws::Utils::DateTime &&value)
Definition: NodeSnapshot.h:134
void SetSnapshotCreateTime(const Aws::Utils::DateTime &value)
Definition: NodeSnapshot.h:158
void SetCacheSize(const Aws::String &value)
Definition: NodeSnapshot.h:91
NodeSnapshot & WithCacheNodeId(const Aws::String &value)
Definition: NodeSnapshot.h:71
NodeSnapshot & WithCacheNodeId(Aws::String &&value)
Definition: NodeSnapshot.h:76
void SetCacheNodeId(const char *value)
Definition: NodeSnapshot.h:66
NodeSnapshot & WithCacheNodeCreateTime(const Aws::Utils::DateTime &value)
Definition: NodeSnapshot.h:140
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
const Aws::String & GetCacheNodeId() const
Definition: NodeSnapshot.h:51
NodeSnapshot & WithSnapshotCreateTime(const Aws::Utils::DateTime &value)
Definition: NodeSnapshot.h:170
void SetCacheNodeCreateTime(const Aws::Utils::DateTime &value)
Definition: NodeSnapshot.h:128
const Aws::String & GetCacheSize() const
Definition: NodeSnapshot.h:86
const Aws::Utils::DateTime & GetCacheNodeCreateTime() const
Definition: NodeSnapshot.h:122
void SetCacheSize(const char *value)
Definition: NodeSnapshot.h:101
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
NodeSnapshot & WithCacheNodeId(const char *value)
Definition: NodeSnapshot.h:81
void SetCacheNodeId(Aws::String &&value)
Definition: NodeSnapshot.h:61
#define AWS_ELASTICACHE_API
NodeSnapshot & WithCacheNodeCreateTime(Aws::Utils::DateTime &&value)
Definition: NodeSnapshot.h:146
const Aws::Utils::DateTime & GetSnapshotCreateTime() const
Definition: NodeSnapshot.h:152
JSON (JavaScript Object Notation).
NodeSnapshot & WithCacheSize(Aws::String &&value)
Definition: NodeSnapshot.h:111
void SetCacheNodeId(const Aws::String &value)
Definition: NodeSnapshot.h:56