AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
InstanceConfiguration.h
1
6#pragma once
7#include <aws/apprunner/AppRunner_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.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 AppRunner
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_APPRUNNER_API InstanceConfiguration() = default;
38 AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetCpu() const { return m_cpu; }
47 inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; }
48 template<typename CpuT = Aws::String>
49 void SetCpu(CpuT&& value) { m_cpuHasBeenSet = true; m_cpu = std::forward<CpuT>(value); }
50 template<typename CpuT = Aws::String>
51 InstanceConfiguration& WithCpu(CpuT&& value) { SetCpu(std::forward<CpuT>(value)); return *this;}
53
55
59 inline const Aws::String& GetMemory() const { return m_memory; }
60 inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
61 template<typename MemoryT = Aws::String>
62 void SetMemory(MemoryT&& value) { m_memoryHasBeenSet = true; m_memory = std::forward<MemoryT>(value); }
63 template<typename MemoryT = Aws::String>
64 InstanceConfiguration& WithMemory(MemoryT&& value) { SetMemory(std::forward<MemoryT>(value)); return *this;}
66
68
73 inline const Aws::String& GetInstanceRoleArn() const { return m_instanceRoleArn; }
74 inline bool InstanceRoleArnHasBeenSet() const { return m_instanceRoleArnHasBeenSet; }
75 template<typename InstanceRoleArnT = Aws::String>
76 void SetInstanceRoleArn(InstanceRoleArnT&& value) { m_instanceRoleArnHasBeenSet = true; m_instanceRoleArn = std::forward<InstanceRoleArnT>(value); }
77 template<typename InstanceRoleArnT = Aws::String>
78 InstanceConfiguration& WithInstanceRoleArn(InstanceRoleArnT&& value) { SetInstanceRoleArn(std::forward<InstanceRoleArnT>(value)); return *this;}
80 private:
81
82 Aws::String m_cpu;
83 bool m_cpuHasBeenSet = false;
84
85 Aws::String m_memory;
86 bool m_memoryHasBeenSet = false;
87
88 Aws::String m_instanceRoleArn;
89 bool m_instanceRoleArnHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace AppRunner
94} // namespace Aws
AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPRUNNER_API InstanceConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPRUNNER_API InstanceConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_APPRUNNER_API InstanceConfiguration()=default
InstanceConfiguration & WithInstanceRoleArn(InstanceRoleArnT &&value)
InstanceConfiguration & WithMemory(MemoryT &&value)
InstanceConfiguration & WithCpu(CpuT &&value)
void SetInstanceRoleArn(InstanceRoleArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue