AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
EcsPropertiesOverride.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/batch/model/TaskPropertiesOverride.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Batch
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_BATCH_API EcsPropertiesOverride() = default;
39 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::Vector<TaskPropertiesOverride>& GetTaskProperties() const { return m_taskProperties; }
48 inline bool TaskPropertiesHasBeenSet() const { return m_taskPropertiesHasBeenSet; }
49 template<typename TaskPropertiesT = Aws::Vector<TaskPropertiesOverride>>
50 void SetTaskProperties(TaskPropertiesT&& value) { m_taskPropertiesHasBeenSet = true; m_taskProperties = std::forward<TaskPropertiesT>(value); }
51 template<typename TaskPropertiesT = Aws::Vector<TaskPropertiesOverride>>
52 EcsPropertiesOverride& WithTaskProperties(TaskPropertiesT&& value) { SetTaskProperties(std::forward<TaskPropertiesT>(value)); return *this;}
53 template<typename TaskPropertiesT = TaskPropertiesOverride>
54 EcsPropertiesOverride& AddTaskProperties(TaskPropertiesT&& value) { m_taskPropertiesHasBeenSet = true; m_taskProperties.emplace_back(std::forward<TaskPropertiesT>(value)); return *this; }
56 private:
57
59 bool m_taskPropertiesHasBeenSet = false;
60 };
61
62} // namespace Model
63} // namespace Batch
64} // 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