AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TargetPlatform.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/TargetPlatformOs.h>
9#include <aws/sagemaker/model/TargetPlatformArch.h>
10#include <aws/sagemaker/model/TargetPlatformAccelerator.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SageMaker
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_SAGEMAKER_API TargetPlatform();
39 AWS_SAGEMAKER_API TargetPlatform(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
52 inline const TargetPlatformOs& GetOs() const{ return m_os; }
53 inline bool OsHasBeenSet() const { return m_osHasBeenSet; }
54 inline void SetOs(const TargetPlatformOs& value) { m_osHasBeenSet = true; m_os = value; }
55 inline void SetOs(TargetPlatformOs&& value) { m_osHasBeenSet = true; m_os = std::move(value); }
56 inline TargetPlatform& WithOs(const TargetPlatformOs& value) { SetOs(value); return *this;}
57 inline TargetPlatform& WithOs(TargetPlatformOs&& value) { SetOs(std::move(value)); return *this;}
59
61
70 inline const TargetPlatformArch& GetArch() const{ return m_arch; }
71 inline bool ArchHasBeenSet() const { return m_archHasBeenSet; }
72 inline void SetArch(const TargetPlatformArch& value) { m_archHasBeenSet = true; m_arch = value; }
73 inline void SetArch(TargetPlatformArch&& value) { m_archHasBeenSet = true; m_arch = std::move(value); }
74 inline TargetPlatform& WithArch(const TargetPlatformArch& value) { SetArch(value); return *this;}
75 inline TargetPlatform& WithArch(TargetPlatformArch&& value) { SetArch(std::move(value)); return *this;}
77
79
87 inline const TargetPlatformAccelerator& GetAccelerator() const{ return m_accelerator; }
88 inline bool AcceleratorHasBeenSet() const { return m_acceleratorHasBeenSet; }
89 inline void SetAccelerator(const TargetPlatformAccelerator& value) { m_acceleratorHasBeenSet = true; m_accelerator = value; }
90 inline void SetAccelerator(TargetPlatformAccelerator&& value) { m_acceleratorHasBeenSet = true; m_accelerator = std::move(value); }
91 inline TargetPlatform& WithAccelerator(const TargetPlatformAccelerator& value) { SetAccelerator(value); return *this;}
92 inline TargetPlatform& WithAccelerator(TargetPlatformAccelerator&& value) { SetAccelerator(std::move(value)); return *this;}
94 private:
95
97 bool m_osHasBeenSet = false;
98
99 TargetPlatformArch m_arch;
100 bool m_archHasBeenSet = false;
101
102 TargetPlatformAccelerator m_accelerator;
103 bool m_acceleratorHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace SageMaker
108} // namespace Aws
TargetPlatform & WithOs(const TargetPlatformOs &value)
TargetPlatform & WithAccelerator(const TargetPlatformAccelerator &value)
void SetAccelerator(const TargetPlatformAccelerator &value)
TargetPlatform & WithArch(const TargetPlatformArch &value)
AWS_SAGEMAKER_API TargetPlatform & operator=(Aws::Utils::Json::JsonView jsonValue)
const TargetPlatformAccelerator & GetAccelerator() const
TargetPlatform & WithArch(TargetPlatformArch &&value)
void SetOs(const TargetPlatformOs &value)
void SetArch(const TargetPlatformArch &value)
AWS_SAGEMAKER_API TargetPlatform(Aws::Utils::Json::JsonView jsonValue)
TargetPlatform & WithOs(TargetPlatformOs &&value)
TargetPlatform & WithAccelerator(TargetPlatformAccelerator &&value)
const TargetPlatformOs & GetOs() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const TargetPlatformArch & GetArch() const
void SetOs(TargetPlatformOs &&value)
void SetArch(TargetPlatformArch &&value)
void SetAccelerator(TargetPlatformAccelerator &&value)
Aws::Utils::Json::JsonValue JsonValue