/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */

#pragma once
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/tnb/TnbRequest.h>
#include <aws/tnb/Tnb_EXPORTS.h>
#include <aws/tnb/model/OperationalState.h>

#include <utility>

namespace Aws {
namespace tnb {
namespace Model {

/**
 */
class UpdateSolFunctionPackageRequest : public TnbRequest {
 public:
  AWS_TNB_API UpdateSolFunctionPackageRequest() = default;

  // 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 "UpdateSolFunctionPackage"; }

  AWS_TNB_API Aws::String SerializePayload() const override;

  ///@{
  /**
   * <p>Operational state of the function package.</p>
   */
  inline OperationalState GetOperationalState() const { return m_operationalState; }
  inline bool OperationalStateHasBeenSet() const { return m_operationalStateHasBeenSet; }
  inline void SetOperationalState(OperationalState value) {
    m_operationalStateHasBeenSet = true;
    m_operationalState = value;
  }
  inline UpdateSolFunctionPackageRequest& WithOperationalState(OperationalState value) {
    SetOperationalState(value);
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>ID of the function package.</p>
   */
  inline const Aws::String& GetVnfPkgId() const { return m_vnfPkgId; }
  inline bool VnfPkgIdHasBeenSet() const { return m_vnfPkgIdHasBeenSet; }
  template <typename VnfPkgIdT = Aws::String>
  void SetVnfPkgId(VnfPkgIdT&& value) {
    m_vnfPkgIdHasBeenSet = true;
    m_vnfPkgId = std::forward<VnfPkgIdT>(value);
  }
  template <typename VnfPkgIdT = Aws::String>
  UpdateSolFunctionPackageRequest& WithVnfPkgId(VnfPkgIdT&& value) {
    SetVnfPkgId(std::forward<VnfPkgIdT>(value));
    return *this;
  }
  ///@}
 private:
  OperationalState m_operationalState{OperationalState::NOT_SET};

  Aws::String m_vnfPkgId;
  bool m_operationalStateHasBeenSet = false;
  bool m_vnfPkgIdHasBeenSet = false;
};

}  // namespace Model
}  // namespace tnb
}  // namespace Aws
