AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TtlDuration.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/TtlDurationUnit.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMaker
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_SAGEMAKER_API TtlDuration();
39 AWS_SAGEMAKER_API TtlDuration(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SAGEMAKER_API TtlDuration& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const TtlDurationUnit& GetUnit() const{ return m_unit; }
49 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
50 inline void SetUnit(const TtlDurationUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
51 inline void SetUnit(TtlDurationUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
52 inline TtlDuration& WithUnit(const TtlDurationUnit& value) { SetUnit(value); return *this;}
53 inline TtlDuration& WithUnit(TtlDurationUnit&& value) { SetUnit(std::move(value)); return *this;}
55
57
60 inline int GetValue() const{ return m_value; }
61 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
62 inline void SetValue(int value) { m_valueHasBeenSet = true; m_value = value; }
63 inline TtlDuration& WithValue(int value) { SetValue(value); return *this;}
65 private:
66
67 TtlDurationUnit m_unit;
68 bool m_unitHasBeenSet = false;
69
70 int m_value;
71 bool m_valueHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace SageMaker
76} // namespace Aws
const TtlDurationUnit & GetUnit() const
Definition TtlDuration.h:48
void SetUnit(TtlDurationUnit &&value)
Definition TtlDuration.h:51
void SetUnit(const TtlDurationUnit &value)
Definition TtlDuration.h:50
TtlDuration & WithUnit(TtlDurationUnit &&value)
Definition TtlDuration.h:53
AWS_SAGEMAKER_API TtlDuration & operator=(Aws::Utils::Json::JsonView jsonValue)
TtlDuration & WithValue(int value)
Definition TtlDuration.h:63
TtlDuration & WithUnit(const TtlDurationUnit &value)
Definition TtlDuration.h:52
AWS_SAGEMAKER_API TtlDuration(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue