AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateConsumableResourceRequest.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/BatchRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Batch
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_BATCH_API CreateConsumableResourceRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateConsumableResource"; }
32
33 AWS_BATCH_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetConsumableResourceName() const { return m_consumableResourceName; }
41 inline bool ConsumableResourceNameHasBeenSet() const { return m_consumableResourceNameHasBeenSet; }
42 template<typename ConsumableResourceNameT = Aws::String>
43 void SetConsumableResourceName(ConsumableResourceNameT&& value) { m_consumableResourceNameHasBeenSet = true; m_consumableResourceName = std::forward<ConsumableResourceNameT>(value); }
44 template<typename ConsumableResourceNameT = Aws::String>
45 CreateConsumableResourceRequest& WithConsumableResourceName(ConsumableResourceNameT&& value) { SetConsumableResourceName(std::forward<ConsumableResourceNameT>(value)); return *this;}
47
49
53 inline long long GetTotalQuantity() const { return m_totalQuantity; }
54 inline bool TotalQuantityHasBeenSet() const { return m_totalQuantityHasBeenSet; }
55 inline void SetTotalQuantity(long long value) { m_totalQuantityHasBeenSet = true; m_totalQuantity = value; }
56 inline CreateConsumableResourceRequest& WithTotalQuantity(long long value) { SetTotalQuantity(value); return *this;}
58
60
65 inline const Aws::String& GetResourceType() const { return m_resourceType; }
66 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
67 template<typename ResourceTypeT = Aws::String>
68 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
69 template<typename ResourceTypeT = Aws::String>
70 CreateConsumableResourceRequest& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
72
74
81 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
82 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
83 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
84 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
85 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
86 CreateConsumableResourceRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
87 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
88 CreateConsumableResourceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
89 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
90 }
92 private:
93
94 Aws::String m_consumableResourceName;
95 bool m_consumableResourceNameHasBeenSet = false;
96
97 long long m_totalQuantity{0};
98 bool m_totalQuantityHasBeenSet = false;
99
100 Aws::String m_resourceType;
101 bool m_resourceTypeHasBeenSet = false;
102
104 bool m_tagsHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace Batch
109} // 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