AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
TimeSeriesConfig.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
30 public:
31 AWS_SAGEMAKER_API TimeSeriesConfig() = default;
32 AWS_SAGEMAKER_API TimeSeriesConfig(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline const Aws::String& GetTargetAttributeName() const { return m_targetAttributeName; }
43 inline bool TargetAttributeNameHasBeenSet() const { return m_targetAttributeNameHasBeenSet; }
44 template <typename TargetAttributeNameT = Aws::String>
45 void SetTargetAttributeName(TargetAttributeNameT&& value) {
46 m_targetAttributeNameHasBeenSet = true;
47 m_targetAttributeName = std::forward<TargetAttributeNameT>(value);
48 }
49 template <typename TargetAttributeNameT = Aws::String>
50 TimeSeriesConfig& WithTargetAttributeName(TargetAttributeNameT&& value) {
51 SetTargetAttributeName(std::forward<TargetAttributeNameT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetTimestampAttributeName() const { return m_timestampAttributeName; }
62 inline bool TimestampAttributeNameHasBeenSet() const { return m_timestampAttributeNameHasBeenSet; }
63 template <typename TimestampAttributeNameT = Aws::String>
64 void SetTimestampAttributeName(TimestampAttributeNameT&& value) {
65 m_timestampAttributeNameHasBeenSet = true;
66 m_timestampAttributeName = std::forward<TimestampAttributeNameT>(value);
67 }
68 template <typename TimestampAttributeNameT = Aws::String>
69 TimeSeriesConfig& WithTimestampAttributeName(TimestampAttributeNameT&& value) {
70 SetTimestampAttributeName(std::forward<TimestampAttributeNameT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetItemIdentifierAttributeName() const { return m_itemIdentifierAttributeName; }
81 inline bool ItemIdentifierAttributeNameHasBeenSet() const { return m_itemIdentifierAttributeNameHasBeenSet; }
82 template <typename ItemIdentifierAttributeNameT = Aws::String>
83 void SetItemIdentifierAttributeName(ItemIdentifierAttributeNameT&& value) {
84 m_itemIdentifierAttributeNameHasBeenSet = true;
85 m_itemIdentifierAttributeName = std::forward<ItemIdentifierAttributeNameT>(value);
86 }
87 template <typename ItemIdentifierAttributeNameT = Aws::String>
88 TimeSeriesConfig& WithItemIdentifierAttributeName(ItemIdentifierAttributeNameT&& value) {
89 SetItemIdentifierAttributeName(std::forward<ItemIdentifierAttributeNameT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::Vector<Aws::String>& GetGroupingAttributeNames() const { return m_groupingAttributeNames; }
100 inline bool GroupingAttributeNamesHasBeenSet() const { return m_groupingAttributeNamesHasBeenSet; }
101 template <typename GroupingAttributeNamesT = Aws::Vector<Aws::String>>
102 void SetGroupingAttributeNames(GroupingAttributeNamesT&& value) {
103 m_groupingAttributeNamesHasBeenSet = true;
104 m_groupingAttributeNames = std::forward<GroupingAttributeNamesT>(value);
105 }
106 template <typename GroupingAttributeNamesT = Aws::Vector<Aws::String>>
107 TimeSeriesConfig& WithGroupingAttributeNames(GroupingAttributeNamesT&& value) {
108 SetGroupingAttributeNames(std::forward<GroupingAttributeNamesT>(value));
109 return *this;
110 }
111 template <typename GroupingAttributeNamesT = Aws::String>
112 TimeSeriesConfig& AddGroupingAttributeNames(GroupingAttributeNamesT&& value) {
113 m_groupingAttributeNamesHasBeenSet = true;
114 m_groupingAttributeNames.emplace_back(std::forward<GroupingAttributeNamesT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_targetAttributeName;
120
121 Aws::String m_timestampAttributeName;
122
123 Aws::String m_itemIdentifierAttributeName;
124
125 Aws::Vector<Aws::String> m_groupingAttributeNames;
126 bool m_targetAttributeNameHasBeenSet = false;
127 bool m_timestampAttributeNameHasBeenSet = false;
128 bool m_itemIdentifierAttributeNameHasBeenSet = false;
129 bool m_groupingAttributeNamesHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace SageMaker
134} // namespace Aws
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTargetAttributeName(TargetAttributeNameT &&value)
TimeSeriesConfig & AddGroupingAttributeNames(GroupingAttributeNamesT &&value)
void SetTimestampAttributeName(TimestampAttributeNameT &&value)
const Aws::String & GetTimestampAttributeName() const
const Aws::String & GetItemIdentifierAttributeName() const
AWS_SAGEMAKER_API TimeSeriesConfig()=default
void SetGroupingAttributeNames(GroupingAttributeNamesT &&value)
AWS_SAGEMAKER_API TimeSeriesConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
TimeSeriesConfig & WithGroupingAttributeNames(GroupingAttributeNamesT &&value)
AWS_SAGEMAKER_API TimeSeriesConfig(Aws::Utils::Json::JsonView jsonValue)
void SetItemIdentifierAttributeName(ItemIdentifierAttributeNameT &&value)
TimeSeriesConfig & WithItemIdentifierAttributeName(ItemIdentifierAttributeNameT &&value)
TimeSeriesConfig & WithTimestampAttributeName(TimestampAttributeNameT &&value)
const Aws::String & GetTargetAttributeName() const
TimeSeriesConfig & WithTargetAttributeName(TargetAttributeNameT &&value)
const Aws::Vector< Aws::String > & GetGroupingAttributeNames() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue