AWS SDK for C++

AWS SDK for C++ Version 1.11.695

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeBuild {
21namespace Model {
22
32 public:
33 AWS_CODEBUILD_API ComputeConfiguration() = default;
36 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline long long GetVCpu() const { return m_vCpu; }
43 inline bool VCpuHasBeenSet() const { return m_vCpuHasBeenSet; }
44 inline void SetVCpu(long long value) {
45 m_vCpuHasBeenSet = true;
46 m_vCpu = value;
47 }
48 inline ComputeConfiguration& WithVCpu(long long value) {
49 SetVCpu(value);
50 return *this;
51 }
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) {
61 m_memoryHasBeenSet = true;
62 m_memory = value;
63 }
64 inline ComputeConfiguration& WithMemory(long long value) {
65 SetMemory(value);
66 return *this;
67 }
69
71
74 inline long long GetDisk() const { return m_disk; }
75 inline bool DiskHasBeenSet() const { return m_diskHasBeenSet; }
76 inline void SetDisk(long long value) {
77 m_diskHasBeenSet = true;
78 m_disk = value;
79 }
80 inline ComputeConfiguration& WithDisk(long long value) {
81 SetDisk(value);
82 return *this;
83 }
85
87
90 inline MachineType GetMachineType() const { return m_machineType; }
91 inline bool MachineTypeHasBeenSet() const { return m_machineTypeHasBeenSet; }
92 inline void SetMachineType(MachineType value) {
93 m_machineTypeHasBeenSet = true;
94 m_machineType = value;
95 }
97 SetMachineType(value);
98 return *this;
99 }
101
103
106 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
107 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
108 template <typename InstanceTypeT = Aws::String>
109 void SetInstanceType(InstanceTypeT&& value) {
110 m_instanceTypeHasBeenSet = true;
111 m_instanceType = std::forward<InstanceTypeT>(value);
112 }
113 template <typename InstanceTypeT = Aws::String>
114 ComputeConfiguration& WithInstanceType(InstanceTypeT&& value) {
115 SetInstanceType(std::forward<InstanceTypeT>(value));
116 return *this;
117 }
119 private:
120 long long m_vCpu{0};
121 bool m_vCpuHasBeenSet = false;
122
123 long long m_memory{0};
124 bool m_memoryHasBeenSet = false;
125
126 long long m_disk{0};
127 bool m_diskHasBeenSet = false;
128
129 MachineType m_machineType{MachineType::NOT_SET};
130 bool m_machineTypeHasBeenSet = false;
131
132 Aws::String m_instanceType;
133 bool m_instanceTypeHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace CodeBuild
138} // 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