AWS SDK for C++  0.12.9
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
21 
22 namespace Aws
23 {
24 template<typename RESULT_TYPE>
25 class AmazonWebServiceResult;
26 
27 namespace Utils
28 {
29 namespace Json
30 {
31  class JsonValue;
32 } // namespace Json
33 } // namespace Utils
34 namespace EFS
35 {
36 namespace Model
37 {
42  {
43  public:
47 
52  inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
53 
58  inline void SetOwnerId(const Aws::String& value) { m_ownerId = value; }
59 
64  inline void SetOwnerId(Aws::String&& value) { m_ownerId = value; }
65 
70  inline void SetOwnerId(const char* value) { m_ownerId.assign(value); }
71 
76  inline CreateFileSystemResult& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
77 
82  inline CreateFileSystemResult& WithOwnerId(Aws::String&& value) { SetOwnerId(value); return *this;}
83 
88  inline CreateFileSystemResult& 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_creationToken = value; }
99 
103  inline void SetCreationToken(Aws::String&& value) { m_creationToken = value; }
104 
108  inline void SetCreationToken(const char* value) { m_creationToken.assign(value); }
109 
113  inline CreateFileSystemResult& WithCreationToken(const Aws::String& value) { SetCreationToken(value); return *this;}
114 
118  inline CreateFileSystemResult& WithCreationToken(Aws::String&& value) { SetCreationToken(value); return *this;}
119 
123  inline CreateFileSystemResult& 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_fileSystemId = value; }
134 
138  inline void SetFileSystemId(Aws::String&& value) { m_fileSystemId = value; }
139 
143  inline void SetFileSystemId(const char* value) { m_fileSystemId.assign(value); }
144 
148  inline CreateFileSystemResult& WithFileSystemId(const Aws::String& value) { SetFileSystemId(value); return *this;}
149 
153  inline CreateFileSystemResult& WithFileSystemId(Aws::String&& value) { SetFileSystemId(value); return *this;}
154 
158  inline CreateFileSystemResult& 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_creationTime = value; }
171 
176  inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = value; }
177 
182  inline CreateFileSystemResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
183 
188  inline CreateFileSystemResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(value); return *this;}
189 
194  inline const LifeCycleState& GetLifeCycleState() const{ return m_lifeCycleState; }
195 
200  inline void SetLifeCycleState(const LifeCycleState& value) { m_lifeCycleState = value; }
201 
206  inline void SetLifeCycleState(LifeCycleState&& value) { m_lifeCycleState = value; }
207 
212  inline CreateFileSystemResult& WithLifeCycleState(const LifeCycleState& value) { SetLifeCycleState(value); return *this;}
213 
218  inline CreateFileSystemResult& WithLifeCycleState(LifeCycleState&& value) { SetLifeCycleState(value); return *this;}
219 
225  inline const Aws::String& GetName() const{ return m_name; }
226 
232  inline void SetName(const Aws::String& value) { m_name = value; }
233 
239  inline void SetName(Aws::String&& value) { m_name = value; }
240 
246  inline void SetName(const char* value) { m_name.assign(value); }
247 
253  inline CreateFileSystemResult& WithName(const Aws::String& value) { SetName(value); return *this;}
254 
260  inline CreateFileSystemResult& WithName(Aws::String&& value) { SetName(value); return *this;}
261 
267  inline CreateFileSystemResult& WithName(const char* value) { SetName(value); return *this;}
268 
273  inline long GetNumberOfMountTargets() const{ return m_numberOfMountTargets; }
274 
279  inline void SetNumberOfMountTargets(long value) { m_numberOfMountTargets = value; }
280 
285  inline CreateFileSystemResult& WithNumberOfMountTargets(long value) { SetNumberOfMountTargets(value); return *this;}
286 
299  inline const FileSystemSize& GetSizeInBytes() const{ return m_sizeInBytes; }
300 
313  inline void SetSizeInBytes(const FileSystemSize& value) { m_sizeInBytes = value; }
314 
327  inline void SetSizeInBytes(FileSystemSize&& value) { m_sizeInBytes = value; }
328 
341  inline CreateFileSystemResult& WithSizeInBytes(const FileSystemSize& value) { SetSizeInBytes(value); return *this;}
342 
355  inline CreateFileSystemResult& WithSizeInBytes(FileSystemSize&& value) { SetSizeInBytes(value); return *this;}
356 
357  private:
358  Aws::String m_ownerId;
359  Aws::String m_creationToken;
360  Aws::String m_fileSystemId;
361  Aws::Utils::DateTime m_creationTime;
362  LifeCycleState m_lifeCycleState;
363  Aws::String m_name;
364  long m_numberOfMountTargets;
365  FileSystemSize m_sizeInBytes;
366  };
367 
368 } // namespace Model
369 } // namespace EFS
370 } // 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)
CreateFileSystemResult & WithCreationToken(Aws::String &&value)
#define AWS_EFS_API
Definition: EFS_EXPORTS.h:34
void SetSizeInBytes(const FileSystemSize &value)
void SetFileSystemId(const Aws::String &value)
const FileSystemSize & GetSizeInBytes() const
CreateFileSystemResult & WithCreationToken(const char *value)
const Aws::Utils::DateTime & GetCreationTime() const
CreateFileSystemResult & WithName(Aws::String &&value)
CreateFileSystemResult & WithNumberOfMountTargets(long value)
CreateFileSystemResult & WithFileSystemId(const Aws::String &value)
void SetOwnerId(const Aws::String &value)
void SetLifeCycleState(const LifeCycleState &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)
void SetCreationTime(Aws::Utils::DateTime &&value)
CreateFileSystemResult & WithFileSystemId(Aws::String &&value)
CreateFileSystemResult & WithName(const char *value)
CreateFileSystemResult & WithSizeInBytes(const FileSystemSize &value)
JSON (JavaScript Object Notation).