AWS SDK for C++

AWS SDK for C++ Version 1.11.921

Loading...
Searching...
No Matches
IterationContext.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SageMaker {
20namespace Model {
21
28 public:
29 AWS_SAGEMAKER_API IterationContext() = default;
30 AWS_SAGEMAKER_API IterationContext(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetParentStepName() const { return m_parentStepName; }
39 inline bool ParentStepNameHasBeenSet() const { return m_parentStepNameHasBeenSet; }
40 template <typename ParentStepNameT = Aws::String>
41 void SetParentStepName(ParentStepNameT&& value) {
42 m_parentStepNameHasBeenSet = true;
43 m_parentStepName = std::forward<ParentStepNameT>(value);
44 }
45 template <typename ParentStepNameT = Aws::String>
46 IterationContext& WithParentStepName(ParentStepNameT&& value) {
47 SetParentStepName(std::forward<ParentStepNameT>(value));
48 return *this;
49 }
51
53
56 inline int GetIndex() const { return m_index; }
57 inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
58 inline void SetIndex(int value) {
59 m_indexHasBeenSet = true;
60 m_index = value;
61 }
62 inline IterationContext& WithIndex(int value) {
63 SetIndex(value);
64 return *this;
65 }
67
69
72 inline const Aws::String& GetItem() const { return m_item; }
73 inline bool ItemHasBeenSet() const { return m_itemHasBeenSet; }
74 template <typename ItemT = Aws::String>
75 void SetItem(ItemT&& value) {
76 m_itemHasBeenSet = true;
77 m_item = std::forward<ItemT>(value);
78 }
79 template <typename ItemT = Aws::String>
80 IterationContext& WithItem(ItemT&& value) {
81 SetItem(std::forward<ItemT>(value));
82 return *this;
83 }
85 private:
86 Aws::String m_parentStepName;
87
88 int m_index{0};
89
90 Aws::String m_item;
91 bool m_parentStepNameHasBeenSet = false;
92 bool m_indexHasBeenSet = false;
93 bool m_itemHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace SageMaker
98} // namespace Aws
IterationContext & WithItem(ItemT &&value)
AWS_SAGEMAKER_API IterationContext & operator=(Aws::Utils::Json::JsonView jsonValue)
IterationContext & WithParentStepName(ParentStepNameT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetItem() const
IterationContext & WithIndex(int value)
AWS_SAGEMAKER_API IterationContext(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetParentStepName() const
void SetParentStepName(ParentStepNameT &&value)
AWS_SAGEMAKER_API IterationContext()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue