AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
AcceleratorPartitionLayout.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SageMaker {
21namespace Model {
22
33 public:
34 AWS_SAGEMAKER_API AcceleratorPartitionLayout() = default;
37 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
50 inline const Aws::Vector<Aws::String>& GetAcceleratorPartitionTypes() const { return m_acceleratorPartitionTypes; }
51 inline bool AcceleratorPartitionTypesHasBeenSet() const { return m_acceleratorPartitionTypesHasBeenSet; }
52 template <typename AcceleratorPartitionTypesT = Aws::Vector<Aws::String>>
53 void SetAcceleratorPartitionTypes(AcceleratorPartitionTypesT&& value) {
54 m_acceleratorPartitionTypesHasBeenSet = true;
55 m_acceleratorPartitionTypes = std::forward<AcceleratorPartitionTypesT>(value);
56 }
57 template <typename AcceleratorPartitionTypesT = Aws::Vector<Aws::String>>
58 AcceleratorPartitionLayout& WithAcceleratorPartitionTypes(AcceleratorPartitionTypesT&& value) {
59 SetAcceleratorPartitionTypes(std::forward<AcceleratorPartitionTypesT>(value));
60 return *this;
61 }
62 template <typename AcceleratorPartitionTypesT = Aws::String>
63 AcceleratorPartitionLayout& AddAcceleratorPartitionTypes(AcceleratorPartitionTypesT&& value) {
64 m_acceleratorPartitionTypesHasBeenSet = true;
65 m_acceleratorPartitionTypes.emplace_back(std::forward<AcceleratorPartitionTypesT>(value));
66 return *this;
67 }
69 private:
70 Aws::Vector<Aws::String> m_acceleratorPartitionTypes;
71 bool m_acceleratorPartitionTypesHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace SageMaker
76} // namespace Aws
AcceleratorPartitionLayout & WithAcceleratorPartitionTypes(AcceleratorPartitionTypesT &&value)
const Aws::Vector< Aws::String > & GetAcceleratorPartitionTypes() const
void SetAcceleratorPartitionTypes(AcceleratorPartitionTypesT &&value)
AWS_SAGEMAKER_API AcceleratorPartitionLayout(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API AcceleratorPartitionLayout()=default
AcceleratorPartitionLayout & AddAcceleratorPartitionTypes(AcceleratorPartitionTypesT &&value)
AWS_SAGEMAKER_API AcceleratorPartitionLayout & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue