AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
EcsProperties.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/EcsTaskProperties.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Batch {
21namespace Model {
22
30 public:
31 AWS_BATCH_API EcsProperties() = default;
32 AWS_BATCH_API EcsProperties(Aws::Utils::Json::JsonView jsonValue);
34 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline const Aws::Vector<EcsTaskProperties>& GetTaskProperties() const { return m_taskProperties; }
43 inline bool TaskPropertiesHasBeenSet() const { return m_taskPropertiesHasBeenSet; }
44 template <typename TaskPropertiesT = Aws::Vector<EcsTaskProperties>>
45 void SetTaskProperties(TaskPropertiesT&& value) {
46 m_taskPropertiesHasBeenSet = true;
47 m_taskProperties = std::forward<TaskPropertiesT>(value);
48 }
49 template <typename TaskPropertiesT = Aws::Vector<EcsTaskProperties>>
50 EcsProperties& WithTaskProperties(TaskPropertiesT&& value) {
51 SetTaskProperties(std::forward<TaskPropertiesT>(value));
52 return *this;
53 }
54 template <typename TaskPropertiesT = EcsTaskProperties>
55 EcsProperties& AddTaskProperties(TaskPropertiesT&& value) {
56 m_taskPropertiesHasBeenSet = true;
57 m_taskProperties.emplace_back(std::forward<TaskPropertiesT>(value));
58 return *this;
59 }
61 private:
62 Aws::Vector<EcsTaskProperties> m_taskProperties;
63 bool m_taskPropertiesHasBeenSet = false;
64};
65
66} // namespace Model
67} // namespace Batch
68} // namespace Aws
const Aws::Vector< EcsTaskProperties > & GetTaskProperties() const
AWS_BATCH_API EcsProperties()=default
AWS_BATCH_API EcsProperties(Aws::Utils::Json::JsonView jsonValue)
void SetTaskProperties(TaskPropertiesT &&value)
EcsProperties & WithTaskProperties(TaskPropertiesT &&value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
EcsProperties & AddTaskProperties(TaskPropertiesT &&value)
AWS_BATCH_API EcsProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue