/**
 * 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/core/utils/memory/stl/AWSVector.h>
#include <aws/sagemaker/SageMakerRequest.h>
#include <aws/sagemaker/SageMaker_EXPORTS.h>
#include <aws/sagemaker/model/NotebookInstanceLifecycleHook.h>
#include <aws/sagemaker/model/Tag.h>

#include <utility>

namespace Aws {
namespace SageMaker {
namespace Model {

/**
 */
class CreateNotebookInstanceLifecycleConfigRequest : public SageMakerRequest {
 public:
  AWS_SAGEMAKER_API CreateNotebookInstanceLifecycleConfigRequest() = 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 "CreateNotebookInstanceLifecycleConfig"; }

  AWS_SAGEMAKER_API Aws::String SerializePayload() const override;

  AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;

  ///@{
  /**
   * <p>The name of the lifecycle configuration.</p>
   */
  inline const Aws::String& GetNotebookInstanceLifecycleConfigName() const { return m_notebookInstanceLifecycleConfigName; }
  inline bool NotebookInstanceLifecycleConfigNameHasBeenSet() const { return m_notebookInstanceLifecycleConfigNameHasBeenSet; }
  template <typename NotebookInstanceLifecycleConfigNameT = Aws::String>
  void SetNotebookInstanceLifecycleConfigName(NotebookInstanceLifecycleConfigNameT&& value) {
    m_notebookInstanceLifecycleConfigNameHasBeenSet = true;
    m_notebookInstanceLifecycleConfigName = std::forward<NotebookInstanceLifecycleConfigNameT>(value);
  }
  template <typename NotebookInstanceLifecycleConfigNameT = Aws::String>
  CreateNotebookInstanceLifecycleConfigRequest& WithNotebookInstanceLifecycleConfigName(NotebookInstanceLifecycleConfigNameT&& value) {
    SetNotebookInstanceLifecycleConfigName(std::forward<NotebookInstanceLifecycleConfigNameT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>A shell script that runs only once, when you create a notebook instance. The
   * shell script must be a base64-encoded string.</p>
   */
  inline const Aws::Vector<NotebookInstanceLifecycleHook>& GetOnCreate() const { return m_onCreate; }
  inline bool OnCreateHasBeenSet() const { return m_onCreateHasBeenSet; }
  template <typename OnCreateT = Aws::Vector<NotebookInstanceLifecycleHook>>
  void SetOnCreate(OnCreateT&& value) {
    m_onCreateHasBeenSet = true;
    m_onCreate = std::forward<OnCreateT>(value);
  }
  template <typename OnCreateT = Aws::Vector<NotebookInstanceLifecycleHook>>
  CreateNotebookInstanceLifecycleConfigRequest& WithOnCreate(OnCreateT&& value) {
    SetOnCreate(std::forward<OnCreateT>(value));
    return *this;
  }
  template <typename OnCreateT = NotebookInstanceLifecycleHook>
  CreateNotebookInstanceLifecycleConfigRequest& AddOnCreate(OnCreateT&& value) {
    m_onCreateHasBeenSet = true;
    m_onCreate.emplace_back(std::forward<OnCreateT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>A shell script that runs every time you start a notebook instance, including
   * when you create the notebook instance. The shell script must be a base64-encoded
   * string.</p>
   */
  inline const Aws::Vector<NotebookInstanceLifecycleHook>& GetOnStart() const { return m_onStart; }
  inline bool OnStartHasBeenSet() const { return m_onStartHasBeenSet; }
  template <typename OnStartT = Aws::Vector<NotebookInstanceLifecycleHook>>
  void SetOnStart(OnStartT&& value) {
    m_onStartHasBeenSet = true;
    m_onStart = std::forward<OnStartT>(value);
  }
  template <typename OnStartT = Aws::Vector<NotebookInstanceLifecycleHook>>
  CreateNotebookInstanceLifecycleConfigRequest& WithOnStart(OnStartT&& value) {
    SetOnStart(std::forward<OnStartT>(value));
    return *this;
  }
  template <typename OnStartT = NotebookInstanceLifecycleHook>
  CreateNotebookInstanceLifecycleConfigRequest& AddOnStart(OnStartT&& value) {
    m_onStartHasBeenSet = true;
    m_onStart.emplace_back(std::forward<OnStartT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>An array of key-value pairs. You can use tags to categorize your Amazon Web
   * Services resources in different ways, for example, by purpose, owner, or
   * environment. For more information, see <a
   * href="https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html">Tagging
   * Amazon Web Services Resources</a>.</p>
   */
  inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
  template <typename TagsT = Aws::Vector<Tag>>
  void SetTags(TagsT&& value) {
    m_tagsHasBeenSet = true;
    m_tags = std::forward<TagsT>(value);
  }
  template <typename TagsT = Aws::Vector<Tag>>
  CreateNotebookInstanceLifecycleConfigRequest& WithTags(TagsT&& value) {
    SetTags(std::forward<TagsT>(value));
    return *this;
  }
  template <typename TagsT = Tag>
  CreateNotebookInstanceLifecycleConfigRequest& AddTags(TagsT&& value) {
    m_tagsHasBeenSet = true;
    m_tags.emplace_back(std::forward<TagsT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_notebookInstanceLifecycleConfigName;

  Aws::Vector<NotebookInstanceLifecycleHook> m_onCreate;

  Aws::Vector<NotebookInstanceLifecycleHook> m_onStart;

  Aws::Vector<Tag> m_tags;
  bool m_notebookInstanceLifecycleConfigNameHasBeenSet = false;
  bool m_onCreateHasBeenSet = false;
  bool m_onStartHasBeenSet = false;
  bool m_tagsHasBeenSet = false;
};

}  // namespace Model
}  // namespace SageMaker
}  // namespace Aws
