AWS SDK for C++

AWS SDK for C++ Version 1.11.781

Loading...
Searching...
No Matches
UpdateSchedulingPolicyRequest.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/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Batch {
17namespace Model {
18
26 public:
27 AWS_BATCH_API UpdateSchedulingPolicyRequest() = 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 "UpdateSchedulingPolicy"; }
34
35 AWS_BATCH_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
43 template <typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) {
45 m_arnHasBeenSet = true;
46 m_arn = std::forward<ArnT>(value);
47 }
48 template <typename ArnT = Aws::String>
50 SetArn(std::forward<ArnT>(value));
51 return *this;
52 }
54
56
60 inline const QuotaSharePolicy& GetQuotaSharePolicy() const { return m_quotaSharePolicy; }
61 inline bool QuotaSharePolicyHasBeenSet() const { return m_quotaSharePolicyHasBeenSet; }
62 template <typename QuotaSharePolicyT = QuotaSharePolicy>
63 void SetQuotaSharePolicy(QuotaSharePolicyT&& value) {
64 m_quotaSharePolicyHasBeenSet = true;
65 m_quotaSharePolicy = std::forward<QuotaSharePolicyT>(value);
66 }
67 template <typename QuotaSharePolicyT = QuotaSharePolicy>
69 SetQuotaSharePolicy(std::forward<QuotaSharePolicyT>(value));
70 return *this;
71 }
73
75
79 inline const FairsharePolicy& GetFairsharePolicy() const { return m_fairsharePolicy; }
80 inline bool FairsharePolicyHasBeenSet() const { return m_fairsharePolicyHasBeenSet; }
81 template <typename FairsharePolicyT = FairsharePolicy>
82 void SetFairsharePolicy(FairsharePolicyT&& value) {
83 m_fairsharePolicyHasBeenSet = true;
84 m_fairsharePolicy = std::forward<FairsharePolicyT>(value);
85 }
86 template <typename FairsharePolicyT = FairsharePolicy>
88 SetFairsharePolicy(std::forward<FairsharePolicyT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_arn;
94
95 QuotaSharePolicy m_quotaSharePolicy;
96
97 FairsharePolicy m_fairsharePolicy;
98 bool m_arnHasBeenSet = false;
99 bool m_quotaSharePolicyHasBeenSet = false;
100 bool m_fairsharePolicyHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace Batch
105} // namespace Aws
UpdateSchedulingPolicyRequest & WithFairsharePolicy(FairsharePolicyT &&value)
UpdateSchedulingPolicyRequest & WithQuotaSharePolicy(QuotaSharePolicyT &&value)
AWS_BATCH_API Aws::String SerializePayload() const override
AWS_BATCH_API UpdateSchedulingPolicyRequest()=default
virtual const char * GetServiceRequestName() const override
UpdateSchedulingPolicyRequest & WithArn(ArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String