AWS SDK for C++

AWS SDK for C++ Version 1.11.635

Loading...
Searching...
No Matches
UpdateServiceEnvironmentRequest.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/ServiceEnvironmentState.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/batch/model/CapacityLimit.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Batch
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_BATCH_API UpdateServiceEnvironmentRequest() = 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 "UpdateServiceEnvironment"; }
34
35 AWS_BATCH_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetServiceEnvironment() const { return m_serviceEnvironment; }
43 inline bool ServiceEnvironmentHasBeenSet() const { return m_serviceEnvironmentHasBeenSet; }
44 template<typename ServiceEnvironmentT = Aws::String>
45 void SetServiceEnvironment(ServiceEnvironmentT&& value) { m_serviceEnvironmentHasBeenSet = true; m_serviceEnvironment = std::forward<ServiceEnvironmentT>(value); }
46 template<typename ServiceEnvironmentT = Aws::String>
47 UpdateServiceEnvironmentRequest& WithServiceEnvironment(ServiceEnvironmentT&& value) { SetServiceEnvironment(std::forward<ServiceEnvironmentT>(value)); return *this;}
49
51
54 inline ServiceEnvironmentState GetState() const { return m_state; }
55 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
56 inline void SetState(ServiceEnvironmentState value) { m_stateHasBeenSet = true; m_state = value; }
59
61
65 inline const Aws::Vector<CapacityLimit>& GetCapacityLimits() const { return m_capacityLimits; }
66 inline bool CapacityLimitsHasBeenSet() const { return m_capacityLimitsHasBeenSet; }
67 template<typename CapacityLimitsT = Aws::Vector<CapacityLimit>>
68 void SetCapacityLimits(CapacityLimitsT&& value) { m_capacityLimitsHasBeenSet = true; m_capacityLimits = std::forward<CapacityLimitsT>(value); }
69 template<typename CapacityLimitsT = Aws::Vector<CapacityLimit>>
70 UpdateServiceEnvironmentRequest& WithCapacityLimits(CapacityLimitsT&& value) { SetCapacityLimits(std::forward<CapacityLimitsT>(value)); return *this;}
71 template<typename CapacityLimitsT = CapacityLimit>
72 UpdateServiceEnvironmentRequest& AddCapacityLimits(CapacityLimitsT&& value) { m_capacityLimitsHasBeenSet = true; m_capacityLimits.emplace_back(std::forward<CapacityLimitsT>(value)); return *this; }
74 private:
75
76 Aws::String m_serviceEnvironment;
77 bool m_serviceEnvironmentHasBeenSet = false;
78
80 bool m_stateHasBeenSet = false;
81
82 Aws::Vector<CapacityLimit> m_capacityLimits;
83 bool m_capacityLimitsHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace Batch
88} // 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