AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateConsumableResourceRequest.h
1
6#pragma once
7#include <aws/batch/BatchRequest.h>
8#include <aws/batch/Batch_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Batch {
16namespace Model {
17
21 public:
22 AWS_BATCH_API CreateConsumableResourceRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateConsumableResource"; }
29
30 AWS_BATCH_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetConsumableResourceName() const { return m_consumableResourceName; }
37 inline bool ConsumableResourceNameHasBeenSet() const { return m_consumableResourceNameHasBeenSet; }
38 template <typename ConsumableResourceNameT = Aws::String>
39 void SetConsumableResourceName(ConsumableResourceNameT&& value) {
40 m_consumableResourceNameHasBeenSet = true;
41 m_consumableResourceName = std::forward<ConsumableResourceNameT>(value);
42 }
43 template <typename ConsumableResourceNameT = Aws::String>
45 SetConsumableResourceName(std::forward<ConsumableResourceNameT>(value));
46 return *this;
47 }
49
51
55 inline long long GetTotalQuantity() const { return m_totalQuantity; }
56 inline bool TotalQuantityHasBeenSet() const { return m_totalQuantityHasBeenSet; }
57 inline void SetTotalQuantity(long long value) {
58 m_totalQuantityHasBeenSet = true;
59 m_totalQuantity = value;
60 }
62 SetTotalQuantity(value);
63 return *this;
64 }
66
68
73 inline const Aws::String& GetResourceType() const { return m_resourceType; }
74 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
75 template <typename ResourceTypeT = Aws::String>
76 void SetResourceType(ResourceTypeT&& value) {
77 m_resourceTypeHasBeenSet = true;
78 m_resourceType = std::forward<ResourceTypeT>(value);
79 }
80 template <typename ResourceTypeT = Aws::String>
82 SetResourceType(std::forward<ResourceTypeT>(value));
83 return *this;
84 }
86
88
95 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
96 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
97 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
98 void SetTags(TagsT&& value) {
99 m_tagsHasBeenSet = true;
100 m_tags = std::forward<TagsT>(value);
101 }
102 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
104 SetTags(std::forward<TagsT>(value));
105 return *this;
106 }
107 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
108 CreateConsumableResourceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
109 m_tagsHasBeenSet = true;
110 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_consumableResourceName;
116
117 long long m_totalQuantity{0};
118
119 Aws::String m_resourceType;
120
122 bool m_consumableResourceNameHasBeenSet = false;
123 bool m_totalQuantityHasBeenSet = false;
124 bool m_resourceTypeHasBeenSet = false;
125 bool m_tagsHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace Batch
130} // namespace Aws
CreateConsumableResourceRequest & WithTags(TagsT &&value)
AWS_BATCH_API Aws::String SerializePayload() const override
CreateConsumableResourceRequest & WithConsumableResourceName(ConsumableResourceNameT &&value)
CreateConsumableResourceRequest & WithTotalQuantity(long long value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateConsumableResourceRequest & WithResourceType(ResourceTypeT &&value)
CreateConsumableResourceRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
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