AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
TotalHits.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/Relation.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
32class TotalHits {
33 public:
34 AWS_SAGEMAKER_API TotalHits() = default;
35 AWS_SAGEMAKER_API TotalHits(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SAGEMAKER_API TotalHits& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline long long GetValue() const { return m_value; }
45 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
46 inline void SetValue(long long value) {
47 m_valueHasBeenSet = true;
48 m_value = value;
49 }
50 inline TotalHits& WithValue(long long value) {
51 SetValue(value);
52 return *this;
53 }
55
57
65 inline Relation GetRelation() const { return m_relation; }
66 inline bool RelationHasBeenSet() const { return m_relationHasBeenSet; }
67 inline void SetRelation(Relation value) {
68 m_relationHasBeenSet = true;
69 m_relation = value;
70 }
72 SetRelation(value);
73 return *this;
74 }
76 private:
77 long long m_value{0};
78
79 Relation m_relation{Relation::NOT_SET};
80 bool m_valueHasBeenSet = false;
81 bool m_relationHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace SageMaker
86} // namespace Aws
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API TotalHits & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API TotalHits(Aws::Utils::Json::JsonView jsonValue)
TotalHits & WithValue(long long value)
Definition TotalHits.h:50
void SetValue(long long value)
Definition TotalHits.h:46
AWS_SAGEMAKER_API TotalHits()=default
TotalHits & WithRelation(Relation value)
Definition TotalHits.h:71
void SetRelation(Relation value)
Definition TotalHits.h:67
Aws::Utils::Json::JsonValue JsonValue