AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
EcsPropertiesOverride.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/TaskPropertiesOverride.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 EcsPropertiesOverride() = default;
34 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::Vector<TaskPropertiesOverride>& GetTaskProperties() const { return m_taskProperties; }
42 inline bool TaskPropertiesHasBeenSet() const { return m_taskPropertiesHasBeenSet; }
43 template <typename TaskPropertiesT = Aws::Vector<TaskPropertiesOverride>>
44 void SetTaskProperties(TaskPropertiesT&& value) {
45 m_taskPropertiesHasBeenSet = true;
46 m_taskProperties = std::forward<TaskPropertiesT>(value);
47 }
48 template <typename TaskPropertiesT = Aws::Vector<TaskPropertiesOverride>>
49 EcsPropertiesOverride& WithTaskProperties(TaskPropertiesT&& value) {
50 SetTaskProperties(std::forward<TaskPropertiesT>(value));
51 return *this;
52 }
53 template <typename TaskPropertiesT = TaskPropertiesOverride>
54 EcsPropertiesOverride& AddTaskProperties(TaskPropertiesT&& value) {
55 m_taskPropertiesHasBeenSet = true;
56 m_taskProperties.emplace_back(std::forward<TaskPropertiesT>(value));
57 return *this;
58 }
60 private:
62 bool m_taskPropertiesHasBeenSet = false;
63};
64
65} // namespace Model
66} // namespace Batch
67} // namespace Aws
AWS_BATCH_API EcsPropertiesOverride(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BATCH_API EcsPropertiesOverride()=default
void SetTaskProperties(TaskPropertiesT &&value)
AWS_BATCH_API EcsPropertiesOverride & operator=(Aws::Utils::Json::JsonView jsonValue)
EcsPropertiesOverride & AddTaskProperties(TaskPropertiesT &&value)
const Aws::Vector< TaskPropertiesOverride > & GetTaskProperties() const
EcsPropertiesOverride & WithTaskProperties(TaskPropertiesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue