AWS SDK for C++  0.14.3
AWS SDK for C++
FileSystemDescription.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
22 
23 namespace Aws
24 {
25 namespace Utils
26 {
27 namespace Json
28 {
29  class JsonValue;
30 } // namespace Json
31 } // namespace Utils
32 namespace EFS
33 {
34 namespace Model
35 {
36 
41  {
42  public:
45  FileSystemDescription& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
46  Aws::Utils::Json::JsonValue Jsonize() const;
47 
52  inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
53 
58  inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
59 
64  inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
65 
70  inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
71 
76  inline FileSystemDescription& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
77 
82  inline FileSystemDescription& WithOwnerId(Aws::String&& value) { SetOwnerId(value); return *this;}
83 
88  inline FileSystemDescription& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
89 
93  inline const Aws::String& GetCreationToken() const{ return m_creationToken; }
94 
98  inline void SetCreationToken(const Aws::String& value) { m_creationTokenHasBeenSet = true; m_creationToken = value; }
99 
103  inline void SetCreationToken(Aws::String&& value) { m_creationTokenHasBeenSet = true; m_creationToken = value; }
104 
108  inline void SetCreationToken(const char* value) { m_creationTokenHasBeenSet = true; m_creationToken.assign(value); }
109 
113  inline FileSystemDescription& WithCreationToken(const Aws::String& value) { SetCreationToken(value); return *this;}
114 
118  inline FileSystemDescription& WithCreationToken(Aws::String&& value) { SetCreationToken(value); return *this;}
119 
123  inline FileSystemDescription& WithCreationToken(const char* value) { SetCreationToken(value); return *this;}
124 
128  inline const Aws::String& GetFileSystemId() const{ return m_fileSystemId; }
129 
133  inline void SetFileSystemId(const Aws::String& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = value; }
134 
138  inline void SetFileSystemId(Aws::String&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = value; }
139 
143  inline void SetFileSystemId(const char* value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId.assign(value); }
144 
148  inline FileSystemDescription& WithFileSystemId(const Aws::String& value) { SetFileSystemId(value); return *this;}
149 
153  inline FileSystemDescription& WithFileSystemId(Aws::String&& value) { SetFileSystemId(value); return *this;}
154 
158  inline FileSystemDescription& WithFileSystemId(const char* value) { SetFileSystemId(value); return *this;}
159 
164  inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
165 
170  inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
171 
176  inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
177 
182  inline FileSystemDescription& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
183 
188  inline FileSystemDescription& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(value); return *this;}
189 
193  inline const LifeCycleState& GetLifeCycleState() const{ return m_lifeCycleState; }
194 
198  inline void SetLifeCycleState(const LifeCycleState& value) { m_lifeCycleStateHasBeenSet = true; m_lifeCycleState = value; }
199 
203  inline void SetLifeCycleState(LifeCycleState&& value) { m_lifeCycleStateHasBeenSet = true; m_lifeCycleState = value; }
204 
208  inline FileSystemDescription& WithLifeCycleState(const LifeCycleState& value) { SetLifeCycleState(value); return *this;}
209 
213  inline FileSystemDescription& WithLifeCycleState(LifeCycleState&& value) { SetLifeCycleState(value); return *this;}
214 
220  inline const Aws::String& GetName() const{ return m_name; }
221 
227  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
228 
234  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
235 
241  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
242 
248  inline FileSystemDescription& WithName(const Aws::String& value) { SetName(value); return *this;}
249 
255  inline FileSystemDescription& WithName(Aws::String&& value) { SetName(value); return *this;}
256 
262  inline FileSystemDescription& WithName(const char* value) { SetName(value); return *this;}
263 
268  inline int GetNumberOfMountTargets() const{ return m_numberOfMountTargets; }
269 
274  inline void SetNumberOfMountTargets(int value) { m_numberOfMountTargetsHasBeenSet = true; m_numberOfMountTargets = value; }
275 
280  inline FileSystemDescription& WithNumberOfMountTargets(int value) { SetNumberOfMountTargets(value); return *this;}
281 
293  inline const FileSystemSize& GetSizeInBytes() const{ return m_sizeInBytes; }
294 
306  inline void SetSizeInBytes(const FileSystemSize& value) { m_sizeInBytesHasBeenSet = true; m_sizeInBytes = value; }
307 
319  inline void SetSizeInBytes(FileSystemSize&& value) { m_sizeInBytesHasBeenSet = true; m_sizeInBytes = value; }
320 
332  inline FileSystemDescription& WithSizeInBytes(const FileSystemSize& value) { SetSizeInBytes(value); return *this;}
333 
345  inline FileSystemDescription& WithSizeInBytes(FileSystemSize&& value) { SetSizeInBytes(value); return *this;}
346 
350  inline const PerformanceMode& GetPerformanceMode() const{ return m_performanceMode; }
351 
355  inline void SetPerformanceMode(const PerformanceMode& value) { m_performanceModeHasBeenSet = true; m_performanceMode = value; }
356 
360  inline void SetPerformanceMode(PerformanceMode&& value) { m_performanceModeHasBeenSet = true; m_performanceMode = value; }
361 
365  inline FileSystemDescription& WithPerformanceMode(const PerformanceMode& value) { SetPerformanceMode(value); return *this;}
366 
370  inline FileSystemDescription& WithPerformanceMode(PerformanceMode&& value) { SetPerformanceMode(value); return *this;}
371 
372  private:
373  Aws::String m_ownerId;
374  bool m_ownerIdHasBeenSet;
375  Aws::String m_creationToken;
376  bool m_creationTokenHasBeenSet;
377  Aws::String m_fileSystemId;
378  bool m_fileSystemIdHasBeenSet;
379  Aws::Utils::DateTime m_creationTime;
380  bool m_creationTimeHasBeenSet;
381  LifeCycleState m_lifeCycleState;
382  bool m_lifeCycleStateHasBeenSet;
383  Aws::String m_name;
384  bool m_nameHasBeenSet;
385  int m_numberOfMountTargets;
386  bool m_numberOfMountTargetsHasBeenSet;
387  FileSystemSize m_sizeInBytes;
388  bool m_sizeInBytesHasBeenSet;
389  PerformanceMode m_performanceMode;
390  bool m_performanceModeHasBeenSet;
391  };
392 
393 } // namespace Model
394 } // namespace EFS
395 } // namespace Aws
FileSystemDescription & WithSizeInBytes(const FileSystemSize &value)
void SetCreationTime(const Aws::Utils::DateTime &value)
FileSystemDescription & WithCreationToken(const char *value)
const Aws::String & GetCreationToken() const
const PerformanceMode & GetPerformanceMode() const
void SetCreationTime(Aws::Utils::DateTime &&value)
void SetLifeCycleState(LifeCycleState &&value)
FileSystemDescription & WithCreationTime(Aws::Utils::DateTime &&value)
FileSystemDescription & WithNumberOfMountTargets(int value)
void SetLifeCycleState(const LifeCycleState &value)
FileSystemDescription & WithOwnerId(const Aws::String &value)
void SetOwnerId(const Aws::String &value)
const Aws::Utils::DateTime & GetCreationTime() const
void SetSizeInBytes(const FileSystemSize &value)
FileSystemDescription & WithOwnerId(Aws::String &&value)
#define AWS_EFS_API
Definition: EFS_EXPORTS.h:37
FileSystemDescription & WithPerformanceMode(const PerformanceMode &value)
const Aws::String & GetOwnerId() const
const FileSystemSize & GetSizeInBytes() const
FileSystemDescription & WithSizeInBytes(FileSystemSize &&value)
FileSystemDescription & WithCreationToken(const Aws::String &value)
FileSystemDescription & WithName(const Aws::String &value)
FileSystemDescription & WithFileSystemId(Aws::String &&value)
void SetCreationToken(const Aws::String &value)
void SetPerformanceMode(PerformanceMode &&value)
FileSystemDescription & WithLifeCycleState(const LifeCycleState &value)
FileSystemDescription & WithOwnerId(const char *value)
void SetSizeInBytes(FileSystemSize &&value)
void SetName(const Aws::String &value)
void SetPerformanceMode(const PerformanceMode &value)
FileSystemDescription & WithName(const char *value)
const LifeCycleState & GetLifeCycleState() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
FileSystemDescription & WithPerformanceMode(PerformanceMode &&value)
FileSystemDescription & WithCreationTime(const Aws::Utils::DateTime &value)
FileSystemDescription & WithCreationToken(Aws::String &&value)
FileSystemDescription & WithName(Aws::String &&value)
FileSystemDescription & WithFileSystemId(const char *value)
FileSystemDescription & WithFileSystemId(const Aws::String &value)
void SetFileSystemId(const Aws::String &value)
const Aws::String & GetFileSystemId() const
FileSystemDescription & WithLifeCycleState(LifeCycleState &&value)
JSON (JavaScript Object Notation).