AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VolumeFrom.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ECS
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_ECS_API VolumeFrom();
36 AWS_ECS_API VolumeFrom(Aws::Utils::Json::JsonView jsonValue);
39
40
42
46 inline const Aws::String& GetSourceContainer() const{ return m_sourceContainer; }
47 inline bool SourceContainerHasBeenSet() const { return m_sourceContainerHasBeenSet; }
48 inline void SetSourceContainer(const Aws::String& value) { m_sourceContainerHasBeenSet = true; m_sourceContainer = value; }
49 inline void SetSourceContainer(Aws::String&& value) { m_sourceContainerHasBeenSet = true; m_sourceContainer = std::move(value); }
50 inline void SetSourceContainer(const char* value) { m_sourceContainerHasBeenSet = true; m_sourceContainer.assign(value); }
51 inline VolumeFrom& WithSourceContainer(const Aws::String& value) { SetSourceContainer(value); return *this;}
52 inline VolumeFrom& WithSourceContainer(Aws::String&& value) { SetSourceContainer(std::move(value)); return *this;}
53 inline VolumeFrom& WithSourceContainer(const char* value) { SetSourceContainer(value); return *this;}
55
57
62 inline bool GetReadOnly() const{ return m_readOnly; }
63 inline bool ReadOnlyHasBeenSet() const { return m_readOnlyHasBeenSet; }
64 inline void SetReadOnly(bool value) { m_readOnlyHasBeenSet = true; m_readOnly = value; }
65 inline VolumeFrom& WithReadOnly(bool value) { SetReadOnly(value); return *this;}
67 private:
68
69 Aws::String m_sourceContainer;
70 bool m_sourceContainerHasBeenSet = false;
71
72 bool m_readOnly;
73 bool m_readOnlyHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace ECS
78} // namespace Aws
bool ReadOnlyHasBeenSet() const
Definition VolumeFrom.h:63
VolumeFrom & WithSourceContainer(const Aws::String &value)
Definition VolumeFrom.h:51
const Aws::String & GetSourceContainer() const
Definition VolumeFrom.h:46
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetReadOnly(bool value)
Definition VolumeFrom.h:64
bool SourceContainerHasBeenSet() const
Definition VolumeFrom.h:47
VolumeFrom & WithSourceContainer(const char *value)
Definition VolumeFrom.h:53
AWS_ECS_API VolumeFrom(Aws::Utils::Json::JsonView jsonValue)
void SetSourceContainer(const char *value)
Definition VolumeFrom.h:50
void SetSourceContainer(const Aws::String &value)
Definition VolumeFrom.h:48
VolumeFrom & WithSourceContainer(Aws::String &&value)
Definition VolumeFrom.h:52
AWS_ECS_API VolumeFrom & operator=(Aws::Utils::Json::JsonView jsonValue)
VolumeFrom & WithReadOnly(bool value)
Definition VolumeFrom.h:65
void SetSourceContainer(Aws::String &&value)
Definition VolumeFrom.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue