AWS SDK for C++  1.9.71
AWS SDK for C++
EnvironmentFile.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace ECS
23 {
24 namespace Model
25 {
26 
49  {
50  public:
55 
56 
61  inline const Aws::String& GetValue() const{ return m_value; }
62 
67  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
68 
73  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
74 
79  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
80 
85  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
86 
91  inline EnvironmentFile& WithValue(const Aws::String& value) { SetValue(value); return *this;}
92 
97  inline EnvironmentFile& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
98 
103  inline EnvironmentFile& WithValue(const char* value) { SetValue(value); return *this;}
104 
105 
109  inline const EnvironmentFileType& GetType() const{ return m_type; }
110 
114  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
115 
119  inline void SetType(const EnvironmentFileType& value) { m_typeHasBeenSet = true; m_type = value; }
120 
124  inline void SetType(EnvironmentFileType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
125 
129  inline EnvironmentFile& WithType(const EnvironmentFileType& value) { SetType(value); return *this;}
130 
134  inline EnvironmentFile& WithType(EnvironmentFileType&& value) { SetType(std::move(value)); return *this;}
135 
136  private:
137 
138  Aws::String m_value;
139  bool m_valueHasBeenSet;
140 
141  EnvironmentFileType m_type;
142  bool m_typeHasBeenSet;
143  };
144 
145 } // namespace Model
146 } // namespace ECS
147 } // namespace Aws
Aws::ECS::Model::EnvironmentFileType
EnvironmentFileType
Definition: EnvironmentFileType.h:17
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::EnvironmentFile::WithValue
EnvironmentFile & WithValue(const Aws::String &value)
Definition: EnvironmentFile.h:91
Aws::ECS::Model::EnvironmentFile::SetValue
void SetValue(const Aws::String &value)
Definition: EnvironmentFile.h:73
Aws::ECS::Model::EnvironmentFile::WithValue
EnvironmentFile & WithValue(Aws::String &&value)
Definition: EnvironmentFile.h:97
Aws::ECS::Model::EnvironmentFile::EnvironmentFile
EnvironmentFile()
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::EnvironmentFile::EnvironmentFile
EnvironmentFile(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::EnvironmentFile
Definition: EnvironmentFile.h:49
Aws::ECS::Model::EnvironmentFile::operator=
EnvironmentFile & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::EnvironmentFile::WithType
EnvironmentFile & WithType(const EnvironmentFileType &value)
Definition: EnvironmentFile.h:129
Aws::ECS::Model::EnvironmentFile::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: EnvironmentFile.h:67
Aws::ECS::Model::EnvironmentFile::GetType
const EnvironmentFileType & GetType() const
Definition: EnvironmentFile.h:109
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::ECS::Model::EnvironmentFile::SetValue
void SetValue(Aws::String &&value)
Definition: EnvironmentFile.h:79
Aws::ECS::Model::EnvironmentFile::SetType
void SetType(const EnvironmentFileType &value)
Definition: EnvironmentFile.h:119
Aws::ECS::Model::EnvironmentFile::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: EnvironmentFile.h:114
EnvironmentFileType.h
Aws::ECS::Model::EnvironmentFile::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::EnvironmentFile::WithValue
EnvironmentFile & WithValue(const char *value)
Definition: EnvironmentFile.h:103
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::EnvironmentFile::SetType
void SetType(EnvironmentFileType &&value)
Definition: EnvironmentFile.h:124
Aws::ECS::Model::EnvironmentFile::SetValue
void SetValue(const char *value)
Definition: EnvironmentFile.h:85
ECS_EXPORTS.h
Aws::ECS::Model::EnvironmentFile::WithType
EnvironmentFile & WithType(EnvironmentFileType &&value)
Definition: EnvironmentFile.h:134
Aws::ECS::Model::EnvironmentFile::GetValue
const Aws::String & GetValue() const
Definition: EnvironmentFile.h:61