AWS SDK for C++

AWS SDK for C++ Version 1.11.773

Loading...
Searching...
No Matches
FrontOfQuotaSharesDetail.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/FrontOfQuotaShareJobSummary.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Batch {
23namespace Model {
24
33 public:
34 AWS_BATCH_API FrontOfQuotaSharesDetail() = default;
37 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
45 inline bool QuotaSharesHasBeenSet() const { return m_quotaSharesHasBeenSet; }
46 template <typename QuotaSharesT = Aws::Map<Aws::String, Aws::Vector<FrontOfQuotaShareJobSummary>>>
47 void SetQuotaShares(QuotaSharesT&& value) {
48 m_quotaSharesHasBeenSet = true;
49 m_quotaShares = std::forward<QuotaSharesT>(value);
50 }
51 template <typename QuotaSharesT = Aws::Map<Aws::String, Aws::Vector<FrontOfQuotaShareJobSummary>>>
53 SetQuotaShares(std::forward<QuotaSharesT>(value));
54 return *this;
55 }
56 template <typename QuotaSharesKeyT = Aws::String, typename QuotaSharesValueT = Aws::Vector<FrontOfQuotaShareJobSummary>>
57 FrontOfQuotaSharesDetail& AddQuotaShares(QuotaSharesKeyT&& key, QuotaSharesValueT&& value) {
58 m_quotaSharesHasBeenSet = true;
59 m_quotaShares.emplace(std::forward<QuotaSharesKeyT>(key), std::forward<QuotaSharesValueT>(value));
60 return *this;
61 }
63
65
69 inline long long GetLastUpdatedAt() const { return m_lastUpdatedAt; }
70 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
71 inline void SetLastUpdatedAt(long long value) {
72 m_lastUpdatedAtHasBeenSet = true;
73 m_lastUpdatedAt = value;
74 }
76 SetLastUpdatedAt(value);
77 return *this;
78 }
80 private:
82
83 long long m_lastUpdatedAt{0};
84 bool m_quotaSharesHasBeenSet = false;
85 bool m_lastUpdatedAtHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace Batch
90} // namespace Aws
AWS_BATCH_API FrontOfQuotaSharesDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API FrontOfQuotaSharesDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
FrontOfQuotaSharesDetail & WithLastUpdatedAt(long long value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
FrontOfQuotaSharesDetail & WithQuotaShares(QuotaSharesT &&value)
AWS_BATCH_API FrontOfQuotaSharesDetail()=default
const Aws::Map< Aws::String, Aws::Vector< FrontOfQuotaShareJobSummary > > & GetQuotaShares() const
FrontOfQuotaSharesDetail & AddQuotaShares(QuotaSharesKeyT &&key, QuotaSharesValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue