AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Batch {
17namespace Model {
18
26 public:
27 AWS_BATCH_API CreateSchedulingPolicyRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateSchedulingPolicy"; }
34
35 AWS_BATCH_API Aws::String SerializePayload() const override;
36
38
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
61 inline const FairsharePolicy& GetFairsharePolicy() const { return m_fairsharePolicy; }
62 inline bool FairsharePolicyHasBeenSet() const { return m_fairsharePolicyHasBeenSet; }
63 template <typename FairsharePolicyT = FairsharePolicy>
64 void SetFairsharePolicy(FairsharePolicyT&& value) {
65 m_fairsharePolicyHasBeenSet = true;
66 m_fairsharePolicy = std::forward<FairsharePolicyT>(value);
67 }
68 template <typename FairsharePolicyT = FairsharePolicy>
70 SetFairsharePolicy(std::forward<FairsharePolicyT>(value));
71 return *this;
72 }
74
76
88 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
89 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
90 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
91 void SetTags(TagsT&& value) {
92 m_tagsHasBeenSet = true;
93 m_tags = std::forward<TagsT>(value);
94 }
95 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
97 SetTags(std::forward<TagsT>(value));
98 return *this;
99 }
100 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
101 CreateSchedulingPolicyRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
102 m_tagsHasBeenSet = true;
103 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_name;
109
110 FairsharePolicy m_fairsharePolicy;
111
113 bool m_nameHasBeenSet = false;
114 bool m_fairsharePolicyHasBeenSet = false;
115 bool m_tagsHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace Batch
120} // 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)
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