/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Braket { namespace Model { /** *

Configures the resource instances to use while running the Amazon Braket * hybrid job on Amazon Braket.

See Also:

AWS * API Reference

*/ class InstanceConfig { public: AWS_BRAKET_API InstanceConfig(); AWS_BRAKET_API InstanceConfig(Aws::Utils::Json::JsonView jsonValue); AWS_BRAKET_API InstanceConfig& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_BRAKET_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Configures the number of resource instances to use while running an Amazon * Braket job on Amazon Braket. The default value is 1.

*/ inline int GetInstanceCount() const{ return m_instanceCount; } /** *

Configures the number of resource instances to use while running an Amazon * Braket job on Amazon Braket. The default value is 1.

*/ inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; } /** *

Configures the number of resource instances to use while running an Amazon * Braket job on Amazon Braket. The default value is 1.

*/ inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; } /** *

Configures the number of resource instances to use while running an Amazon * Braket job on Amazon Braket. The default value is 1.

*/ inline InstanceConfig& WithInstanceCount(int value) { SetInstanceCount(value); return *this;} /** *

Configures the type resource instances to use while running an Amazon Braket * hybrid job.

*/ inline const InstanceType& GetInstanceType() const{ return m_instanceType; } /** *

Configures the type resource instances to use while running an Amazon Braket * hybrid job.

*/ inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; } /** *

Configures the type resource instances to use while running an Amazon Braket * hybrid job.

*/ inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; } /** *

Configures the type resource instances to use while running an Amazon Braket * hybrid job.

*/ inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); } /** *

Configures the type resource instances to use while running an Amazon Braket * hybrid job.

*/ inline InstanceConfig& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;} /** *

Configures the type resource instances to use while running an Amazon Braket * hybrid job.

*/ inline InstanceConfig& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;} /** *

The size of the storage volume, in GB, that user wants to provision.

*/ inline int GetVolumeSizeInGb() const{ return m_volumeSizeInGb; } /** *

The size of the storage volume, in GB, that user wants to provision.

*/ inline bool VolumeSizeInGbHasBeenSet() const { return m_volumeSizeInGbHasBeenSet; } /** *

The size of the storage volume, in GB, that user wants to provision.

*/ inline void SetVolumeSizeInGb(int value) { m_volumeSizeInGbHasBeenSet = true; m_volumeSizeInGb = value; } /** *

The size of the storage volume, in GB, that user wants to provision.

*/ inline InstanceConfig& WithVolumeSizeInGb(int value) { SetVolumeSizeInGb(value); return *this;} private: int m_instanceCount; bool m_instanceCountHasBeenSet = false; InstanceType m_instanceType; bool m_instanceTypeHasBeenSet = false; int m_volumeSizeInGb; bool m_volumeSizeInGbHasBeenSet = false; }; } // namespace Model } // namespace Braket } // namespace Aws