AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateServiceEnvironmentRequest.h
1
6#pragma once
7#include <aws/batch/BatchRequest.h>
8#include <aws/batch/Batch_EXPORTS.h>
9#include <aws/batch/model/CapacityLimit.h>
10#include <aws/batch/model/ServiceEnvironmentState.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Batch {
18namespace Model {
19
23 public:
24 AWS_BATCH_API UpdateServiceEnvironmentRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateServiceEnvironment"; }
31
32 AWS_BATCH_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetServiceEnvironment() const { return m_serviceEnvironment; }
39 inline bool ServiceEnvironmentHasBeenSet() const { return m_serviceEnvironmentHasBeenSet; }
40 template <typename ServiceEnvironmentT = Aws::String>
41 void SetServiceEnvironment(ServiceEnvironmentT&& value) {
42 m_serviceEnvironmentHasBeenSet = true;
43 m_serviceEnvironment = std::forward<ServiceEnvironmentT>(value);
44 }
45 template <typename ServiceEnvironmentT = Aws::String>
47 SetServiceEnvironment(std::forward<ServiceEnvironmentT>(value));
48 return *this;
49 }
51
53
56 inline ServiceEnvironmentState GetState() const { return m_state; }
57 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
58 inline void SetState(ServiceEnvironmentState value) {
59 m_stateHasBeenSet = true;
60 m_state = value;
61 }
63 SetState(value);
64 return *this;
65 }
67
69
73 inline const Aws::Vector<CapacityLimit>& GetCapacityLimits() const { return m_capacityLimits; }
74 inline bool CapacityLimitsHasBeenSet() const { return m_capacityLimitsHasBeenSet; }
75 template <typename CapacityLimitsT = Aws::Vector<CapacityLimit>>
76 void SetCapacityLimits(CapacityLimitsT&& value) {
77 m_capacityLimitsHasBeenSet = true;
78 m_capacityLimits = std::forward<CapacityLimitsT>(value);
79 }
80 template <typename CapacityLimitsT = Aws::Vector<CapacityLimit>>
82 SetCapacityLimits(std::forward<CapacityLimitsT>(value));
83 return *this;
84 }
85 template <typename CapacityLimitsT = CapacityLimit>
87 m_capacityLimitsHasBeenSet = true;
88 m_capacityLimits.emplace_back(std::forward<CapacityLimitsT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_serviceEnvironment;
94
96
97 Aws::Vector<CapacityLimit> m_capacityLimits;
98 bool m_serviceEnvironmentHasBeenSet = false;
99 bool m_stateHasBeenSet = false;
100 bool m_capacityLimitsHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace Batch
105} // namespace Aws
UpdateServiceEnvironmentRequest & AddCapacityLimits(CapacityLimitsT &&value)
UpdateServiceEnvironmentRequest & WithCapacityLimits(CapacityLimitsT &&value)
UpdateServiceEnvironmentRequest & WithServiceEnvironment(ServiceEnvironmentT &&value)
AWS_BATCH_API Aws::String SerializePayload() const override
const Aws::Vector< CapacityLimit > & GetCapacityLimits() const
UpdateServiceEnvironmentRequest & WithState(ServiceEnvironmentState value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector