AWS SDK for C++  0.12.9
AWS SDK for C++
MountPoint.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
16 #include <aws/ecs/ECS_EXPORTS.h>
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace ECS
29 {
30 namespace Model
31 {
32 
37  {
38  public:
39  MountPoint();
40  MountPoint(const Aws::Utils::Json::JsonValue& jsonValue);
41  MountPoint& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
47  inline const Aws::String& GetSourceVolume() const{ return m_sourceVolume; }
48 
52  inline void SetSourceVolume(const Aws::String& value) { m_sourceVolumeHasBeenSet = true; m_sourceVolume = value; }
53 
57  inline void SetSourceVolume(Aws::String&& value) { m_sourceVolumeHasBeenSet = true; m_sourceVolume = value; }
58 
62  inline void SetSourceVolume(const char* value) { m_sourceVolumeHasBeenSet = true; m_sourceVolume.assign(value); }
63 
67  inline MountPoint& WithSourceVolume(const Aws::String& value) { SetSourceVolume(value); return *this;}
68 
72  inline MountPoint& WithSourceVolume(Aws::String&& value) { SetSourceVolume(value); return *this;}
73 
77  inline MountPoint& WithSourceVolume(const char* value) { SetSourceVolume(value); return *this;}
78 
82  inline const Aws::String& GetContainerPath() const{ return m_containerPath; }
83 
87  inline void SetContainerPath(const Aws::String& value) { m_containerPathHasBeenSet = true; m_containerPath = value; }
88 
92  inline void SetContainerPath(Aws::String&& value) { m_containerPathHasBeenSet = true; m_containerPath = value; }
93 
97  inline void SetContainerPath(const char* value) { m_containerPathHasBeenSet = true; m_containerPath.assign(value); }
98 
102  inline MountPoint& WithContainerPath(const Aws::String& value) { SetContainerPath(value); return *this;}
103 
107  inline MountPoint& WithContainerPath(Aws::String&& value) { SetContainerPath(value); return *this;}
108 
112  inline MountPoint& WithContainerPath(const char* value) { SetContainerPath(value); return *this;}
113 
119  inline bool GetReadOnly() const{ return m_readOnly; }
120 
126  inline void SetReadOnly(bool value) { m_readOnlyHasBeenSet = true; m_readOnly = value; }
127 
133  inline MountPoint& WithReadOnly(bool value) { SetReadOnly(value); return *this;}
134 
135  private:
136  Aws::String m_sourceVolume;
137  bool m_sourceVolumeHasBeenSet;
138  Aws::String m_containerPath;
139  bool m_containerPathHasBeenSet;
140  bool m_readOnly;
141  bool m_readOnlyHasBeenSet;
142  };
143 
144 } // namespace Model
145 } // namespace ECS
146 } // namespace Aws
MountPoint & WithReadOnly(bool value)
Definition: MountPoint.h:133
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:34
void SetSourceVolume(const Aws::String &value)
Definition: MountPoint.h:52
MountPoint & WithContainerPath(const char *value)
Definition: MountPoint.h:112
MountPoint & WithContainerPath(const Aws::String &value)
Definition: MountPoint.h:102
const Aws::String & GetSourceVolume() const
Definition: MountPoint.h:47
void SetContainerPath(Aws::String &&value)
Definition: MountPoint.h:92
MountPoint & WithSourceVolume(const Aws::String &value)
Definition: MountPoint.h:67
void SetContainerPath(const char *value)
Definition: MountPoint.h:97
const Aws::String & GetContainerPath() const
Definition: MountPoint.h:82
void SetSourceVolume(const char *value)
Definition: MountPoint.h:62
void SetContainerPath(const Aws::String &value)
Definition: MountPoint.h:87
MountPoint & WithSourceVolume(Aws::String &&value)
Definition: MountPoint.h:72
MountPoint & WithContainerPath(Aws::String &&value)
Definition: MountPoint.h:107
MountPoint & WithSourceVolume(const char *value)
Definition: MountPoint.h:77
void SetReadOnly(bool value)
Definition: MountPoint.h:126
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetSourceVolume(Aws::String &&value)
Definition: MountPoint.h:57
JSON (JavaScript Object Notation).