AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RescoreResult.h
1
6#pragma once
7#include <aws/kendra-ranking/KendraRanking_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/kendra-ranking/model/RescoreResultItem.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace KendraRanking
26{
27namespace Model
28{
30 {
31 public:
32 AWS_KENDRARANKING_API RescoreResult();
35
36
38
43 inline const Aws::String& GetRescoreId() const{ return m_rescoreId; }
44 inline void SetRescoreId(const Aws::String& value) { m_rescoreId = value; }
45 inline void SetRescoreId(Aws::String&& value) { m_rescoreId = std::move(value); }
46 inline void SetRescoreId(const char* value) { m_rescoreId.assign(value); }
47 inline RescoreResult& WithRescoreId(const Aws::String& value) { SetRescoreId(value); return *this;}
48 inline RescoreResult& WithRescoreId(Aws::String&& value) { SetRescoreId(std::move(value)); return *this;}
49 inline RescoreResult& WithRescoreId(const char* value) { SetRescoreId(value); return *this;}
51
53
57 inline const Aws::Vector<RescoreResultItem>& GetResultItems() const{ return m_resultItems; }
58 inline void SetResultItems(const Aws::Vector<RescoreResultItem>& value) { m_resultItems = value; }
59 inline void SetResultItems(Aws::Vector<RescoreResultItem>&& value) { m_resultItems = std::move(value); }
60 inline RescoreResult& WithResultItems(const Aws::Vector<RescoreResultItem>& value) { SetResultItems(value); return *this;}
61 inline RescoreResult& WithResultItems(Aws::Vector<RescoreResultItem>&& value) { SetResultItems(std::move(value)); return *this;}
62 inline RescoreResult& AddResultItems(const RescoreResultItem& value) { m_resultItems.push_back(value); return *this; }
63 inline RescoreResult& AddResultItems(RescoreResultItem&& value) { m_resultItems.push_back(std::move(value)); return *this; }
65
67
68 inline const Aws::String& GetRequestId() const{ return m_requestId; }
69 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
70 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
71 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
72 inline RescoreResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
73 inline RescoreResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
74 inline RescoreResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
76 private:
77
78 Aws::String m_rescoreId;
79
81
82 Aws::String m_requestId;
83 };
84
85} // namespace Model
86} // namespace KendraRanking
87} // namespace Aws
RescoreResult & AddResultItems(RescoreResultItem &&value)
RescoreResult & WithRescoreId(const Aws::String &value)
void SetRequestId(const Aws::String &value)
RescoreResult & AddResultItems(const RescoreResultItem &value)
const Aws::String & GetRequestId() const
RescoreResult & WithResultItems(const Aws::Vector< RescoreResultItem > &value)
AWS_KENDRARANKING_API RescoreResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetRescoreId() const
void SetRescoreId(Aws::String &&value)
RescoreResult & WithRequestId(const char *value)
RescoreResult & WithRescoreId(Aws::String &&value)
AWS_KENDRARANKING_API RescoreResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
RescoreResult & WithRequestId(const Aws::String &value)
RescoreResult & WithRescoreId(const char *value)
void SetRequestId(Aws::String &&value)
void SetResultItems(const Aws::Vector< RescoreResultItem > &value)
RescoreResult & WithResultItems(Aws::Vector< RescoreResultItem > &&value)
void SetResultItems(Aws::Vector< RescoreResultItem > &&value)
AWS_KENDRARANKING_API RescoreResult()
RescoreResult & WithRequestId(Aws::String &&value)
const Aws::Vector< RescoreResultItem > & GetResultItems() const
void SetRescoreId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue