/**
 * 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/sagemaker/SageMaker_EXPORTS.h>
#include <aws/sagemaker/model/ResourceSpec.h>

#include <utility>

namespace Aws {
namespace Utils {
namespace Json {
class JsonValue;
class JsonView;
}  // namespace Json
}  // namespace Utils
namespace SageMaker {
namespace Model {

/**
 * <p>A collection of settings that update the current configuration for the
 * <code>RStudioServerPro</code> Domain-level app.</p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/RStudioServerProDomainSettingsForUpdate">AWS
 * API Reference</a></p>
 */
class RStudioServerProDomainSettingsForUpdate {
 public:
  AWS_SAGEMAKER_API RStudioServerProDomainSettingsForUpdate() = default;
  AWS_SAGEMAKER_API RStudioServerProDomainSettingsForUpdate(Aws::Utils::Json::JsonView jsonValue);
  AWS_SAGEMAKER_API RStudioServerProDomainSettingsForUpdate& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>The execution role for the <code>RStudioServerPro</code> Domain-level
   * app.</p>
   */
  inline const Aws::String& GetDomainExecutionRoleArn() const { return m_domainExecutionRoleArn; }
  inline bool DomainExecutionRoleArnHasBeenSet() const { return m_domainExecutionRoleArnHasBeenSet; }
  template <typename DomainExecutionRoleArnT = Aws::String>
  void SetDomainExecutionRoleArn(DomainExecutionRoleArnT&& value) {
    m_domainExecutionRoleArnHasBeenSet = true;
    m_domainExecutionRoleArn = std::forward<DomainExecutionRoleArnT>(value);
  }
  template <typename DomainExecutionRoleArnT = Aws::String>
  RStudioServerProDomainSettingsForUpdate& WithDomainExecutionRoleArn(DomainExecutionRoleArnT&& value) {
    SetDomainExecutionRoleArn(std::forward<DomainExecutionRoleArnT>(value));
    return *this;
  }
  ///@}

  ///@{

  inline const ResourceSpec& GetDefaultResourceSpec() const { return m_defaultResourceSpec; }
  inline bool DefaultResourceSpecHasBeenSet() const { return m_defaultResourceSpecHasBeenSet; }
  template <typename DefaultResourceSpecT = ResourceSpec>
  void SetDefaultResourceSpec(DefaultResourceSpecT&& value) {
    m_defaultResourceSpecHasBeenSet = true;
    m_defaultResourceSpec = std::forward<DefaultResourceSpecT>(value);
  }
  template <typename DefaultResourceSpecT = ResourceSpec>
  RStudioServerProDomainSettingsForUpdate& WithDefaultResourceSpec(DefaultResourceSpecT&& value) {
    SetDefaultResourceSpec(std::forward<DefaultResourceSpecT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>A URL pointing to an RStudio Connect server.</p>
   */
  inline const Aws::String& GetRStudioConnectUrl() const { return m_rStudioConnectUrl; }
  inline bool RStudioConnectUrlHasBeenSet() const { return m_rStudioConnectUrlHasBeenSet; }
  template <typename RStudioConnectUrlT = Aws::String>
  void SetRStudioConnectUrl(RStudioConnectUrlT&& value) {
    m_rStudioConnectUrlHasBeenSet = true;
    m_rStudioConnectUrl = std::forward<RStudioConnectUrlT>(value);
  }
  template <typename RStudioConnectUrlT = Aws::String>
  RStudioServerProDomainSettingsForUpdate& WithRStudioConnectUrl(RStudioConnectUrlT&& value) {
    SetRStudioConnectUrl(std::forward<RStudioConnectUrlT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>A URL pointing to an RStudio Package Manager server.</p>
   */
  inline const Aws::String& GetRStudioPackageManagerUrl() const { return m_rStudioPackageManagerUrl; }
  inline bool RStudioPackageManagerUrlHasBeenSet() const { return m_rStudioPackageManagerUrlHasBeenSet; }
  template <typename RStudioPackageManagerUrlT = Aws::String>
  void SetRStudioPackageManagerUrl(RStudioPackageManagerUrlT&& value) {
    m_rStudioPackageManagerUrlHasBeenSet = true;
    m_rStudioPackageManagerUrl = std::forward<RStudioPackageManagerUrlT>(value);
  }
  template <typename RStudioPackageManagerUrlT = Aws::String>
  RStudioServerProDomainSettingsForUpdate& WithRStudioPackageManagerUrl(RStudioPackageManagerUrlT&& value) {
    SetRStudioPackageManagerUrl(std::forward<RStudioPackageManagerUrlT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_domainExecutionRoleArn;

  ResourceSpec m_defaultResourceSpec;

  Aws::String m_rStudioConnectUrl;

  Aws::String m_rStudioPackageManagerUrl;
  bool m_domainExecutionRoleArnHasBeenSet = false;
  bool m_defaultResourceSpecHasBeenSet = false;
  bool m_rStudioConnectUrlHasBeenSet = false;
  bool m_rStudioPackageManagerUrlHasBeenSet = false;
};

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