AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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