AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
EnvironmentFile.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECS_EXPORTS.h>
9#include <aws/ecs/model/EnvironmentFileType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ECS {
21namespace Model {
22
50 public:
51 AWS_ECS_API EnvironmentFile() = default;
55
57
61 inline const Aws::String& GetValue() const { return m_value; }
62 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
63 template <typename ValueT = Aws::String>
64 void SetValue(ValueT&& value) {
65 m_valueHasBeenSet = true;
66 m_value = std::forward<ValueT>(value);
67 }
68 template <typename ValueT = Aws::String>
69 EnvironmentFile& WithValue(ValueT&& value) {
70 SetValue(std::forward<ValueT>(value));
71 return *this;
72 }
74
76
80 inline EnvironmentFileType GetType() const { return m_type; }
81 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
82 inline void SetType(EnvironmentFileType value) {
83 m_typeHasBeenSet = true;
84 m_type = value;
85 }
87 SetType(value);
88 return *this;
89 }
91 private:
92 Aws::String m_value;
93
95 bool m_valueHasBeenSet = false;
96 bool m_typeHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace ECS
101} // namespace Aws
const Aws::String & GetValue() const
EnvironmentFile & WithValue(ValueT &&value)
AWS_ECS_API EnvironmentFile & operator=(Aws::Utils::Json::JsonView jsonValue)
EnvironmentFile & WithType(EnvironmentFileType value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(EnvironmentFileType value)
AWS_ECS_API EnvironmentFile()=default
AWS_ECS_API EnvironmentFile(Aws::Utils::Json::JsonView jsonValue)
EnvironmentFileType GetType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue