AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace AppRunner {
20namespace Model {
21
29 public:
30 AWS_APPRUNNER_API InstanceConfiguration() = default;
33 AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetCpu() const { return m_cpu; }
41 inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; }
42 template <typename CpuT = Aws::String>
43 void SetCpu(CpuT&& value) {
44 m_cpuHasBeenSet = true;
45 m_cpu = std::forward<CpuT>(value);
46 }
47 template <typename CpuT = Aws::String>
49 SetCpu(std::forward<CpuT>(value));
50 return *this;
51 }
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) {
63 m_memoryHasBeenSet = true;
64 m_memory = std::forward<MemoryT>(value);
65 }
66 template <typename MemoryT = Aws::String>
68 SetMemory(std::forward<MemoryT>(value));
69 return *this;
70 }
72
74
79 inline const Aws::String& GetInstanceRoleArn() const { return m_instanceRoleArn; }
80 inline bool InstanceRoleArnHasBeenSet() const { return m_instanceRoleArnHasBeenSet; }
81 template <typename InstanceRoleArnT = Aws::String>
82 void SetInstanceRoleArn(InstanceRoleArnT&& value) {
83 m_instanceRoleArnHasBeenSet = true;
84 m_instanceRoleArn = std::forward<InstanceRoleArnT>(value);
85 }
86 template <typename InstanceRoleArnT = Aws::String>
87 InstanceConfiguration& WithInstanceRoleArn(InstanceRoleArnT&& value) {
88 SetInstanceRoleArn(std::forward<InstanceRoleArnT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_cpu;
94
95 Aws::String m_memory;
96
97 Aws::String m_instanceRoleArn;
98 bool m_cpuHasBeenSet = false;
99 bool m_memoryHasBeenSet = false;
100 bool m_instanceRoleArnHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace AppRunner
105} // 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