AWS SDK for C++

AWS SDK for C++ Version 1.11.780

Loading...
Searching...
No Matches
CreateSchedulingPolicyRequest.h
1
6#pragma once
7#include <aws/batch/BatchRequest.h>
8#include <aws/batch/Batch_EXPORTS.h>
9#include <aws/batch/model/FairsharePolicy.h>
10#include <aws/batch/model/QuotaSharePolicy.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Batch {
18namespace Model {
19
27 public:
28 AWS_BATCH_API CreateSchedulingPolicyRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateSchedulingPolicy"; }
35
36 AWS_BATCH_API Aws::String SerializePayload() const override;
37
39
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
64 inline const QuotaSharePolicy& GetQuotaSharePolicy() const { return m_quotaSharePolicy; }
65 inline bool QuotaSharePolicyHasBeenSet() const { return m_quotaSharePolicyHasBeenSet; }
66 template <typename QuotaSharePolicyT = QuotaSharePolicy>
67 void SetQuotaSharePolicy(QuotaSharePolicyT&& value) {
68 m_quotaSharePolicyHasBeenSet = true;
69 m_quotaSharePolicy = std::forward<QuotaSharePolicyT>(value);
70 }
71 template <typename QuotaSharePolicyT = QuotaSharePolicy>
73 SetQuotaSharePolicy(std::forward<QuotaSharePolicyT>(value));
74 return *this;
75 }
77
79
84 inline const FairsharePolicy& GetFairsharePolicy() const { return m_fairsharePolicy; }
85 inline bool FairsharePolicyHasBeenSet() const { return m_fairsharePolicyHasBeenSet; }
86 template <typename FairsharePolicyT = FairsharePolicy>
87 void SetFairsharePolicy(FairsharePolicyT&& value) {
88 m_fairsharePolicyHasBeenSet = true;
89 m_fairsharePolicy = std::forward<FairsharePolicyT>(value);
90 }
91 template <typename FairsharePolicyT = FairsharePolicy>
93 SetFairsharePolicy(std::forward<FairsharePolicyT>(value));
94 return *this;
95 }
97
99
111 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
112 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
113 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
114 void SetTags(TagsT&& value) {
115 m_tagsHasBeenSet = true;
116 m_tags = std::forward<TagsT>(value);
117 }
118 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
120 SetTags(std::forward<TagsT>(value));
121 return *this;
122 }
123 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
124 CreateSchedulingPolicyRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
125 m_tagsHasBeenSet = true;
126 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
127 return *this;
128 }
130 private:
131 Aws::String m_name;
132
133 QuotaSharePolicy m_quotaSharePolicy;
134
135 FairsharePolicy m_fairsharePolicy;
136
138 bool m_nameHasBeenSet = false;
139 bool m_quotaSharePolicyHasBeenSet = false;
140 bool m_fairsharePolicyHasBeenSet = false;
141 bool m_tagsHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace Batch
146} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateSchedulingPolicyRequest & WithName(NameT &&value)
CreateSchedulingPolicyRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_BATCH_API CreateSchedulingPolicyRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateSchedulingPolicyRequest & WithTags(TagsT &&value)
AWS_BATCH_API Aws::String SerializePayload() const override
CreateSchedulingPolicyRequest & WithFairsharePolicy(FairsharePolicyT &&value)
CreateSchedulingPolicyRequest & WithQuotaSharePolicy(QuotaSharePolicyT &&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