AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ChallengePreference.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/model/ChallengeType.h>
9#include <aws/rekognition/model/Versions.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Rekognition {
21namespace Model {
22
30 public:
31 AWS_REKOGNITION_API ChallengePreference() = default;
32 AWS_REKOGNITION_API ChallengePreference(Aws::Utils::Json::JsonView jsonValue);
34 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline ChallengeType GetType() const { return m_type; }
42 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
43 inline void SetType(ChallengeType value) {
44 m_typeHasBeenSet = true;
45 m_type = value;
46 }
48 SetType(value);
49 return *this;
50 }
52
54
58 inline const Versions& GetVersions() const { return m_versions; }
59 inline bool VersionsHasBeenSet() const { return m_versionsHasBeenSet; }
60 template <typename VersionsT = Versions>
61 void SetVersions(VersionsT&& value) {
62 m_versionsHasBeenSet = true;
63 m_versions = std::forward<VersionsT>(value);
64 }
65 template <typename VersionsT = Versions>
66 ChallengePreference& WithVersions(VersionsT&& value) {
67 SetVersions(std::forward<VersionsT>(value));
68 return *this;
69 }
71 private:
73
74 Versions m_versions;
75 bool m_typeHasBeenSet = false;
76 bool m_versionsHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace Rekognition
81} // namespace Aws
ChallengePreference & WithType(ChallengeType value)
AWS_REKOGNITION_API ChallengePreference & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_REKOGNITION_API ChallengePreference(Aws::Utils::Json::JsonView jsonValue)
AWS_REKOGNITION_API ChallengePreference()=default
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
ChallengePreference & WithVersions(VersionsT &&value)
Aws::Utils::Json::JsonValue JsonValue