AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
EntityConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kendra/Kendra_EXPORTS.h>
9#include <aws/kendra/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 kendra {
21namespace Model {
22
31 public:
32 AWS_KENDRA_API EntityConfiguration() = default;
35 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetEntityId() const { return m_entityId; }
43 inline bool EntityIdHasBeenSet() const { return m_entityIdHasBeenSet; }
44 template <typename EntityIdT = Aws::String>
45 void SetEntityId(EntityIdT&& value) {
46 m_entityIdHasBeenSet = true;
47 m_entityId = std::forward<EntityIdT>(value);
48 }
49 template <typename EntityIdT = Aws::String>
50 EntityConfiguration& WithEntityId(EntityIdT&& value) {
51 SetEntityId(std::forward<EntityIdT>(value));
52 return *this;
53 }
55
57
61 inline EntityType GetEntityType() const { return m_entityType; }
62 inline bool EntityTypeHasBeenSet() const { return m_entityTypeHasBeenSet; }
63 inline void SetEntityType(EntityType value) {
64 m_entityTypeHasBeenSet = true;
65 m_entityType = value;
66 }
68 SetEntityType(value);
69 return *this;
70 }
72 private:
73 Aws::String m_entityId;
74
75 EntityType m_entityType{EntityType::NOT_SET};
76 bool m_entityIdHasBeenSet = false;
77 bool m_entityTypeHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace kendra
82} // namespace Aws
AWS_KENDRA_API EntityConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KENDRA_API EntityConfiguration()=default
AWS_KENDRA_API EntityConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
EntityConfiguration & WithEntityType(EntityType value)
EntityConfiguration & WithEntityId(EntityIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue