AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EcsPropertiesDetail.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/EcsTaskDetails.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 EcsPropertiesDetail() = default;
39 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<EcsTaskDetails>& GetTaskProperties() const { return m_taskProperties; }
47 inline bool TaskPropertiesHasBeenSet() const { return m_taskPropertiesHasBeenSet; }
48 template<typename TaskPropertiesT = Aws::Vector<EcsTaskDetails>>
49 void SetTaskProperties(TaskPropertiesT&& value) { m_taskPropertiesHasBeenSet = true; m_taskProperties = std::forward<TaskPropertiesT>(value); }
50 template<typename TaskPropertiesT = Aws::Vector<EcsTaskDetails>>
51 EcsPropertiesDetail& WithTaskProperties(TaskPropertiesT&& value) { SetTaskProperties(std::forward<TaskPropertiesT>(value)); return *this;}
52 template<typename TaskPropertiesT = EcsTaskDetails>
53 EcsPropertiesDetail& AddTaskProperties(TaskPropertiesT&& value) { m_taskPropertiesHasBeenSet = true; m_taskProperties.emplace_back(std::forward<TaskPropertiesT>(value)); return *this; }
55 private:
56
57 Aws::Vector<EcsTaskDetails> m_taskProperties;
58 bool m_taskPropertiesHasBeenSet = false;
59 };
60
61} // namespace Model
62} // namespace Batch
63} // namespace Aws
EcsPropertiesDetail & AddTaskProperties(TaskPropertiesT &&value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BATCH_API EcsPropertiesDetail()=default
EcsPropertiesDetail & WithTaskProperties(TaskPropertiesT &&value)
AWS_BATCH_API EcsPropertiesDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API EcsPropertiesDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< EcsTaskDetails > & GetTaskProperties() const
void SetTaskProperties(TaskPropertiesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue