AWS SDK for C++  0.14.3
AWS SDK for C++
VolumeFrom.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  VolumeFrom();
40  VolumeFrom(const Aws::Utils::Json::JsonValue& jsonValue);
41  VolumeFrom& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
47  inline const Aws::String& GetSourceContainer() const{ return m_sourceContainer; }
48 
52  inline void SetSourceContainer(const Aws::String& value) { m_sourceContainerHasBeenSet = true; m_sourceContainer = value; }
53 
57  inline void SetSourceContainer(Aws::String&& value) { m_sourceContainerHasBeenSet = true; m_sourceContainer = value; }
58 
62  inline void SetSourceContainer(const char* value) { m_sourceContainerHasBeenSet = true; m_sourceContainer.assign(value); }
63 
67  inline VolumeFrom& WithSourceContainer(const Aws::String& value) { SetSourceContainer(value); return *this;}
68 
72  inline VolumeFrom& WithSourceContainer(Aws::String&& value) { SetSourceContainer(value); return *this;}
73 
77  inline VolumeFrom& WithSourceContainer(const char* value) { SetSourceContainer(value); return *this;}
78 
84  inline bool GetReadOnly() const{ return m_readOnly; }
85 
91  inline void SetReadOnly(bool value) { m_readOnlyHasBeenSet = true; m_readOnly = value; }
92 
98  inline VolumeFrom& WithReadOnly(bool value) { SetReadOnly(value); return *this;}
99 
100  private:
101  Aws::String m_sourceContainer;
102  bool m_sourceContainerHasBeenSet;
103  bool m_readOnly;
104  bool m_readOnlyHasBeenSet;
105  };
106 
107 } // namespace Model
108 } // namespace ECS
109 } // namespace Aws
bool GetReadOnly() const
Definition: VolumeFrom.h:84
VolumeFrom & WithSourceContainer(const char *value)
Definition: VolumeFrom.h:77
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:37
void SetReadOnly(bool value)
Definition: VolumeFrom.h:91
VolumeFrom & WithReadOnly(bool value)
Definition: VolumeFrom.h:98
void SetSourceContainer(Aws::String &&value)
Definition: VolumeFrom.h:57
void SetSourceContainer(const char *value)
Definition: VolumeFrom.h:62
VolumeFrom & WithSourceContainer(Aws::String &&value)
Definition: VolumeFrom.h:72
void SetSourceContainer(const Aws::String &value)
Definition: VolumeFrom.h:52
VolumeFrom & WithSourceContainer(const Aws::String &value)
Definition: VolumeFrom.h:67
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
JSON (JavaScript Object Notation).
const Aws::String & GetSourceContainer() const
Definition: VolumeFrom.h:47