AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateEndpointWeightsAndCapacitiesRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sagemaker/model/DesiredWeightAndCapacity.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SageMaker
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SAGEMAKER_API UpdateEndpointWeightsAndCapacitiesRequest() = 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 "UpdateEndpointWeightsAndCapacities"; }
33
34 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
44 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
45 template<typename EndpointNameT = Aws::String>
46 void SetEndpointName(EndpointNameT&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::forward<EndpointNameT>(value); }
47 template<typename EndpointNameT = Aws::String>
48 UpdateEndpointWeightsAndCapacitiesRequest& WithEndpointName(EndpointNameT&& value) { SetEndpointName(std::forward<EndpointNameT>(value)); return *this;}
50
52
55 inline const Aws::Vector<DesiredWeightAndCapacity>& GetDesiredWeightsAndCapacities() const { return m_desiredWeightsAndCapacities; }
56 inline bool DesiredWeightsAndCapacitiesHasBeenSet() const { return m_desiredWeightsAndCapacitiesHasBeenSet; }
57 template<typename DesiredWeightsAndCapacitiesT = Aws::Vector<DesiredWeightAndCapacity>>
58 void SetDesiredWeightsAndCapacities(DesiredWeightsAndCapacitiesT&& value) { m_desiredWeightsAndCapacitiesHasBeenSet = true; m_desiredWeightsAndCapacities = std::forward<DesiredWeightsAndCapacitiesT>(value); }
59 template<typename DesiredWeightsAndCapacitiesT = Aws::Vector<DesiredWeightAndCapacity>>
60 UpdateEndpointWeightsAndCapacitiesRequest& WithDesiredWeightsAndCapacities(DesiredWeightsAndCapacitiesT&& value) { SetDesiredWeightsAndCapacities(std::forward<DesiredWeightsAndCapacitiesT>(value)); return *this;}
61 template<typename DesiredWeightsAndCapacitiesT = DesiredWeightAndCapacity>
62 UpdateEndpointWeightsAndCapacitiesRequest& AddDesiredWeightsAndCapacities(DesiredWeightsAndCapacitiesT&& value) { m_desiredWeightsAndCapacitiesHasBeenSet = true; m_desiredWeightsAndCapacities.emplace_back(std::forward<DesiredWeightsAndCapacitiesT>(value)); return *this; }
64 private:
65
66 Aws::String m_endpointName;
67 bool m_endpointNameHasBeenSet = false;
68
69 Aws::Vector<DesiredWeightAndCapacity> m_desiredWeightsAndCapacities;
70 bool m_desiredWeightsAndCapacitiesHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace SageMaker
75} // namespace Aws
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateEndpointWeightsAndCapacitiesRequest & AddDesiredWeightsAndCapacities(DesiredWeightsAndCapacitiesT &&value)
UpdateEndpointWeightsAndCapacitiesRequest & WithEndpointName(EndpointNameT &&value)
const Aws::Vector< DesiredWeightAndCapacity > & GetDesiredWeightsAndCapacities() const
UpdateEndpointWeightsAndCapacitiesRequest & WithDesiredWeightsAndCapacities(DesiredWeightsAndCapacitiesT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector