AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateSchedulingPolicyRequest.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/batch/model/FairsharePolicy.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Batch
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_BATCH_API CreateSchedulingPolicyRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateSchedulingPolicy"; }
37
38 AWS_BATCH_API Aws::String SerializePayload() const override;
39
40
42
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 CreateSchedulingPolicyRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
54
56
59 inline const FairsharePolicy& GetFairsharePolicy() const { return m_fairsharePolicy; }
60 inline bool FairsharePolicyHasBeenSet() const { return m_fairsharePolicyHasBeenSet; }
61 template<typename FairsharePolicyT = FairsharePolicy>
62 void SetFairsharePolicy(FairsharePolicyT&& value) { m_fairsharePolicyHasBeenSet = true; m_fairsharePolicy = std::forward<FairsharePolicyT>(value); }
63 template<typename FairsharePolicyT = FairsharePolicy>
64 CreateSchedulingPolicyRequest& WithFairsharePolicy(FairsharePolicyT&& value) { SetFairsharePolicy(std::forward<FairsharePolicyT>(value)); return *this;}
66
68
80 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
81 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
82 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
83 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
84 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
85 CreateSchedulingPolicyRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
86 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
87 CreateSchedulingPolicyRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
88 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
89 }
91 private:
92
93 Aws::String m_name;
94 bool m_nameHasBeenSet = false;
95
96 FairsharePolicy m_fairsharePolicy;
97 bool m_fairsharePolicyHasBeenSet = false;
98
100 bool m_tagsHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace Batch
105} // 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