text: ﻿/**
   * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
   * SPDX-License-Identifier: Apache-2.0.
   */
  
  #pragma once
  #include <aws/sagemaker/SageMaker_EXPORTS.h>
  #include <aws/sagemaker/SageMakerRequest.h>
  #include <aws/core/utils/memory/stl/AWSString.h>
  #include <aws/core/utils/memory/stl/AWSVector.h>
  #include <aws/sagemaker/model/DesiredWeightAndCapacity.h>
  #include <utility>
  
  namespace Aws
  {
  namespace SageMaker
  {
  namespace Model
  {
  
    /**
     */
    class AWS_SAGEMAKER_API UpdateEndpointWeightsAndCapacitiesRequest : public SageMakerRequest
    {
    public:
      UpdateEndpointWeightsAndCapacitiesRequest();
  
      // Service request name is the Operation name which will send this request out,
      // each operation should has unique request name, so that we can get operation's name from this request.
      // Note: this is not true for response, multiple operations may have the same response name,
      // so we can not get operation's name from response.
      inline virtual const char* GetServiceRequestName() const override { return "UpdateEndpointWeightsAndCapacities"; }
  
      Aws::String SerializePayload() const override;
  
      Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
  
  
      /**
       * <p>The name of an existing SageMaker endpoint.</p>
       */
      inline const Aws::String& GetEndpointName() const{ return m_endpointName; }
  
      /**
       * <p>The name of an existing SageMaker endpoint.</p>
       */
      inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
  
      /**
       * <p>The name of an existing SageMaker endpoint.</p>
       */
      inline void SetEndpointName(const Aws::String& value) { m_endpointNameHasBeenSet = true; m_endpointName = value; }
  
      /**
       * <p>The name of an existing SageMaker endpoint.</p>
       */
      inline void SetEndpointName(Aws::String&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::move(value); }
  
      /**
       * <p>The name of an existing SageMaker endpoint.</p>
       */
      inline void SetEndpointName(const char* value) { m_endpointNameHasBeenSet = true; m_endpointName.assign(value); }
  
      /**
       * <p>The name of an existing SageMaker endpoint.</p>
       */
      inline UpdateEndpointWeightsAndCapacitiesRequest& WithEndpointName(const Aws::String& value) { SetEndpointName(value); return *this;}
  
      /**
       * <p>The name of an existing SageMaker endpoint.</p>
       */
      inline UpdateEndpointWeightsAndCapacitiesRequest& WithEndpointName(Aws::String&& value) { SetEndpointName(std::move(value)); return *this;}
  
      /**
       * <p>The name of an existing SageMaker endpoint.</p>
       */
      inline UpdateEndpointWeightsAndCapacitiesRequest& WithEndpointName(const char* value) { SetEndpointName(value); return *this;}
  
  
      /**
       * <p>An object that provides new capacity and weight values for a variant.</p>
       */
      inline const Aws::Vector<DesiredWeightAndCapacity>& GetDesiredWeightsAndCapacities() const{ return m_desiredWeightsAndCapacities; }
  
      /**
       * <p>An object that provides new capacity and weight values for a variant.</p>
       */
      inline bool DesiredWeightsAndCapacitiesHasBeenSet() const { return m_desiredWeightsAndCapacitiesHasBeenSet; }
  
      /**
       * <p>An object that provides new capacity and weight values for a variant.</p>
       */
      inline void SetDesiredWeightsAndCapacities(const Aws::Vector<DesiredWeightAndCapacity>& value) { m_desiredWeightsAndCapacitiesHasBeenSet = true; m_desiredWeightsAndCapacities = value; }
  
      /**
       * <p>An object that provides new capacity and weight values for a variant.</p>
       */
      inline void SetDesiredWeightsAndCapacities(Aws::Vector<DesiredWeightAndCapacity>&& value) { m_desiredWeightsAndCapacitiesHasBeenSet = true; m_desiredWeightsAndCapacities = std::move(value); }
  
      /**
       * <p>An object that provides new capacity and weight values for a variant.</p>
       */
      inline UpdateEndpointWeightsAndCapacitiesRequest& WithDesiredWeightsAndCapacities(const Aws::Vector<DesiredWeightAndCapacity>& value) { SetDesiredWeightsAndCapacities(value); return *this;}
  
      /**
       * <p>An object that provides new capacity and weight values for a variant.</p>
       */
      inline UpdateEndpointWeightsAndCapacitiesRequest& WithDesiredWeightsAndCapacities(Aws::Vector<DesiredWeightAndCapacity>&& value) { SetDesiredWeightsAndCapacities(std::move(value)); return *this;}
  
      /**
       * <p>An object that provides new capacity and weight values for a variant.</p>
       */
      inline UpdateEndpointWeightsAndCapacitiesRequest& AddDesiredWeightsAndCapacities(const DesiredWeightAndCapacity& value) { m_desiredWeightsAndCapacitiesHasBeenSet = true; m_desiredWeightsAndCapacities.push_back(value); return *this; }
  
      /**
       * <p>An object that provides new capacity and weight values for a variant.</p>
       */
      inline UpdateEndpointWeightsAndCapacitiesRequest& AddDesiredWeightsAndCapacities(DesiredWeightAndCapacity&& value) { m_desiredWeightsAndCapacitiesHasBeenSet = true; m_desiredWeightsAndCapacities.push_back(std::move(value)); return *this; }
  
    private:
  
      Aws::String m_endpointName;
      bool m_endpointNameHasBeenSet;
  
      Aws::Vector<DesiredWeightAndCapacity> m_desiredWeightsAndCapacities;
      bool m_desiredWeightsAndCapacitiesHasBeenSet;
    };
  
  } // namespace Model
  } // namespace SageMaker
  } // namespace Aws
  