AWS SDK for C++  0.12.9
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
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Json
27 {
28  class JsonValue;
29 } // namespace Json
30 } // namespace Utils
31 namespace EFS
32 {
33 namespace Model
34 {
35 
40  {
41  public:
44  FileSystemDescription& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
51  inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
52 
57  inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
58 
63  inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
64 
69  inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
70 
75  inline FileSystemDescription& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
76 
81  inline FileSystemDescription& WithOwnerId(Aws::String&& value) { SetOwnerId(value); return *this;}
82 
87  inline FileSystemDescription& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
88 
92  inline const Aws::String& GetCreationToken() const{ return m_creationToken; }
93 
97  inline void SetCreationToken(const Aws::String& value) { m_creationTokenHasBeenSet = true; m_creationToken = value; }
98 
102  inline void SetCreationToken(Aws::String&& value) { m_creationTokenHasBeenSet = true; m_creationToken = value; }
103 
107  inline void SetCreationToken(const char* value) { m_creationTokenHasBeenSet = true; m_creationToken.assign(value); }
108 
112  inline FileSystemDescription& WithCreationToken(const Aws::String& value) { SetCreationToken(value); return *this;}
113 
117  inline FileSystemDescription& WithCreationToken(Aws::String&& value) { SetCreationToken(value); return *this;}
118 
122  inline FileSystemDescription& WithCreationToken(const char* value) { SetCreationToken(value); return *this;}
123 
127  inline const Aws::String& GetFileSystemId() const{ return m_fileSystemId; }
128 
132  inline void SetFileSystemId(const Aws::String& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = value; }
133 
137  inline void SetFileSystemId(Aws::String&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = value; }
138 
142  inline void SetFileSystemId(const char* value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId.assign(value); }
143 
147  inline FileSystemDescription& WithFileSystemId(const Aws::String& value) { SetFileSystemId(value); return *this;}
148 
152  inline FileSystemDescription& WithFileSystemId(Aws::String&& value) { SetFileSystemId(value); return *this;}
153 
157  inline FileSystemDescription& WithFileSystemId(const char* value) { SetFileSystemId(value); return *this;}
158 
163  inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
164 
169  inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
170 
175  inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
176 
181  inline FileSystemDescription& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
182 
187  inline FileSystemDescription& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(value); return *this;}
188 
193  inline const LifeCycleState& GetLifeCycleState() const{ return m_lifeCycleState; }
194 
199  inline void SetLifeCycleState(const LifeCycleState& value) { m_lifeCycleStateHasBeenSet = true; m_lifeCycleState = value; }
200 
205  inline void SetLifeCycleState(LifeCycleState&& value) { m_lifeCycleStateHasBeenSet = true; m_lifeCycleState = value; }
206 
211  inline FileSystemDescription& WithLifeCycleState(const LifeCycleState& value) { SetLifeCycleState(value); return *this;}
212 
217  inline FileSystemDescription& WithLifeCycleState(LifeCycleState&& value) { SetLifeCycleState(value); return *this;}
218 
224  inline const Aws::String& GetName() const{ return m_name; }
225 
231  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
232 
238  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
239 
245  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
246 
252  inline FileSystemDescription& WithName(const Aws::String& value) { SetName(value); return *this;}
253 
259  inline FileSystemDescription& WithName(Aws::String&& value) { SetName(value); return *this;}
260 
266  inline FileSystemDescription& WithName(const char* value) { SetName(value); return *this;}
267 
272  inline long GetNumberOfMountTargets() const{ return m_numberOfMountTargets; }
273 
278  inline void SetNumberOfMountTargets(long value) { m_numberOfMountTargetsHasBeenSet = true; m_numberOfMountTargets = value; }
279 
284  inline FileSystemDescription& WithNumberOfMountTargets(long value) { SetNumberOfMountTargets(value); return *this;}
285 
298  inline const FileSystemSize& GetSizeInBytes() const{ return m_sizeInBytes; }
299 
312  inline void SetSizeInBytes(const FileSystemSize& value) { m_sizeInBytesHasBeenSet = true; m_sizeInBytes = value; }
313 
326  inline void SetSizeInBytes(FileSystemSize&& value) { m_sizeInBytesHasBeenSet = true; m_sizeInBytes = value; }
327 
340  inline FileSystemDescription& WithSizeInBytes(const FileSystemSize& value) { SetSizeInBytes(value); return *this;}
341 
354  inline FileSystemDescription& WithSizeInBytes(FileSystemSize&& value) { SetSizeInBytes(value); return *this;}
355 
356  private:
357  Aws::String m_ownerId;
358  bool m_ownerIdHasBeenSet;
359  Aws::String m_creationToken;
360  bool m_creationTokenHasBeenSet;
361  Aws::String m_fileSystemId;
362  bool m_fileSystemIdHasBeenSet;
363  Aws::Utils::DateTime m_creationTime;
364  bool m_creationTimeHasBeenSet;
365  LifeCycleState m_lifeCycleState;
366  bool m_lifeCycleStateHasBeenSet;
367  Aws::String m_name;
368  bool m_nameHasBeenSet;
369  long m_numberOfMountTargets;
370  bool m_numberOfMountTargetsHasBeenSet;
371  FileSystemSize m_sizeInBytes;
372  bool m_sizeInBytesHasBeenSet;
373  };
374 
375 } // namespace Model
376 } // namespace EFS
377 } // namespace Aws
FileSystemDescription & WithSizeInBytes(const FileSystemSize &value)
void SetCreationTime(const Aws::Utils::DateTime &value)
FileSystemDescription & WithCreationToken(const char *value)
const Aws::String & GetCreationToken() const
FileSystemDescription & WithNumberOfMountTargets(long value)
void SetCreationTime(Aws::Utils::DateTime &&value)
void SetLifeCycleState(LifeCycleState &&value)
FileSystemDescription & WithCreationTime(Aws::Utils::DateTime &&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:34
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)
FileSystemDescription & WithLifeCycleState(const LifeCycleState &value)
FileSystemDescription & WithOwnerId(const char *value)
void SetSizeInBytes(FileSystemSize &&value)
void SetName(const Aws::String &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 & 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).