AWS SDK for C++  1.9.157
AWS SDK for C++
VolumeFrom.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace ECS
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
45  inline const Aws::String& GetSourceContainer() const{ return m_sourceContainer; }
46 
51  inline bool SourceContainerHasBeenSet() const { return m_sourceContainerHasBeenSet; }
52 
57  inline void SetSourceContainer(const Aws::String& value) { m_sourceContainerHasBeenSet = true; m_sourceContainer = value; }
58 
63  inline void SetSourceContainer(Aws::String&& value) { m_sourceContainerHasBeenSet = true; m_sourceContainer = std::move(value); }
64 
69  inline void SetSourceContainer(const char* value) { m_sourceContainerHasBeenSet = true; m_sourceContainer.assign(value); }
70 
75  inline VolumeFrom& WithSourceContainer(const Aws::String& value) { SetSourceContainer(value); return *this;}
76 
81  inline VolumeFrom& WithSourceContainer(Aws::String&& value) { SetSourceContainer(std::move(value)); return *this;}
82 
87  inline VolumeFrom& WithSourceContainer(const char* value) { SetSourceContainer(value); return *this;}
88 
89 
95  inline bool GetReadOnly() const{ return m_readOnly; }
96 
102  inline bool ReadOnlyHasBeenSet() const { return m_readOnlyHasBeenSet; }
103 
109  inline void SetReadOnly(bool value) { m_readOnlyHasBeenSet = true; m_readOnly = value; }
110 
116  inline VolumeFrom& WithReadOnly(bool value) { SetReadOnly(value); return *this;}
117 
118  private:
119 
120  Aws::String m_sourceContainer;
121  bool m_sourceContainerHasBeenSet;
122 
123  bool m_readOnly;
124  bool m_readOnlyHasBeenSet;
125  };
126 
127 } // namespace Model
128 } // namespace ECS
129 } // namespace Aws
Aws::ECS::Model::VolumeFrom::SetSourceContainer
void SetSourceContainer(Aws::String &&value)
Definition: VolumeFrom.h:63
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::VolumeFrom::SourceContainerHasBeenSet
bool SourceContainerHasBeenSet() const
Definition: VolumeFrom.h:51
Aws::ECS::Model::VolumeFrom::WithSourceContainer
VolumeFrom & WithSourceContainer(const Aws::String &value)
Definition: VolumeFrom.h:75
Aws::ECS::Model::VolumeFrom::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::VolumeFrom::SetSourceContainer
void SetSourceContainer(const char *value)
Definition: VolumeFrom.h:69
Aws::ECS::Model::VolumeFrom::SetSourceContainer
void SetSourceContainer(const Aws::String &value)
Definition: VolumeFrom.h:57
Aws::ECS::Model::VolumeFrom::WithSourceContainer
VolumeFrom & WithSourceContainer(Aws::String &&value)
Definition: VolumeFrom.h:81
Aws::ECS::Model::VolumeFrom::GetReadOnly
bool GetReadOnly() const
Definition: VolumeFrom.h:95
Aws::ECS::Model::VolumeFrom::WithSourceContainer
VolumeFrom & WithSourceContainer(const char *value)
Definition: VolumeFrom.h:87
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::VolumeFrom::operator=
VolumeFrom & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::VolumeFrom::ReadOnlyHasBeenSet
bool ReadOnlyHasBeenSet() const
Definition: VolumeFrom.h:102
Aws::ECS::Model::VolumeFrom::SetReadOnly
void SetReadOnly(bool value)
Definition: VolumeFrom.h:109
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::VolumeFrom::VolumeFrom
VolumeFrom()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::VolumeFrom::GetSourceContainer
const Aws::String & GetSourceContainer() const
Definition: VolumeFrom.h:45
Aws::ECS::Model::VolumeFrom::WithReadOnly
VolumeFrom & WithReadOnly(bool value)
Definition: VolumeFrom.h:116
Aws::ECS::Model::VolumeFrom::VolumeFrom
VolumeFrom(Aws::Utils::Json::JsonView jsonValue)
ECS_EXPORTS.h
Aws::ECS::Model::VolumeFrom
Definition: VolumeFrom.h:33