AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
UnmappedAttribute.h
1
6#pragma once
7#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
8#include <aws/comprehendmedical/model/Attribute.h>
9#include <aws/comprehendmedical/model/EntityType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ComprehendMedical {
21namespace Model {
22
30 public:
31 AWS_COMPREHENDMEDICAL_API UnmappedAttribute() = default;
32 AWS_COMPREHENDMEDICAL_API UnmappedAttribute(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COMPREHENDMEDICAL_API UnmappedAttribute& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_COMPREHENDMEDICAL_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline EntityType GetType() const { return m_type; }
43 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
44 inline void SetType(EntityType value) {
45 m_typeHasBeenSet = true;
46 m_type = value;
47 }
49 SetType(value);
50 return *this;
51 }
53
55
59 inline const Attribute& GetAttribute() const { return m_attribute; }
60 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
61 template <typename AttributeT = Attribute>
62 void SetAttribute(AttributeT&& value) {
63 m_attributeHasBeenSet = true;
64 m_attribute = std::forward<AttributeT>(value);
65 }
66 template <typename AttributeT = Attribute>
67 UnmappedAttribute& WithAttribute(AttributeT&& value) {
68 SetAttribute(std::forward<AttributeT>(value));
69 return *this;
70 }
72 private:
74
75 Attribute m_attribute;
76 bool m_typeHasBeenSet = false;
77 bool m_attributeHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace ComprehendMedical
82} // namespace Aws
UnmappedAttribute & WithType(EntityType value)
AWS_COMPREHENDMEDICAL_API UnmappedAttribute & operator=(Aws::Utils::Json::JsonView jsonValue)
UnmappedAttribute & WithAttribute(AttributeT &&value)
AWS_COMPREHENDMEDICAL_API UnmappedAttribute(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPREHENDMEDICAL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COMPREHENDMEDICAL_API UnmappedAttribute()=default
Aws::Utils::Json::JsonValue JsonValue