AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Challenge.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/rekognition/Rekognition_EXPORTS.h>
9#include <aws/rekognition/model/ChallengeType.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
29class Challenge {
30 public:
31 AWS_REKOGNITION_API Challenge() = default;
32 AWS_REKOGNITION_API Challenge(Aws::Utils::Json::JsonView jsonValue);
33 AWS_REKOGNITION_API Challenge& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline ChallengeType GetType() const { return m_type; }
41 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
42 inline void SetType(ChallengeType value) {
43 m_typeHasBeenSet = true;
44 m_type = value;
45 }
47 SetType(value);
48 return *this;
49 }
51
53
56 inline const Aws::String& GetVersion() const { return m_version; }
57 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
58 template <typename VersionT = Aws::String>
59 void SetVersion(VersionT&& value) {
60 m_versionHasBeenSet = true;
61 m_version = std::forward<VersionT>(value);
62 }
63 template <typename VersionT = Aws::String>
64 Challenge& WithVersion(VersionT&& value) {
65 SetVersion(std::forward<VersionT>(value));
66 return *this;
67 }
69 private:
71
72 Aws::String m_version;
73 bool m_typeHasBeenSet = false;
74 bool m_versionHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace Rekognition
79} // namespace Aws
AWS_REKOGNITION_API Challenge & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(ChallengeType value)
Definition Challenge.h:42
AWS_REKOGNITION_API Challenge(Aws::Utils::Json::JsonView jsonValue)
Challenge & WithVersion(VersionT &&value)
Definition Challenge.h:64
const Aws::String & GetVersion() const
Definition Challenge.h:56
void SetVersion(VersionT &&value)
Definition Challenge.h:59
AWS_REKOGNITION_API Challenge()=default
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
Challenge & WithType(ChallengeType value)
Definition Challenge.h:46
ChallengeType GetType() const
Definition Challenge.h:40
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue