AWS SDK for C++  1.9.155
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 
51  {
52  public:
57 
58 
63  inline const Aws::String& GetValue() const{ return m_value; }
64 
69  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
70 
75  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
76 
81  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
82 
87  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
88 
93  inline EnvironmentFile& WithValue(const Aws::String& value) { SetValue(value); return *this;}
94 
99  inline EnvironmentFile& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
100 
105  inline EnvironmentFile& WithValue(const char* value) { SetValue(value); return *this;}
106 
107 
111  inline const EnvironmentFileType& GetType() const{ return m_type; }
112 
116  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
117 
121  inline void SetType(const EnvironmentFileType& value) { m_typeHasBeenSet = true; m_type = value; }
122 
126  inline void SetType(EnvironmentFileType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
127 
131  inline EnvironmentFile& WithType(const EnvironmentFileType& value) { SetType(value); return *this;}
132 
136  inline EnvironmentFile& WithType(EnvironmentFileType&& value) { SetType(std::move(value)); return *this;}
137 
138  private:
139 
140  Aws::String m_value;
141  bool m_valueHasBeenSet;
142 
143  EnvironmentFileType m_type;
144  bool m_typeHasBeenSet;
145  };
146 
147 } // namespace Model
148 } // namespace ECS
149 } // 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:93
Aws::ECS::Model::EnvironmentFile::SetValue
void SetValue(const Aws::String &value)
Definition: EnvironmentFile.h:75
Aws::ECS::Model::EnvironmentFile::WithValue
EnvironmentFile & WithValue(Aws::String &&value)
Definition: EnvironmentFile.h:99
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:51
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:131
Aws::ECS::Model::EnvironmentFile::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: EnvironmentFile.h:69
Aws::ECS::Model::EnvironmentFile::GetType
const EnvironmentFileType & GetType() const
Definition: EnvironmentFile.h:111
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::EnvironmentFile::SetValue
void SetValue(Aws::String &&value)
Definition: EnvironmentFile.h:81
Aws::ECS::Model::EnvironmentFile::SetType
void SetType(const EnvironmentFileType &value)
Definition: EnvironmentFile.h:121
Aws::ECS::Model::EnvironmentFile::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: EnvironmentFile.h:116
EnvironmentFileType.h
Aws::ECS::Model::EnvironmentFile::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::EnvironmentFile::WithValue
EnvironmentFile & WithValue(const char *value)
Definition: EnvironmentFile.h:105
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:126
Aws::ECS::Model::EnvironmentFile::SetValue
void SetValue(const char *value)
Definition: EnvironmentFile.h:87
ECS_EXPORTS.h
Aws::ECS::Model::EnvironmentFile::WithType
EnvironmentFile & WithType(EnvironmentFileType &&value)
Definition: EnvironmentFile.h:136
Aws::ECS::Model::EnvironmentFile::GetValue
const Aws::String & GetValue() const
Definition: EnvironmentFile.h:63