AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#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 ArrayPropertiesDetail() = default;
39 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::Map<Aws::String, int>& GetStatusSummary() const { return m_statusSummary; }
48 inline bool StatusSummaryHasBeenSet() const { return m_statusSummaryHasBeenSet; }
49 template<typename StatusSummaryT = Aws::Map<Aws::String, int>>
50 void SetStatusSummary(StatusSummaryT&& value) { m_statusSummaryHasBeenSet = true; m_statusSummary = std::forward<StatusSummaryT>(value); }
51 template<typename StatusSummaryT = Aws::Map<Aws::String, int>>
52 ArrayPropertiesDetail& WithStatusSummary(StatusSummaryT&& value) { SetStatusSummary(std::forward<StatusSummaryT>(value)); return *this;}
54 m_statusSummaryHasBeenSet = true; m_statusSummary.emplace(key, value); return *this;
55 }
57
59
63 inline int GetSize() const { return m_size; }
64 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
65 inline void SetSize(int value) { m_sizeHasBeenSet = true; m_size = value; }
66 inline ArrayPropertiesDetail& WithSize(int value) { SetSize(value); return *this;}
68
70
74 inline int GetIndex() const { return m_index; }
75 inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
76 inline void SetIndex(int value) { m_indexHasBeenSet = true; m_index = value; }
77 inline ArrayPropertiesDetail& WithIndex(int value) { SetIndex(value); return *this;}
79 private:
80
81 Aws::Map<Aws::String, int> m_statusSummary;
82 bool m_statusSummaryHasBeenSet = false;
83
84 int m_size{0};
85 bool m_sizeHasBeenSet = false;
86
87 int m_index{0};
88 bool m_indexHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace Batch
93} // 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