AWS SDK for C++

AWS SDK for C++ Version 1.11.807

Loading...
Searching...
No Matches
ComputeConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datazone/DataZone_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace DataZone {
20namespace Model {
21
29 public:
30 AWS_DATAZONE_API ComputeConfig() = default;
31 AWS_DATAZONE_API ComputeConfig(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
40 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
41 template <typename InstanceTypeT = Aws::String>
42 void SetInstanceType(InstanceTypeT&& value) {
43 m_instanceTypeHasBeenSet = true;
44 m_instanceType = std::forward<InstanceTypeT>(value);
45 }
46 template <typename InstanceTypeT = Aws::String>
47 ComputeConfig& WithInstanceType(InstanceTypeT&& value) {
48 SetInstanceType(std::forward<InstanceTypeT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetEnvironmentVersion() const { return m_environmentVersion; }
58 inline bool EnvironmentVersionHasBeenSet() const { return m_environmentVersionHasBeenSet; }
59 template <typename EnvironmentVersionT = Aws::String>
60 void SetEnvironmentVersion(EnvironmentVersionT&& value) {
61 m_environmentVersionHasBeenSet = true;
62 m_environmentVersion = std::forward<EnvironmentVersionT>(value);
63 }
64 template <typename EnvironmentVersionT = Aws::String>
65 ComputeConfig& WithEnvironmentVersion(EnvironmentVersionT&& value) {
66 SetEnvironmentVersion(std::forward<EnvironmentVersionT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_instanceType;
72
73 Aws::String m_environmentVersion;
74 bool m_instanceTypeHasBeenSet = false;
75 bool m_environmentVersionHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace DataZone
80} // namespace Aws
ComputeConfig & WithEnvironmentVersion(EnvironmentVersionT &&value)
void SetEnvironmentVersion(EnvironmentVersionT &&value)
const Aws::String & GetInstanceType() const
AWS_DATAZONE_API ComputeConfig()=default
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetInstanceType(InstanceTypeT &&value)
AWS_DATAZONE_API ComputeConfig(Aws::Utils::Json::JsonView jsonValue)
ComputeConfig & WithInstanceType(InstanceTypeT &&value)
AWS_DATAZONE_API ComputeConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetEnvironmentVersion() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue