AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
FeaturedResultsConflictException.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/kendra/model/ConflictingItem.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace kendra
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_KENDRA_API FeaturedResultsConflictException() = default;
42 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetMessage() const { return m_message; }
50 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
51 template<typename MessageT = Aws::String>
52 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
53 template<typename MessageT = Aws::String>
54 FeaturedResultsConflictException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
56
58
62 inline const Aws::Vector<ConflictingItem>& GetConflictingItems() const { return m_conflictingItems; }
63 inline bool ConflictingItemsHasBeenSet() const { return m_conflictingItemsHasBeenSet; }
64 template<typename ConflictingItemsT = Aws::Vector<ConflictingItem>>
65 void SetConflictingItems(ConflictingItemsT&& value) { m_conflictingItemsHasBeenSet = true; m_conflictingItems = std::forward<ConflictingItemsT>(value); }
66 template<typename ConflictingItemsT = Aws::Vector<ConflictingItem>>
67 FeaturedResultsConflictException& WithConflictingItems(ConflictingItemsT&& value) { SetConflictingItems(std::forward<ConflictingItemsT>(value)); return *this;}
68 template<typename ConflictingItemsT = ConflictingItem>
69 FeaturedResultsConflictException& AddConflictingItems(ConflictingItemsT&& value) { m_conflictingItemsHasBeenSet = true; m_conflictingItems.emplace_back(std::forward<ConflictingItemsT>(value)); return *this; }
71 private:
72
73 Aws::String m_message;
74 bool m_messageHasBeenSet = false;
75
76 Aws::Vector<ConflictingItem> m_conflictingItems;
77 bool m_conflictingItemsHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace kendra
82} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue