AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ConsumableResourceRequirement.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Batch
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_BATCH_API ConsumableResourceRequirement() = default;
38 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetConsumableResource() const { return m_consumableResource; }
46 inline bool ConsumableResourceHasBeenSet() const { return m_consumableResourceHasBeenSet; }
47 template<typename ConsumableResourceT = Aws::String>
48 void SetConsumableResource(ConsumableResourceT&& value) { m_consumableResourceHasBeenSet = true; m_consumableResource = std::forward<ConsumableResourceT>(value); }
49 template<typename ConsumableResourceT = Aws::String>
50 ConsumableResourceRequirement& WithConsumableResource(ConsumableResourceT&& value) { SetConsumableResource(std::forward<ConsumableResourceT>(value)); return *this;}
52
54
57 inline long long GetQuantity() const { return m_quantity; }
58 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
59 inline void SetQuantity(long long value) { m_quantityHasBeenSet = true; m_quantity = value; }
60 inline ConsumableResourceRequirement& WithQuantity(long long value) { SetQuantity(value); return *this;}
62 private:
63
64 Aws::String m_consumableResource;
65 bool m_consumableResourceHasBeenSet = false;
66
67 long long m_quantity{0};
68 bool m_quantityHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace Batch
73} // namespace Aws
ConsumableResourceRequirement & WithConsumableResource(ConsumableResourceT &&value)
AWS_BATCH_API ConsumableResourceRequirement()=default
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BATCH_API ConsumableResourceRequirement & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API ConsumableResourceRequirement(Aws::Utils::Json::JsonView jsonValue)
ConsumableResourceRequirement & WithQuantity(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue