AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ComputeConfiguration.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/MachineType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeBuild
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_CODEBUILD_API ComputeConfiguration() = default;
41 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline long long GetVCpu() const { return m_vCpu; }
49 inline bool VCpuHasBeenSet() const { return m_vCpuHasBeenSet; }
50 inline void SetVCpu(long long value) { m_vCpuHasBeenSet = true; m_vCpu = value; }
51 inline ComputeConfiguration& WithVCpu(long long value) { SetVCpu(value); return *this;}
53
55
58 inline long long GetMemory() const { return m_memory; }
59 inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
60 inline void SetMemory(long long value) { m_memoryHasBeenSet = true; m_memory = value; }
61 inline ComputeConfiguration& WithMemory(long long value) { SetMemory(value); return *this;}
63
65
68 inline long long GetDisk() const { return m_disk; }
69 inline bool DiskHasBeenSet() const { return m_diskHasBeenSet; }
70 inline void SetDisk(long long value) { m_diskHasBeenSet = true; m_disk = value; }
71 inline ComputeConfiguration& WithDisk(long long value) { SetDisk(value); return *this;}
73
75
78 inline MachineType GetMachineType() const { return m_machineType; }
79 inline bool MachineTypeHasBeenSet() const { return m_machineTypeHasBeenSet; }
80 inline void SetMachineType(MachineType value) { m_machineTypeHasBeenSet = true; m_machineType = value; }
81 inline ComputeConfiguration& WithMachineType(MachineType value) { SetMachineType(value); return *this;}
83
85
88 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
89 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
90 template<typename InstanceTypeT = Aws::String>
91 void SetInstanceType(InstanceTypeT&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::forward<InstanceTypeT>(value); }
92 template<typename InstanceTypeT = Aws::String>
93 ComputeConfiguration& WithInstanceType(InstanceTypeT&& value) { SetInstanceType(std::forward<InstanceTypeT>(value)); return *this;}
95 private:
96
97 long long m_vCpu{0};
98 bool m_vCpuHasBeenSet = false;
99
100 long long m_memory{0};
101 bool m_memoryHasBeenSet = false;
102
103 long long m_disk{0};
104 bool m_diskHasBeenSet = false;
105
106 MachineType m_machineType{MachineType::NOT_SET};
107 bool m_machineTypeHasBeenSet = false;
108
109 Aws::String m_instanceType;
110 bool m_instanceTypeHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace CodeBuild
115} // namespace Aws
ComputeConfiguration & WithVCpu(long long value)
AWS_CODEBUILD_API ComputeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEBUILD_API ComputeConfiguration()=default
AWS_CODEBUILD_API ComputeConfiguration(Aws::Utils::Json::JsonView jsonValue)
ComputeConfiguration & WithMachineType(MachineType value)
ComputeConfiguration & WithMemory(long long value)
ComputeConfiguration & WithDisk(long long value)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
ComputeConfiguration & WithInstanceType(InstanceTypeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue