AWS SDK for C++  1.8.154
AWS SDK for C++
UpdateEndpointWeightsAndCapacitiesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace SageMaker
17 {
18 namespace 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::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetEndpointName() const{ return m_endpointName; }
43 
47  inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
48 
52  inline void SetEndpointName(const Aws::String& value) { m_endpointNameHasBeenSet = true; m_endpointName = value; }
53 
57  inline void SetEndpointName(Aws::String&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::move(value); }
58 
62  inline void SetEndpointName(const char* value) { m_endpointNameHasBeenSet = true; m_endpointName.assign(value); }
63 
67  inline UpdateEndpointWeightsAndCapacitiesRequest& WithEndpointName(const Aws::String& value) { SetEndpointName(value); return *this;}
68 
72  inline UpdateEndpointWeightsAndCapacitiesRequest& WithEndpointName(Aws::String&& value) { SetEndpointName(std::move(value)); return *this;}
73 
77  inline UpdateEndpointWeightsAndCapacitiesRequest& WithEndpointName(const char* value) { SetEndpointName(value); return *this;}
78 
79 
83  inline const Aws::Vector<DesiredWeightAndCapacity>& GetDesiredWeightsAndCapacities() const{ return m_desiredWeightsAndCapacities; }
84 
88  inline bool DesiredWeightsAndCapacitiesHasBeenSet() const { return m_desiredWeightsAndCapacitiesHasBeenSet; }
89 
93  inline void SetDesiredWeightsAndCapacities(const Aws::Vector<DesiredWeightAndCapacity>& value) { m_desiredWeightsAndCapacitiesHasBeenSet = true; m_desiredWeightsAndCapacities = value; }
94 
98  inline void SetDesiredWeightsAndCapacities(Aws::Vector<DesiredWeightAndCapacity>&& value) { m_desiredWeightsAndCapacitiesHasBeenSet = true; m_desiredWeightsAndCapacities = std::move(value); }
99 
103  inline UpdateEndpointWeightsAndCapacitiesRequest& WithDesiredWeightsAndCapacities(const Aws::Vector<DesiredWeightAndCapacity>& value) { SetDesiredWeightsAndCapacities(value); return *this;}
104 
108  inline UpdateEndpointWeightsAndCapacitiesRequest& WithDesiredWeightsAndCapacities(Aws::Vector<DesiredWeightAndCapacity>&& value) { SetDesiredWeightsAndCapacities(std::move(value)); return *this;}
109 
113  inline UpdateEndpointWeightsAndCapacitiesRequest& AddDesiredWeightsAndCapacities(const DesiredWeightAndCapacity& value) { m_desiredWeightsAndCapacitiesHasBeenSet = true; m_desiredWeightsAndCapacities.push_back(value); return *this; }
114 
118  inline UpdateEndpointWeightsAndCapacitiesRequest& AddDesiredWeightsAndCapacities(DesiredWeightAndCapacity&& value) { m_desiredWeightsAndCapacitiesHasBeenSet = true; m_desiredWeightsAndCapacities.push_back(std::move(value)); return *this; }
119 
120  private:
121 
122  Aws::String m_endpointName;
123  bool m_endpointNameHasBeenSet;
124 
125  Aws::Vector<DesiredWeightAndCapacity> m_desiredWeightsAndCapacities;
126  bool m_desiredWeightsAndCapacitiesHasBeenSet;
127  };
128 
129 } // namespace Model
130 } // namespace SageMaker
131 } // namespace Aws
Aws::SageMaker::Model::UpdateEndpointWeightsAndCapacitiesRequest::SetDesiredWeightsAndCapacities
void SetDesiredWeightsAndCapacities(Aws::Vector< DesiredWeightAndCapacity > &&value)
Definition: UpdateEndpointWeightsAndCapacitiesRequest.h:98
Aws::SageMaker::Model::DesiredWeightAndCapacity
Definition: DesiredWeightAndCapacity.h:33
Aws::SageMaker::Model::UpdateEndpointWeightsAndCapacitiesRequest::WithDesiredWeightsAndCapacities
UpdateEndpointWeightsAndCapacitiesRequest & WithDesiredWeightsAndCapacities(Aws::Vector< DesiredWeightAndCapacity > &&value)
Definition: UpdateEndpointWeightsAndCapacitiesRequest.h:108
DesiredWeightAndCapacity.h
SageMaker_EXPORTS.h
Aws::SageMaker::Model::UpdateEndpointWeightsAndCapacitiesRequest::WithEndpointName
UpdateEndpointWeightsAndCapacitiesRequest & WithEndpointName(const char *value)
Definition: UpdateEndpointWeightsAndCapacitiesRequest.h:77
Aws::SageMaker::Model::UpdateEndpointWeightsAndCapacitiesRequest::AddDesiredWeightsAndCapacities
UpdateEndpointWeightsAndCapacitiesRequest & AddDesiredWeightsAndCapacities(const DesiredWeightAndCapacity &value)
Definition: UpdateEndpointWeightsAndCapacitiesRequest.h:113
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SageMaker::Model::UpdateEndpointWeightsAndCapacitiesRequest::EndpointNameHasBeenSet
bool EndpointNameHasBeenSet() const
Definition: UpdateEndpointWeightsAndCapacitiesRequest.h:47
Aws::SageMaker::Model::UpdateEndpointWeightsAndCapacitiesRequest::AddDesiredWeightsAndCapacities
UpdateEndpointWeightsAndCapacitiesRequest & AddDesiredWeightsAndCapacities(DesiredWeightAndCapacity &&value)
Definition: UpdateEndpointWeightsAndCapacitiesRequest.h:118
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::SageMaker::Model::UpdateEndpointWeightsAndCapacitiesRequest::SetEndpointName
void SetEndpointName(Aws::String &&value)
Definition: UpdateEndpointWeightsAndCapacitiesRequest.h:57
Aws::SageMaker::Model::UpdateEndpointWeightsAndCapacitiesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SageMaker::SageMakerRequest
Definition: SageMakerRequest.h:17
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::UpdateEndpointWeightsAndCapacitiesRequest::SetEndpointName
void SetEndpointName(const Aws::String &value)
Definition: UpdateEndpointWeightsAndCapacitiesRequest.h:52
AWSString.h
Aws::SageMaker::Model::UpdateEndpointWeightsAndCapacitiesRequest::DesiredWeightsAndCapacitiesHasBeenSet
bool DesiredWeightsAndCapacitiesHasBeenSet() const
Definition: UpdateEndpointWeightsAndCapacitiesRequest.h:88
Aws::SageMaker::Model::UpdateEndpointWeightsAndCapacitiesRequest::GetDesiredWeightsAndCapacities
const Aws::Vector< DesiredWeightAndCapacity > & GetDesiredWeightsAndCapacities() const
Definition: UpdateEndpointWeightsAndCapacitiesRequest.h:83
Aws
Definition: AccessManagementClient.h:15
SageMakerRequest.h
Aws::SageMaker::Model::UpdateEndpointWeightsAndCapacitiesRequest::WithEndpointName
UpdateEndpointWeightsAndCapacitiesRequest & WithEndpointName(const Aws::String &value)
Definition: UpdateEndpointWeightsAndCapacitiesRequest.h:67
Aws::SageMaker::Model::UpdateEndpointWeightsAndCapacitiesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateEndpointWeightsAndCapacitiesRequest.h:32
Aws::SageMaker::Model::UpdateEndpointWeightsAndCapacitiesRequest::GetEndpointName
const Aws::String & GetEndpointName() const
Definition: UpdateEndpointWeightsAndCapacitiesRequest.h:42
Aws::SageMaker::Model::UpdateEndpointWeightsAndCapacitiesRequest::UpdateEndpointWeightsAndCapacitiesRequest
UpdateEndpointWeightsAndCapacitiesRequest()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::UpdateEndpointWeightsAndCapacitiesRequest::SetDesiredWeightsAndCapacities
void SetDesiredWeightsAndCapacities(const Aws::Vector< DesiredWeightAndCapacity > &value)
Definition: UpdateEndpointWeightsAndCapacitiesRequest.h:93
Aws::SageMaker::Model::UpdateEndpointWeightsAndCapacitiesRequest
Definition: UpdateEndpointWeightsAndCapacitiesRequest.h:24
Aws::SageMaker::Model::UpdateEndpointWeightsAndCapacitiesRequest::WithEndpointName
UpdateEndpointWeightsAndCapacitiesRequest & WithEndpointName(Aws::String &&value)
Definition: UpdateEndpointWeightsAndCapacitiesRequest.h:72
Aws::SageMaker::Model::UpdateEndpointWeightsAndCapacitiesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SageMaker::Model::UpdateEndpointWeightsAndCapacitiesRequest::WithDesiredWeightsAndCapacities
UpdateEndpointWeightsAndCapacitiesRequest & WithDesiredWeightsAndCapacities(const Aws::Vector< DesiredWeightAndCapacity > &value)
Definition: UpdateEndpointWeightsAndCapacitiesRequest.h:103
Aws::SageMaker::Model::UpdateEndpointWeightsAndCapacitiesRequest::SetEndpointName
void SetEndpointName(const char *value)
Definition: UpdateEndpointWeightsAndCapacitiesRequest.h:62