AWS SDK for C++

AWS SDK for C++ Version 1.11.773

Loading...
Searching...
No Matches
UpdateQuotaShareRequest.h
1
6#pragma once
7#include <aws/batch/BatchRequest.h>
8#include <aws/batch/Batch_EXPORTS.h>
9#include <aws/batch/model/QuotaShareCapacityLimit.h>
10#include <aws/batch/model/QuotaSharePreemptionConfiguration.h>
11#include <aws/batch/model/QuotaShareResourceSharingConfiguration.h>
12#include <aws/batch/model/QuotaShareState.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Batch {
20namespace Model {
21
25 public:
26 AWS_BATCH_API UpdateQuotaShareRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateQuotaShare"; }
33
34 AWS_BATCH_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetQuotaShareArn() const { return m_quotaShareArn; }
41 inline bool QuotaShareArnHasBeenSet() const { return m_quotaShareArnHasBeenSet; }
42 template <typename QuotaShareArnT = Aws::String>
43 void SetQuotaShareArn(QuotaShareArnT&& value) {
44 m_quotaShareArnHasBeenSet = true;
45 m_quotaShareArn = std::forward<QuotaShareArnT>(value);
46 }
47 template <typename QuotaShareArnT = Aws::String>
48 UpdateQuotaShareRequest& WithQuotaShareArn(QuotaShareArnT&& value) {
49 SetQuotaShareArn(std::forward<QuotaShareArnT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::Vector<QuotaShareCapacityLimit>& GetCapacityLimits() const { return m_capacityLimits; }
60 inline bool CapacityLimitsHasBeenSet() const { return m_capacityLimitsHasBeenSet; }
61 template <typename CapacityLimitsT = Aws::Vector<QuotaShareCapacityLimit>>
62 void SetCapacityLimits(CapacityLimitsT&& value) {
63 m_capacityLimitsHasBeenSet = true;
64 m_capacityLimits = std::forward<CapacityLimitsT>(value);
65 }
66 template <typename CapacityLimitsT = Aws::Vector<QuotaShareCapacityLimit>>
67 UpdateQuotaShareRequest& WithCapacityLimits(CapacityLimitsT&& value) {
68 SetCapacityLimits(std::forward<CapacityLimitsT>(value));
69 return *this;
70 }
71 template <typename CapacityLimitsT = QuotaShareCapacityLimit>
72 UpdateQuotaShareRequest& AddCapacityLimits(CapacityLimitsT&& value) {
73 m_capacityLimitsHasBeenSet = true;
74 m_capacityLimits.emplace_back(std::forward<CapacityLimitsT>(value));
75 return *this;
76 }
78
80
84 inline const QuotaShareResourceSharingConfiguration& GetResourceSharingConfiguration() const { return m_resourceSharingConfiguration; }
85 inline bool ResourceSharingConfigurationHasBeenSet() const { return m_resourceSharingConfigurationHasBeenSet; }
86 template <typename ResourceSharingConfigurationT = QuotaShareResourceSharingConfiguration>
87 void SetResourceSharingConfiguration(ResourceSharingConfigurationT&& value) {
88 m_resourceSharingConfigurationHasBeenSet = true;
89 m_resourceSharingConfiguration = std::forward<ResourceSharingConfigurationT>(value);
90 }
91 template <typename ResourceSharingConfigurationT = QuotaShareResourceSharingConfiguration>
92 UpdateQuotaShareRequest& WithResourceSharingConfiguration(ResourceSharingConfigurationT&& value) {
93 SetResourceSharingConfiguration(std::forward<ResourceSharingConfigurationT>(value));
94 return *this;
95 }
97
99
102 inline const QuotaSharePreemptionConfiguration& GetPreemptionConfiguration() const { return m_preemptionConfiguration; }
103 inline bool PreemptionConfigurationHasBeenSet() const { return m_preemptionConfigurationHasBeenSet; }
104 template <typename PreemptionConfigurationT = QuotaSharePreemptionConfiguration>
105 void SetPreemptionConfiguration(PreemptionConfigurationT&& value) {
106 m_preemptionConfigurationHasBeenSet = true;
107 m_preemptionConfiguration = std::forward<PreemptionConfigurationT>(value);
108 }
109 template <typename PreemptionConfigurationT = QuotaSharePreemptionConfiguration>
110 UpdateQuotaShareRequest& WithPreemptionConfiguration(PreemptionConfigurationT&& value) {
111 SetPreemptionConfiguration(std::forward<PreemptionConfigurationT>(value));
112 return *this;
113 }
115
117
122 inline QuotaShareState GetState() const { return m_state; }
123 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
124 inline void SetState(QuotaShareState value) {
125 m_stateHasBeenSet = true;
126 m_state = value;
127 }
129 SetState(value);
130 return *this;
131 }
133 private:
134 Aws::String m_quotaShareArn;
135
137
138 QuotaShareResourceSharingConfiguration m_resourceSharingConfiguration;
139
140 QuotaSharePreemptionConfiguration m_preemptionConfiguration;
141
143 bool m_quotaShareArnHasBeenSet = false;
144 bool m_capacityLimitsHasBeenSet = false;
145 bool m_resourceSharingConfigurationHasBeenSet = false;
146 bool m_preemptionConfigurationHasBeenSet = false;
147 bool m_stateHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace Batch
152} // namespace Aws
UpdateQuotaShareRequest & WithQuotaShareArn(QuotaShareArnT &&value)
UpdateQuotaShareRequest & WithState(QuotaShareState value)
const QuotaSharePreemptionConfiguration & GetPreemptionConfiguration() const
UpdateQuotaShareRequest & WithResourceSharingConfiguration(ResourceSharingConfigurationT &&value)
AWS_BATCH_API Aws::String SerializePayload() const override
AWS_BATCH_API UpdateQuotaShareRequest()=default
const QuotaShareResourceSharingConfiguration & GetResourceSharingConfiguration() const
void SetResourceSharingConfiguration(ResourceSharingConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
void SetPreemptionConfiguration(PreemptionConfigurationT &&value)
UpdateQuotaShareRequest & WithPreemptionConfiguration(PreemptionConfigurationT &&value)
UpdateQuotaShareRequest & WithCapacityLimits(CapacityLimitsT &&value)
UpdateQuotaShareRequest & AddCapacityLimits(CapacityLimitsT &&value)
const Aws::Vector< QuotaShareCapacityLimit > & GetCapacityLimits() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector