AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCpu(const Aws::String& value) { m_cpuHasBeenSet = true; m_cpu = value; }
49 inline void SetCpu(Aws::String&& value) { m_cpuHasBeenSet = true; m_cpu = std::move(value); }
50 inline void SetCpu(const char* value) { m_cpuHasBeenSet = true; m_cpu.assign(value); }
51 inline InstanceConfiguration& WithCpu(const Aws::String& value) { SetCpu(value); return *this;}
52 inline InstanceConfiguration& WithCpu(Aws::String&& value) { SetCpu(std::move(value)); return *this;}
53 inline InstanceConfiguration& WithCpu(const char* value) { SetCpu(value); return *this;}
55
57
61 inline const Aws::String& GetMemory() const{ return m_memory; }
62 inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
63 inline void SetMemory(const Aws::String& value) { m_memoryHasBeenSet = true; m_memory = value; }
64 inline void SetMemory(Aws::String&& value) { m_memoryHasBeenSet = true; m_memory = std::move(value); }
65 inline void SetMemory(const char* value) { m_memoryHasBeenSet = true; m_memory.assign(value); }
66 inline InstanceConfiguration& WithMemory(const Aws::String& value) { SetMemory(value); return *this;}
67 inline InstanceConfiguration& WithMemory(Aws::String&& value) { SetMemory(std::move(value)); return *this;}
68 inline InstanceConfiguration& WithMemory(const char* value) { SetMemory(value); return *this;}
70
72
77 inline const Aws::String& GetInstanceRoleArn() const{ return m_instanceRoleArn; }
78 inline bool InstanceRoleArnHasBeenSet() const { return m_instanceRoleArnHasBeenSet; }
79 inline void SetInstanceRoleArn(const Aws::String& value) { m_instanceRoleArnHasBeenSet = true; m_instanceRoleArn = value; }
80 inline void SetInstanceRoleArn(Aws::String&& value) { m_instanceRoleArnHasBeenSet = true; m_instanceRoleArn = std::move(value); }
81 inline void SetInstanceRoleArn(const char* value) { m_instanceRoleArnHasBeenSet = true; m_instanceRoleArn.assign(value); }
82 inline InstanceConfiguration& WithInstanceRoleArn(const Aws::String& value) { SetInstanceRoleArn(value); return *this;}
83 inline InstanceConfiguration& WithInstanceRoleArn(Aws::String&& value) { SetInstanceRoleArn(std::move(value)); return *this;}
84 inline InstanceConfiguration& WithInstanceRoleArn(const char* value) { SetInstanceRoleArn(value); return *this;}
86 private:
87
88 Aws::String m_cpu;
89 bool m_cpuHasBeenSet = false;
90
91 Aws::String m_memory;
92 bool m_memoryHasBeenSet = false;
93
94 Aws::String m_instanceRoleArn;
95 bool m_instanceRoleArnHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace AppRunner
100} // namespace Aws
InstanceConfiguration & WithMemory(Aws::String &&value)
InstanceConfiguration & WithMemory(const Aws::String &value)
AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const
InstanceConfiguration & WithInstanceRoleArn(const char *value)
InstanceConfiguration & WithInstanceRoleArn(Aws::String &&value)
void SetInstanceRoleArn(const Aws::String &value)
AWS_APPRUNNER_API InstanceConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
InstanceConfiguration & WithInstanceRoleArn(const Aws::String &value)
AWS_APPRUNNER_API InstanceConfiguration(Aws::Utils::Json::JsonView jsonValue)
InstanceConfiguration & WithCpu(Aws::String &&value)
InstanceConfiguration & WithCpu(const char *value)
InstanceConfiguration & WithCpu(const Aws::String &value)
InstanceConfiguration & WithMemory(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue