AWS SDK for C++  1.9.160
AWS SDK for C++
MetricData.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace SageMaker
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetMetricName() const{ return m_metricName; }
46 
50  inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
51 
55  inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
56 
60  inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
61 
65  inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
66 
70  inline MetricData& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
71 
75  inline MetricData& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
76 
80  inline MetricData& WithMetricName(const char* value) { SetMetricName(value); return *this;}
81 
82 
86  inline double GetValue() const{ return m_value; }
87 
91  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
92 
96  inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
97 
101  inline MetricData& WithValue(double value) { SetValue(value); return *this;}
102 
103 
107  inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
108 
112  inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
113 
117  inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
118 
122  inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
123 
127  inline MetricData& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
128 
132  inline MetricData& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
133 
134  private:
135 
136  Aws::String m_metricName;
137  bool m_metricNameHasBeenSet;
138 
139  double m_value;
140  bool m_valueHasBeenSet;
141 
142  Aws::Utils::DateTime m_timestamp;
143  bool m_timestampHasBeenSet;
144  };
145 
146 } // namespace Model
147 } // namespace SageMaker
148 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::SageMaker::Model::MetricData::SetMetricName
void SetMetricName(const Aws::String &value)
Definition: MetricData.h:55
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
SageMaker_EXPORTS.h
Aws::SageMaker::Model::MetricData::GetMetricName
const Aws::String & GetMetricName() const
Definition: MetricData.h:45
Aws::SageMaker::Model::MetricData::SetMetricName
void SetMetricName(Aws::String &&value)
Definition: MetricData.h:60
Aws::SageMaker::Model::MetricData::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: MetricData.h:91
DateTime.h
Aws::SageMaker::Model::MetricData::WithMetricName
MetricData & WithMetricName(const char *value)
Definition: MetricData.h:80
Aws::SageMaker::Model::MetricData::WithMetricName
MetricData & WithMetricName(const Aws::String &value)
Definition: MetricData.h:70
Aws::SageMaker::Model::MetricData::GetValue
double GetValue() const
Definition: MetricData.h:86
Aws::SageMaker::Model::MetricData::WithMetricName
MetricData & WithMetricName(Aws::String &&value)
Definition: MetricData.h:75
Aws::SageMaker::Model::MetricData::WithTimestamp
MetricData & WithTimestamp(const Aws::Utils::DateTime &value)
Definition: MetricData.h:127
Aws::SageMaker::Model::MetricData::WithValue
MetricData & WithValue(double value)
Definition: MetricData.h:101
Aws::SageMaker::Model::MetricData::SetValue
void SetValue(double value)
Definition: MetricData.h:96
Aws::SageMaker::Model::MetricData::SetTimestamp
void SetTimestamp(const Aws::Utils::DateTime &value)
Definition: MetricData.h:117
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::MetricData::SetTimestamp
void SetTimestamp(Aws::Utils::DateTime &&value)
Definition: MetricData.h:122
Aws::SageMaker::Model::MetricData::operator=
MetricData & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::MetricData
Definition: MetricData.h:34
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SageMaker::Model::MetricData::MetricData
MetricData(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::MetricData::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SageMaker::Model::MetricData::GetTimestamp
const Aws::Utils::DateTime & GetTimestamp() const
Definition: MetricData.h:107
Aws::SageMaker::Model::MetricData::TimestampHasBeenSet
bool TimestampHasBeenSet() const
Definition: MetricData.h:112
Aws::SageMaker::Model::MetricData::MetricNameHasBeenSet
bool MetricNameHasBeenSet() const
Definition: MetricData.h:50
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::MetricData::WithTimestamp
MetricData & WithTimestamp(Aws::Utils::DateTime &&value)
Definition: MetricData.h:132
Aws::SageMaker::Model::MetricData::SetMetricName
void SetMetricName(const char *value)
Definition: MetricData.h:65
Aws::SageMaker::Model::MetricData::MetricData
MetricData()