AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceConfig.h
1
6#pragma once
7#include <aws/braket/Braket_EXPORTS.h>
8#include <aws/braket/model/InstanceType.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Braket
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_BRAKET_API InstanceConfig();
36 AWS_BRAKET_API InstanceConfig(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BRAKET_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline int GetInstanceCount() const{ return m_instanceCount; }
47 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
48 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
49 inline InstanceConfig& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
51
53
57 inline const InstanceType& GetInstanceType() const{ return m_instanceType; }
58 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
59 inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
60 inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
61 inline InstanceConfig& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;}
62 inline InstanceConfig& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
64
66
69 inline int GetVolumeSizeInGb() const{ return m_volumeSizeInGb; }
70 inline bool VolumeSizeInGbHasBeenSet() const { return m_volumeSizeInGbHasBeenSet; }
71 inline void SetVolumeSizeInGb(int value) { m_volumeSizeInGbHasBeenSet = true; m_volumeSizeInGb = value; }
72 inline InstanceConfig& WithVolumeSizeInGb(int value) { SetVolumeSizeInGb(value); return *this;}
74 private:
75
76 int m_instanceCount;
77 bool m_instanceCountHasBeenSet = false;
78
79 InstanceType m_instanceType;
80 bool m_instanceTypeHasBeenSet = false;
81
82 int m_volumeSizeInGb;
83 bool m_volumeSizeInGbHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace Braket
88} // namespace Aws
AWS_BRAKET_API InstanceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const InstanceType & GetInstanceType() const
InstanceConfig & WithInstanceType(InstanceType &&value)
AWS_BRAKET_API Aws::Utils::Json::JsonValue Jsonize() const
InstanceConfig & WithInstanceType(const InstanceType &value)
InstanceConfig & WithInstanceCount(int value)
InstanceConfig & WithVolumeSizeInGb(int value)
void SetInstanceType(InstanceType &&value)
AWS_BRAKET_API InstanceConfig(Aws::Utils::Json::JsonView jsonValue)
void SetInstanceType(const InstanceType &value)
Aws::Utils::Json::JsonValue JsonValue