AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ArrayPropertiesDetail.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.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 ArrayPropertiesDetail() = default;
34 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::Map<Aws::String, int>& GetStatusSummary() const { return m_statusSummary; }
42 inline bool StatusSummaryHasBeenSet() const { return m_statusSummaryHasBeenSet; }
43 template <typename StatusSummaryT = Aws::Map<Aws::String, int>>
44 void SetStatusSummary(StatusSummaryT&& value) {
45 m_statusSummaryHasBeenSet = true;
46 m_statusSummary = std::forward<StatusSummaryT>(value);
47 }
48 template <typename StatusSummaryT = Aws::Map<Aws::String, int>>
49 ArrayPropertiesDetail& WithStatusSummary(StatusSummaryT&& value) {
50 SetStatusSummary(std::forward<StatusSummaryT>(value));
51 return *this;
52 }
54 m_statusSummaryHasBeenSet = true;
55 m_statusSummary.emplace(key, value);
56 return *this;
57 }
59
61
65 inline int GetSize() const { return m_size; }
66 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
67 inline void SetSize(int value) {
68 m_sizeHasBeenSet = true;
69 m_size = value;
70 }
71 inline ArrayPropertiesDetail& WithSize(int value) {
72 SetSize(value);
73 return *this;
74 }
76
78
82 inline int GetIndex() const { return m_index; }
83 inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
84 inline void SetIndex(int value) {
85 m_indexHasBeenSet = true;
86 m_index = value;
87 }
88 inline ArrayPropertiesDetail& WithIndex(int value) {
89 SetIndex(value);
90 return *this;
91 }
93 private:
94 Aws::Map<Aws::String, int> m_statusSummary;
95
96 int m_size{0};
97
98 int m_index{0};
99 bool m_statusSummaryHasBeenSet = false;
100 bool m_sizeHasBeenSet = false;
101 bool m_indexHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace Batch
106} // namespace Aws
ArrayPropertiesDetail & WithSize(int value)
const Aws::Map< Aws::String, int > & GetStatusSummary() const
ArrayPropertiesDetail & WithStatusSummary(StatusSummaryT &&value)
ArrayPropertiesDetail & WithIndex(int value)
AWS_BATCH_API ArrayPropertiesDetail()=default
AWS_BATCH_API ArrayPropertiesDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
ArrayPropertiesDetail & AddStatusSummary(Aws::String key, int value)
void SetStatusSummary(StatusSummaryT &&value)
AWS_BATCH_API ArrayPropertiesDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue