AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
CelebrityRecognition.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/model/CelebrityDetail.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Rekognition {
20namespace Model {
21
30 public:
31 AWS_REKOGNITION_API CelebrityRecognition() = default;
32 AWS_REKOGNITION_API CelebrityRecognition(Aws::Utils::Json::JsonView jsonValue);
34 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline long long GetTimestamp() const { return m_timestamp; }
43 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
44 inline void SetTimestamp(long long value) {
45 m_timestampHasBeenSet = true;
46 m_timestamp = value;
47 }
48 inline CelebrityRecognition& WithTimestamp(long long value) {
49 SetTimestamp(value);
50 return *this;
51 }
53
55
58 inline const CelebrityDetail& GetCelebrity() const { return m_celebrity; }
59 inline bool CelebrityHasBeenSet() const { return m_celebrityHasBeenSet; }
60 template <typename CelebrityT = CelebrityDetail>
61 void SetCelebrity(CelebrityT&& value) {
62 m_celebrityHasBeenSet = true;
63 m_celebrity = std::forward<CelebrityT>(value);
64 }
65 template <typename CelebrityT = CelebrityDetail>
66 CelebrityRecognition& WithCelebrity(CelebrityT&& value) {
67 SetCelebrity(std::forward<CelebrityT>(value));
68 return *this;
69 }
71 private:
72 long long m_timestamp{0};
73 bool m_timestampHasBeenSet = false;
74
75 CelebrityDetail m_celebrity;
76 bool m_celebrityHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace Rekognition
81} // namespace Aws
AWS_REKOGNITION_API CelebrityRecognition(Aws::Utils::Json::JsonView jsonValue)
AWS_REKOGNITION_API CelebrityRecognition()=default
CelebrityRecognition & WithTimestamp(long long value)
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_REKOGNITION_API CelebrityRecognition & operator=(Aws::Utils::Json::JsonView jsonValue)
CelebrityRecognition & WithCelebrity(CelebrityT &&value)
Aws::Utils::Json::JsonValue JsonValue