AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SchedulingPolicyDetail.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/batch/model/FairsharePolicy.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Batch
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_BATCH_API SchedulingPolicyDetail();
39 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetName() const{ return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline SchedulingPolicyDetail& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline SchedulingPolicyDetail& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline SchedulingPolicyDetail& WithName(const char* value) { SetName(value); return *this;}
55
57
62 inline const Aws::String& GetArn() const{ return m_arn; }
63 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
64 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
65 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
66 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
67 inline SchedulingPolicyDetail& WithArn(const Aws::String& value) { SetArn(value); return *this;}
68 inline SchedulingPolicyDetail& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
69 inline SchedulingPolicyDetail& WithArn(const char* value) { SetArn(value); return *this;}
71
73
76 inline const FairsharePolicy& GetFairsharePolicy() const{ return m_fairsharePolicy; }
77 inline bool FairsharePolicyHasBeenSet() const { return m_fairsharePolicyHasBeenSet; }
78 inline void SetFairsharePolicy(const FairsharePolicy& value) { m_fairsharePolicyHasBeenSet = true; m_fairsharePolicy = value; }
79 inline void SetFairsharePolicy(FairsharePolicy&& value) { m_fairsharePolicyHasBeenSet = true; m_fairsharePolicy = std::move(value); }
81 inline SchedulingPolicyDetail& WithFairsharePolicy(FairsharePolicy&& value) { SetFairsharePolicy(std::move(value)); return *this;}
83
85
93 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
94 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
95 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
96 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
97 inline SchedulingPolicyDetail& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
98 inline SchedulingPolicyDetail& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
99 inline SchedulingPolicyDetail& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
100 inline SchedulingPolicyDetail& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
101 inline SchedulingPolicyDetail& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
102 inline SchedulingPolicyDetail& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
103 inline SchedulingPolicyDetail& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
104 inline SchedulingPolicyDetail& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
105 inline SchedulingPolicyDetail& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
107 private:
108
109 Aws::String m_name;
110 bool m_nameHasBeenSet = false;
111
112 Aws::String m_arn;
113 bool m_arnHasBeenSet = false;
114
115 FairsharePolicy m_fairsharePolicy;
116 bool m_fairsharePolicyHasBeenSet = false;
117
119 bool m_tagsHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace Batch
124} // namespace Aws
SchedulingPolicyDetail & WithArn(Aws::String &&value)
SchedulingPolicyDetail & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
SchedulingPolicyDetail & AddTags(Aws::String &&key, const char *value)
void SetFairsharePolicy(const FairsharePolicy &value)
AWS_BATCH_API SchedulingPolicyDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
const FairsharePolicy & GetFairsharePolicy() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
SchedulingPolicyDetail & AddTags(Aws::String &&key, const Aws::String &value)
SchedulingPolicyDetail & AddTags(const Aws::String &key, const Aws::String &value)
SchedulingPolicyDetail & WithFairsharePolicy(FairsharePolicy &&value)
SchedulingPolicyDetail & AddTags(const char *key, const char *value)
SchedulingPolicyDetail & WithName(Aws::String &&value)
SchedulingPolicyDetail & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
SchedulingPolicyDetail & WithArn(const Aws::String &value)
AWS_BATCH_API SchedulingPolicyDetail(Aws::Utils::Json::JsonView jsonValue)
void SetFairsharePolicy(FairsharePolicy &&value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
SchedulingPolicyDetail & AddTags(Aws::String &&key, Aws::String &&value)
SchedulingPolicyDetail & WithArn(const char *value)
SchedulingPolicyDetail & AddTags(const char *key, Aws::String &&value)
SchedulingPolicyDetail & WithName(const char *value)
SchedulingPolicyDetail & AddTags(const Aws::String &key, Aws::String &&value)
SchedulingPolicyDetail & WithName(const Aws::String &value)
SchedulingPolicyDetail & WithFairsharePolicy(const FairsharePolicy &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
Aws::Utils::Json::JsonValue JsonValue