AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline CreateSchedulingPolicyRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline CreateSchedulingPolicyRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline CreateSchedulingPolicyRequest& WithName(const char* value) { SetName(value); return *this;}
56
58
61 inline const FairsharePolicy& GetFairsharePolicy() const{ return m_fairsharePolicy; }
62 inline bool FairsharePolicyHasBeenSet() const { return m_fairsharePolicyHasBeenSet; }
63 inline void SetFairsharePolicy(const FairsharePolicy& value) { m_fairsharePolicyHasBeenSet = true; m_fairsharePolicy = value; }
64 inline void SetFairsharePolicy(FairsharePolicy&& value) { m_fairsharePolicyHasBeenSet = true; m_fairsharePolicy = std::move(value); }
66 inline CreateSchedulingPolicyRequest& WithFairsharePolicy(FairsharePolicy&& value) { SetFairsharePolicy(std::move(value)); return *this;}
68
70
82 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
83 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
84 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
85 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
87 inline CreateSchedulingPolicyRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
88 inline CreateSchedulingPolicyRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
89 inline CreateSchedulingPolicyRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
90 inline CreateSchedulingPolicyRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
91 inline CreateSchedulingPolicyRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
92 inline CreateSchedulingPolicyRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
93 inline CreateSchedulingPolicyRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
94 inline CreateSchedulingPolicyRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
96 private:
97
98 Aws::String m_name;
99 bool m_nameHasBeenSet = false;
100
101 FairsharePolicy m_fairsharePolicy;
102 bool m_fairsharePolicyHasBeenSet = false;
103
105 bool m_tagsHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace Batch
110} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateSchedulingPolicyRequest & WithName(Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateSchedulingPolicyRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateSchedulingPolicyRequest & WithFairsharePolicy(const FairsharePolicy &value)
CreateSchedulingPolicyRequest & AddTags(const char *key, const char *value)
CreateSchedulingPolicyRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateSchedulingPolicyRequest & WithName(const char *value)
CreateSchedulingPolicyRequest & WithFairsharePolicy(FairsharePolicy &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_BATCH_API Aws::String SerializePayload() const override
CreateSchedulingPolicyRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateSchedulingPolicyRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateSchedulingPolicyRequest & WithName(const Aws::String &value)
CreateSchedulingPolicyRequest & AddTags(Aws::String &&key, const char *value)
CreateSchedulingPolicyRequest & AddTags(const char *key, Aws::String &&value)
CreateSchedulingPolicyRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateSchedulingPolicyRequest & AddTags(Aws::String &&key, const Aws::String &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