AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetEndpointName(const Aws::String& value) { m_endpointNameHasBeenSet = true; m_endpointName = value; }
46 inline void SetEndpointName(Aws::String&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::move(value); }
47 inline void SetEndpointName(const char* value) { m_endpointNameHasBeenSet = true; m_endpointName.assign(value); }
50 inline UpdateEndpointWeightsAndCapacitiesRequest& WithEndpointName(const char* value) { SetEndpointName(value); return *this;}
52
54
57 inline const Aws::Vector<DesiredWeightAndCapacity>& GetDesiredWeightsAndCapacities() const{ return m_desiredWeightsAndCapacities; }
58 inline bool DesiredWeightsAndCapacitiesHasBeenSet() const { return m_desiredWeightsAndCapacitiesHasBeenSet; }
59 inline void SetDesiredWeightsAndCapacities(const Aws::Vector<DesiredWeightAndCapacity>& value) { m_desiredWeightsAndCapacitiesHasBeenSet = true; m_desiredWeightsAndCapacities = value; }
60 inline void SetDesiredWeightsAndCapacities(Aws::Vector<DesiredWeightAndCapacity>&& value) { m_desiredWeightsAndCapacitiesHasBeenSet = true; m_desiredWeightsAndCapacities = std::move(value); }
63 inline UpdateEndpointWeightsAndCapacitiesRequest& AddDesiredWeightsAndCapacities(const DesiredWeightAndCapacity& value) { m_desiredWeightsAndCapacitiesHasBeenSet = true; m_desiredWeightsAndCapacities.push_back(value); return *this; }
64 inline UpdateEndpointWeightsAndCapacitiesRequest& AddDesiredWeightsAndCapacities(DesiredWeightAndCapacity&& value) { m_desiredWeightsAndCapacitiesHasBeenSet = true; m_desiredWeightsAndCapacities.push_back(std::move(value)); return *this; }
66 private:
67
68 Aws::String m_endpointName;
69 bool m_endpointNameHasBeenSet = false;
70
71 Aws::Vector<DesiredWeightAndCapacity> m_desiredWeightsAndCapacities;
72 bool m_desiredWeightsAndCapacitiesHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace SageMaker
77} // namespace Aws
void SetDesiredWeightsAndCapacities(const Aws::Vector< DesiredWeightAndCapacity > &value)
UpdateEndpointWeightsAndCapacitiesRequest & WithDesiredWeightsAndCapacities(const Aws::Vector< DesiredWeightAndCapacity > &value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateEndpointWeightsAndCapacitiesRequest & WithEndpointName(const Aws::String &value)
UpdateEndpointWeightsAndCapacitiesRequest & WithEndpointName(const char *value)
const Aws::Vector< DesiredWeightAndCapacity > & GetDesiredWeightsAndCapacities() const
UpdateEndpointWeightsAndCapacitiesRequest & AddDesiredWeightsAndCapacities(const DesiredWeightAndCapacity &value)
UpdateEndpointWeightsAndCapacitiesRequest & WithDesiredWeightsAndCapacities(Aws::Vector< DesiredWeightAndCapacity > &&value)
UpdateEndpointWeightsAndCapacitiesRequest & AddDesiredWeightsAndCapacities(DesiredWeightAndCapacity &&value)
void SetDesiredWeightsAndCapacities(Aws::Vector< DesiredWeightAndCapacity > &&value)
UpdateEndpointWeightsAndCapacitiesRequest & WithEndpointName(Aws::String &&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