AWS SDK for C++  0.14.3
AWS SDK for C++
CreateFileSystemResult.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 template<typename RESULT_TYPE>
26 class AmazonWebServiceResult;
27 
28 namespace Utils
29 {
30 namespace Json
31 {
32  class JsonValue;
33 } // namespace Json
34 } // namespace Utils
35 namespace EFS
36 {
37 namespace Model
38 {
43  {
44  public:
48 
53  inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
54 
59  inline void SetOwnerId(const Aws::String& value) { m_ownerId = value; }
60 
65  inline void SetOwnerId(Aws::String&& value) { m_ownerId = value; }
66 
71  inline void SetOwnerId(const char* value) { m_ownerId.assign(value); }
72 
77  inline CreateFileSystemResult& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
78 
83  inline CreateFileSystemResult& WithOwnerId(Aws::String&& value) { SetOwnerId(value); return *this;}
84 
89  inline CreateFileSystemResult& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
90 
94  inline const Aws::String& GetCreationToken() const{ return m_creationToken; }
95 
99  inline void SetCreationToken(const Aws::String& value) { m_creationToken = value; }
100 
104  inline void SetCreationToken(Aws::String&& value) { m_creationToken = value; }
105 
109  inline void SetCreationToken(const char* value) { m_creationToken.assign(value); }
110 
114  inline CreateFileSystemResult& WithCreationToken(const Aws::String& value) { SetCreationToken(value); return *this;}
115 
119  inline CreateFileSystemResult& WithCreationToken(Aws::String&& value) { SetCreationToken(value); return *this;}
120 
124  inline CreateFileSystemResult& WithCreationToken(const char* value) { SetCreationToken(value); return *this;}
125 
129  inline const Aws::String& GetFileSystemId() const{ return m_fileSystemId; }
130 
134  inline void SetFileSystemId(const Aws::String& value) { m_fileSystemId = value; }
135 
139  inline void SetFileSystemId(Aws::String&& value) { m_fileSystemId = value; }
140 
144  inline void SetFileSystemId(const char* value) { m_fileSystemId.assign(value); }
145 
149  inline CreateFileSystemResult& WithFileSystemId(const Aws::String& value) { SetFileSystemId(value); return *this;}
150 
154  inline CreateFileSystemResult& WithFileSystemId(Aws::String&& value) { SetFileSystemId(value); return *this;}
155 
159  inline CreateFileSystemResult& WithFileSystemId(const char* value) { SetFileSystemId(value); return *this;}
160 
165  inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
166 
171  inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; }
172 
177  inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = value; }
178 
183  inline CreateFileSystemResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
184 
189  inline CreateFileSystemResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(value); return *this;}
190 
194  inline const LifeCycleState& GetLifeCycleState() const{ return m_lifeCycleState; }
195 
199  inline void SetLifeCycleState(const LifeCycleState& value) { m_lifeCycleState = value; }
200 
204  inline void SetLifeCycleState(LifeCycleState&& value) { m_lifeCycleState = value; }
205 
209  inline CreateFileSystemResult& WithLifeCycleState(const LifeCycleState& value) { SetLifeCycleState(value); return *this;}
210 
214  inline CreateFileSystemResult& WithLifeCycleState(LifeCycleState&& value) { SetLifeCycleState(value); return *this;}
215 
221  inline const Aws::String& GetName() const{ return m_name; }
222 
228  inline void SetName(const Aws::String& value) { m_name = value; }
229 
235  inline void SetName(Aws::String&& value) { m_name = value; }
236 
242  inline void SetName(const char* value) { m_name.assign(value); }
243 
249  inline CreateFileSystemResult& WithName(const Aws::String& value) { SetName(value); return *this;}
250 
256  inline CreateFileSystemResult& WithName(Aws::String&& value) { SetName(value); return *this;}
257 
263  inline CreateFileSystemResult& WithName(const char* value) { SetName(value); return *this;}
264 
269  inline int GetNumberOfMountTargets() const{ return m_numberOfMountTargets; }
270 
275  inline void SetNumberOfMountTargets(int value) { m_numberOfMountTargets = value; }
276 
281  inline CreateFileSystemResult& WithNumberOfMountTargets(int value) { SetNumberOfMountTargets(value); return *this;}
282 
294  inline const FileSystemSize& GetSizeInBytes() const{ return m_sizeInBytes; }
295 
307  inline void SetSizeInBytes(const FileSystemSize& value) { m_sizeInBytes = value; }
308 
320  inline void SetSizeInBytes(FileSystemSize&& value) { m_sizeInBytes = value; }
321 
333  inline CreateFileSystemResult& WithSizeInBytes(const FileSystemSize& value) { SetSizeInBytes(value); return *this;}
334 
346  inline CreateFileSystemResult& WithSizeInBytes(FileSystemSize&& value) { SetSizeInBytes(value); return *this;}
347 
351  inline const PerformanceMode& GetPerformanceMode() const{ return m_performanceMode; }
352 
356  inline void SetPerformanceMode(const PerformanceMode& value) { m_performanceMode = value; }
357 
361  inline void SetPerformanceMode(PerformanceMode&& value) { m_performanceMode = value; }
362 
366  inline CreateFileSystemResult& WithPerformanceMode(const PerformanceMode& value) { SetPerformanceMode(value); return *this;}
367 
371  inline CreateFileSystemResult& WithPerformanceMode(PerformanceMode&& value) { SetPerformanceMode(value); return *this;}
372 
373  private:
374  Aws::String m_ownerId;
375  Aws::String m_creationToken;
376  Aws::String m_fileSystemId;
377  Aws::Utils::DateTime m_creationTime;
378  LifeCycleState m_lifeCycleState;
379  Aws::String m_name;
380  int m_numberOfMountTargets;
381  FileSystemSize m_sizeInBytes;
382  PerformanceMode m_performanceMode;
383  };
384 
385 } // namespace Model
386 } // namespace EFS
387 } // namespace Aws
CreateFileSystemResult & WithLifeCycleState(const LifeCycleState &value)
CreateFileSystemResult & WithOwnerId(const Aws::String &value)
CreateFileSystemResult & WithFileSystemId(const char *value)
CreateFileSystemResult & WithCreationToken(const Aws::String &value)
void SetCreationTime(const Aws::Utils::DateTime &value)
void SetCreationToken(const Aws::String &value)
CreateFileSystemResult & WithSizeInBytes(FileSystemSize &&value)
const Aws::String & GetFileSystemId() const
CreateFileSystemResult & WithName(const Aws::String &value)
CreateFileSystemResult & WithLifeCycleState(LifeCycleState &&value)
CreateFileSystemResult & WithCreationTime(const Aws::Utils::DateTime &value)
CreateFileSystemResult & WithCreationTime(Aws::Utils::DateTime &&value)
void SetLifeCycleState(LifeCycleState &&value)
void SetPerformanceMode(const PerformanceMode &value)
CreateFileSystemResult & WithCreationToken(Aws::String &&value)
#define AWS_EFS_API
Definition: EFS_EXPORTS.h:37
void SetSizeInBytes(const FileSystemSize &value)
void SetFileSystemId(const Aws::String &value)
CreateFileSystemResult & WithNumberOfMountTargets(int value)
const FileSystemSize & GetSizeInBytes() const
CreateFileSystemResult & WithCreationToken(const char *value)
const Aws::Utils::DateTime & GetCreationTime() const
CreateFileSystemResult & WithName(Aws::String &&value)
CreateFileSystemResult & WithFileSystemId(const Aws::String &value)
void SetOwnerId(const Aws::String &value)
void SetLifeCycleState(const LifeCycleState &value)
CreateFileSystemResult & WithPerformanceMode(PerformanceMode &&value)
CreateFileSystemResult & WithOwnerId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const LifeCycleState & GetLifeCycleState() const
const Aws::String & GetCreationToken() const
CreateFileSystemResult & WithOwnerId(const char *value)
const PerformanceMode & GetPerformanceMode() const
void SetCreationTime(Aws::Utils::DateTime &&value)
CreateFileSystemResult & WithPerformanceMode(const PerformanceMode &value)
CreateFileSystemResult & WithFileSystemId(Aws::String &&value)
void SetPerformanceMode(PerformanceMode &&value)
CreateFileSystemResult & WithName(const char *value)
CreateFileSystemResult & WithSizeInBytes(const FileSystemSize &value)
JSON (JavaScript Object Notation).