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

#pragma once
#include <aws/batch/Batch_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>

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

  /**
   * <p>An object that represents the compute environment architecture for Batch jobs
   * on Fargate.</p><p><h3>See Also:</h3>   <a
   * href="http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/RuntimePlatform">AWS
   * API Reference</a></p>
   */
  class RuntimePlatform
  {
  public:
    AWS_BATCH_API RuntimePlatform();
    AWS_BATCH_API RuntimePlatform(Aws::Utils::Json::JsonView jsonValue);
    AWS_BATCH_API RuntimePlatform& operator=(Aws::Utils::Json::JsonView jsonValue);
    AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;


    /**
     * <p>The operating system for the compute environment. Valid values are:
     * <code>LINUX</code> (default), <code>WINDOWS_SERVER_2019_CORE</code>,
     * <code>WINDOWS_SERVER_2019_FULL</code>, <code>WINDOWS_SERVER_2022_CORE</code>,
     * and <code>WINDOWS_SERVER_2022_FULL</code>.</p>  <p>The following
     * parameters can’t be set for Windows containers: <code>linuxParameters</code>,
     * <code>privileged</code>, <code>user</code>, <code>ulimits</code>,
     * <code>readonlyRootFilesystem</code>, and
     * <code>efsVolumeConfiguration</code>.</p>   <p>The Batch Scheduler
     * checks before registering a task definition with Fargate. If the job requires a
     * Windows container and the first compute environment is <code>LINUX</code>, the
     * compute environment is skipped and the next is checked until a Windows-based
     * compute environment is found.</p>   <p>Fargate Spot is not
     * supported for Windows-based containers on Fargate. A job queue will be blocked
     * if a Fargate Windows job is submitted to a job queue with only Fargate Spot
     * compute environments. However, you can attach both <code>FARGATE</code> and
     * <code>FARGATE_SPOT</code> compute environments to the same job queue.</p>
     * 
     */
    inline const Aws::String& GetOperatingSystemFamily() const{ return m_operatingSystemFamily; }

    /**
     * <p>The operating system for the compute environment. Valid values are:
     * <code>LINUX</code> (default), <code>WINDOWS_SERVER_2019_CORE</code>,
     * <code>WINDOWS_SERVER_2019_FULL</code>, <code>WINDOWS_SERVER_2022_CORE</code>,
     * and <code>WINDOWS_SERVER_2022_FULL</code>.</p>  <p>The following
     * parameters can’t be set for Windows containers: <code>linuxParameters</code>,
     * <code>privileged</code>, <code>user</code>, <code>ulimits</code>,
     * <code>readonlyRootFilesystem</code>, and
     * <code>efsVolumeConfiguration</code>.</p>   <p>The Batch Scheduler
     * checks before registering a task definition with Fargate. If the job requires a
     * Windows container and the first compute environment is <code>LINUX</code>, the
     * compute environment is skipped and the next is checked until a Windows-based
     * compute environment is found.</p>   <p>Fargate Spot is not
     * supported for Windows-based containers on Fargate. A job queue will be blocked
     * if a Fargate Windows job is submitted to a job queue with only Fargate Spot
     * compute environments. However, you can attach both <code>FARGATE</code> and
     * <code>FARGATE_SPOT</code> compute environments to the same job queue.</p>
     * 
     */
    inline bool OperatingSystemFamilyHasBeenSet() const { return m_operatingSystemFamilyHasBeenSet; }

    /**
     * <p>The operating system for the compute environment. Valid values are:
     * <code>LINUX</code> (default), <code>WINDOWS_SERVER_2019_CORE</code>,
     * <code>WINDOWS_SERVER_2019_FULL</code>, <code>WINDOWS_SERVER_2022_CORE</code>,
     * and <code>WINDOWS_SERVER_2022_FULL</code>.</p>  <p>The following
     * parameters can’t be set for Windows containers: <code>linuxParameters</code>,
     * <code>privileged</code>, <code>user</code>, <code>ulimits</code>,
     * <code>readonlyRootFilesystem</code>, and
     * <code>efsVolumeConfiguration</code>.</p>   <p>The Batch Scheduler
     * checks before registering a task definition with Fargate. If the job requires a
     * Windows container and the first compute environment is <code>LINUX</code>, the
     * compute environment is skipped and the next is checked until a Windows-based
     * compute environment is found.</p>   <p>Fargate Spot is not
     * supported for Windows-based containers on Fargate. A job queue will be blocked
     * if a Fargate Windows job is submitted to a job queue with only Fargate Spot
     * compute environments. However, you can attach both <code>FARGATE</code> and
     * <code>FARGATE_SPOT</code> compute environments to the same job queue.</p>
     * 
     */
    inline void SetOperatingSystemFamily(const Aws::String& value) { m_operatingSystemFamilyHasBeenSet = true; m_operatingSystemFamily = value; }

    /**
     * <p>The operating system for the compute environment. Valid values are:
     * <code>LINUX</code> (default), <code>WINDOWS_SERVER_2019_CORE</code>,
     * <code>WINDOWS_SERVER_2019_FULL</code>, <code>WINDOWS_SERVER_2022_CORE</code>,
     * and <code>WINDOWS_SERVER_2022_FULL</code>.</p>  <p>The following
     * parameters can’t be set for Windows containers: <code>linuxParameters</code>,
     * <code>privileged</code>, <code>user</code>, <code>ulimits</code>,
     * <code>readonlyRootFilesystem</code>, and
     * <code>efsVolumeConfiguration</code>.</p>   <p>The Batch Scheduler
     * checks before registering a task definition with Fargate. If the job requires a
     * Windows container and the first compute environment is <code>LINUX</code>, the
     * compute environment is skipped and the next is checked until a Windows-based
     * compute environment is found.</p>   <p>Fargate Spot is not
     * supported for Windows-based containers on Fargate. A job queue will be blocked
     * if a Fargate Windows job is submitted to a job queue with only Fargate Spot
     * compute environments. However, you can attach both <code>FARGATE</code> and
     * <code>FARGATE_SPOT</code> compute environments to the same job queue.</p>
     * 
     */
    inline void SetOperatingSystemFamily(Aws::String&& value) { m_operatingSystemFamilyHasBeenSet = true; m_operatingSystemFamily = std::move(value); }

    /**
     * <p>The operating system for the compute environment. Valid values are:
     * <code>LINUX</code> (default), <code>WINDOWS_SERVER_2019_CORE</code>,
     * <code>WINDOWS_SERVER_2019_FULL</code>, <code>WINDOWS_SERVER_2022_CORE</code>,
     * and <code>WINDOWS_SERVER_2022_FULL</code>.</p>  <p>The following
     * parameters can’t be set for Windows containers: <code>linuxParameters</code>,
     * <code>privileged</code>, <code>user</code>, <code>ulimits</code>,
     * <code>readonlyRootFilesystem</code>, and
     * <code>efsVolumeConfiguration</code>.</p>   <p>The Batch Scheduler
     * checks before registering a task definition with Fargate. If the job requires a
     * Windows container and the first compute environment is <code>LINUX</code>, the
     * compute environment is skipped and the next is checked until a Windows-based
     * compute environment is found.</p>   <p>Fargate Spot is not
     * supported for Windows-based containers on Fargate. A job queue will be blocked
     * if a Fargate Windows job is submitted to a job queue with only Fargate Spot
     * compute environments. However, you can attach both <code>FARGATE</code> and
     * <code>FARGATE_SPOT</code> compute environments to the same job queue.</p>
     * 
     */
    inline void SetOperatingSystemFamily(const char* value) { m_operatingSystemFamilyHasBeenSet = true; m_operatingSystemFamily.assign(value); }

    /**
     * <p>The operating system for the compute environment. Valid values are:
     * <code>LINUX</code> (default), <code>WINDOWS_SERVER_2019_CORE</code>,
     * <code>WINDOWS_SERVER_2019_FULL</code>, <code>WINDOWS_SERVER_2022_CORE</code>,
     * and <code>WINDOWS_SERVER_2022_FULL</code>.</p>  <p>The following
     * parameters can’t be set for Windows containers: <code>linuxParameters</code>,
     * <code>privileged</code>, <code>user</code>, <code>ulimits</code>,
     * <code>readonlyRootFilesystem</code>, and
     * <code>efsVolumeConfiguration</code>.</p>   <p>The Batch Scheduler
     * checks before registering a task definition with Fargate. If the job requires a
     * Windows container and the first compute environment is <code>LINUX</code>, the
     * compute environment is skipped and the next is checked until a Windows-based
     * compute environment is found.</p>   <p>Fargate Spot is not
     * supported for Windows-based containers on Fargate. A job queue will be blocked
     * if a Fargate Windows job is submitted to a job queue with only Fargate Spot
     * compute environments. However, you can attach both <code>FARGATE</code> and
     * <code>FARGATE_SPOT</code> compute environments to the same job queue.</p>
     * 
     */
    inline RuntimePlatform& WithOperatingSystemFamily(const Aws::String& value) { SetOperatingSystemFamily(value); return *this;}

    /**
     * <p>The operating system for the compute environment. Valid values are:
     * <code>LINUX</code> (default), <code>WINDOWS_SERVER_2019_CORE</code>,
     * <code>WINDOWS_SERVER_2019_FULL</code>, <code>WINDOWS_SERVER_2022_CORE</code>,
     * and <code>WINDOWS_SERVER_2022_FULL</code>.</p>  <p>The following
     * parameters can’t be set for Windows containers: <code>linuxParameters</code>,
     * <code>privileged</code>, <code>user</code>, <code>ulimits</code>,
     * <code>readonlyRootFilesystem</code>, and
     * <code>efsVolumeConfiguration</code>.</p>   <p>The Batch Scheduler
     * checks before registering a task definition with Fargate. If the job requires a
     * Windows container and the first compute environment is <code>LINUX</code>, the
     * compute environment is skipped and the next is checked until a Windows-based
     * compute environment is found.</p>   <p>Fargate Spot is not
     * supported for Windows-based containers on Fargate. A job queue will be blocked
     * if a Fargate Windows job is submitted to a job queue with only Fargate Spot
     * compute environments. However, you can attach both <code>FARGATE</code> and
     * <code>FARGATE_SPOT</code> compute environments to the same job queue.</p>
     * 
     */
    inline RuntimePlatform& WithOperatingSystemFamily(Aws::String&& value) { SetOperatingSystemFamily(std::move(value)); return *this;}

    /**
     * <p>The operating system for the compute environment. Valid values are:
     * <code>LINUX</code> (default), <code>WINDOWS_SERVER_2019_CORE</code>,
     * <code>WINDOWS_SERVER_2019_FULL</code>, <code>WINDOWS_SERVER_2022_CORE</code>,
     * and <code>WINDOWS_SERVER_2022_FULL</code>.</p>  <p>The following
     * parameters can’t be set for Windows containers: <code>linuxParameters</code>,
     * <code>privileged</code>, <code>user</code>, <code>ulimits</code>,
     * <code>readonlyRootFilesystem</code>, and
     * <code>efsVolumeConfiguration</code>.</p>   <p>The Batch Scheduler
     * checks before registering a task definition with Fargate. If the job requires a
     * Windows container and the first compute environment is <code>LINUX</code>, the
     * compute environment is skipped and the next is checked until a Windows-based
     * compute environment is found.</p>   <p>Fargate Spot is not
     * supported for Windows-based containers on Fargate. A job queue will be blocked
     * if a Fargate Windows job is submitted to a job queue with only Fargate Spot
     * compute environments. However, you can attach both <code>FARGATE</code> and
     * <code>FARGATE_SPOT</code> compute environments to the same job queue.</p>
     * 
     */
    inline RuntimePlatform& WithOperatingSystemFamily(const char* value) { SetOperatingSystemFamily(value); return *this;}


    /**
     * <p>The vCPU architecture. The default value is <code>X86_64</code>. Valid values
     * are <code>X86_64</code> and <code> ARM64</code>.</p>  <p>This parameter
     * must be set to <code>X86_64</code> for Windows containers.</p> 
     */
    inline const Aws::String& GetCpuArchitecture() const{ return m_cpuArchitecture; }

    /**
     * <p>The vCPU architecture. The default value is <code>X86_64</code>. Valid values
     * are <code>X86_64</code> and <code> ARM64</code>.</p>  <p>This parameter
     * must be set to <code>X86_64</code> for Windows containers.</p> 
     */
    inline bool CpuArchitectureHasBeenSet() const { return m_cpuArchitectureHasBeenSet; }

    /**
     * <p>The vCPU architecture. The default value is <code>X86_64</code>. Valid values
     * are <code>X86_64</code> and <code> ARM64</code>.</p>  <p>This parameter
     * must be set to <code>X86_64</code> for Windows containers.</p> 
     */
    inline void SetCpuArchitecture(const Aws::String& value) { m_cpuArchitectureHasBeenSet = true; m_cpuArchitecture = value; }

    /**
     * <p>The vCPU architecture. The default value is <code>X86_64</code>. Valid values
     * are <code>X86_64</code> and <code> ARM64</code>.</p>  <p>This parameter
     * must be set to <code>X86_64</code> for Windows containers.</p> 
     */
    inline void SetCpuArchitecture(Aws::String&& value) { m_cpuArchitectureHasBeenSet = true; m_cpuArchitecture = std::move(value); }

    /**
     * <p>The vCPU architecture. The default value is <code>X86_64</code>. Valid values
     * are <code>X86_64</code> and <code> ARM64</code>.</p>  <p>This parameter
     * must be set to <code>X86_64</code> for Windows containers.</p> 
     */
    inline void SetCpuArchitecture(const char* value) { m_cpuArchitectureHasBeenSet = true; m_cpuArchitecture.assign(value); }

    /**
     * <p>The vCPU architecture. The default value is <code>X86_64</code>. Valid values
     * are <code>X86_64</code> and <code> ARM64</code>.</p>  <p>This parameter
     * must be set to <code>X86_64</code> for Windows containers.</p> 
     */
    inline RuntimePlatform& WithCpuArchitecture(const Aws::String& value) { SetCpuArchitecture(value); return *this;}

    /**
     * <p>The vCPU architecture. The default value is <code>X86_64</code>. Valid values
     * are <code>X86_64</code> and <code> ARM64</code>.</p>  <p>This parameter
     * must be set to <code>X86_64</code> for Windows containers.</p> 
     */
    inline RuntimePlatform& WithCpuArchitecture(Aws::String&& value) { SetCpuArchitecture(std::move(value)); return *this;}

    /**
     * <p>The vCPU architecture. The default value is <code>X86_64</code>. Valid values
     * are <code>X86_64</code> and <code> ARM64</code>.</p>  <p>This parameter
     * must be set to <code>X86_64</code> for Windows containers.</p> 
     */
    inline RuntimePlatform& WithCpuArchitecture(const char* value) { SetCpuArchitecture(value); return *this;}

  private:

    Aws::String m_operatingSystemFamily;
    bool m_operatingSystemFamilyHasBeenSet = false;

    Aws::String m_cpuArchitecture;
    bool m_cpuArchitectureHasBeenSet = false;
  };

} // namespace Model
} // namespace Batch
} // namespace Aws
