294 lines
12 KiB
C++
294 lines
12 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/cloudsearchdomain/CloudSearchDomain_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/memory/stl/AWSMap.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace CloudSearchDomain
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Information about a document that matches the search request.</p><p><h3>See
|
|
* Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/cloudsearchdomain-2013-01-01/Hit">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_CLOUDSEARCHDOMAIN_API Hit
|
|
{
|
|
public:
|
|
Hit();
|
|
Hit(Aws::Utils::Json::JsonView jsonValue);
|
|
Hit& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The document ID of a document that matches the search request.</p>
|
|
*/
|
|
inline const Aws::String& GetId() const{ return m_id; }
|
|
|
|
/**
|
|
* <p>The document ID of a document that matches the search request.</p>
|
|
*/
|
|
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The document ID of a document that matches the search request.</p>
|
|
*/
|
|
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
|
|
|
|
/**
|
|
* <p>The document ID of a document that matches the search request.</p>
|
|
*/
|
|
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
|
|
|
|
/**
|
|
* <p>The document ID of a document that matches the search request.</p>
|
|
*/
|
|
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
|
|
|
|
/**
|
|
* <p>The document ID of a document that matches the search request.</p>
|
|
*/
|
|
inline Hit& WithId(const Aws::String& value) { SetId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The document ID of a document that matches the search request.</p>
|
|
*/
|
|
inline Hit& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The document ID of a document that matches the search request.</p>
|
|
*/
|
|
inline Hit& WithId(const char* value) { SetId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The fields returned from a document that matches the search request.</p>
|
|
*/
|
|
inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetFields() const{ return m_fields; }
|
|
|
|
/**
|
|
* <p>The fields returned from a document that matches the search request.</p>
|
|
*/
|
|
inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The fields returned from a document that matches the search request.</p>
|
|
*/
|
|
inline void SetFields(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_fieldsHasBeenSet = true; m_fields = value; }
|
|
|
|
/**
|
|
* <p>The fields returned from a document that matches the search request.</p>
|
|
*/
|
|
inline void SetFields(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); }
|
|
|
|
/**
|
|
* <p>The fields returned from a document that matches the search request.</p>
|
|
*/
|
|
inline Hit& WithFields(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { SetFields(value); return *this;}
|
|
|
|
/**
|
|
* <p>The fields returned from a document that matches the search request.</p>
|
|
*/
|
|
inline Hit& WithFields(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetFields(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The fields returned from a document that matches the search request.</p>
|
|
*/
|
|
inline Hit& AddFields(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_fieldsHasBeenSet = true; m_fields.emplace(key, value); return *this; }
|
|
|
|
/**
|
|
* <p>The fields returned from a document that matches the search request.</p>
|
|
*/
|
|
inline Hit& AddFields(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_fieldsHasBeenSet = true; m_fields.emplace(std::move(key), value); return *this; }
|
|
|
|
/**
|
|
* <p>The fields returned from a document that matches the search request.</p>
|
|
*/
|
|
inline Hit& AddFields(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_fieldsHasBeenSet = true; m_fields.emplace(key, std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>The fields returned from a document that matches the search request.</p>
|
|
*/
|
|
inline Hit& AddFields(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_fieldsHasBeenSet = true; m_fields.emplace(std::move(key), std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>The fields returned from a document that matches the search request.</p>
|
|
*/
|
|
inline Hit& AddFields(const char* key, Aws::Vector<Aws::String>&& value) { m_fieldsHasBeenSet = true; m_fields.emplace(key, std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>The fields returned from a document that matches the search request.</p>
|
|
*/
|
|
inline Hit& AddFields(const char* key, const Aws::Vector<Aws::String>& value) { m_fieldsHasBeenSet = true; m_fields.emplace(key, value); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>The expressions returned from a document that matches the search request.</p>
|
|
*/
|
|
inline const Aws::Map<Aws::String, Aws::String>& GetExprs() const{ return m_exprs; }
|
|
|
|
/**
|
|
* <p>The expressions returned from a document that matches the search request.</p>
|
|
*/
|
|
inline bool ExprsHasBeenSet() const { return m_exprsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The expressions returned from a document that matches the search request.</p>
|
|
*/
|
|
inline void SetExprs(const Aws::Map<Aws::String, Aws::String>& value) { m_exprsHasBeenSet = true; m_exprs = value; }
|
|
|
|
/**
|
|
* <p>The expressions returned from a document that matches the search request.</p>
|
|
*/
|
|
inline void SetExprs(Aws::Map<Aws::String, Aws::String>&& value) { m_exprsHasBeenSet = true; m_exprs = std::move(value); }
|
|
|
|
/**
|
|
* <p>The expressions returned from a document that matches the search request.</p>
|
|
*/
|
|
inline Hit& WithExprs(const Aws::Map<Aws::String, Aws::String>& value) { SetExprs(value); return *this;}
|
|
|
|
/**
|
|
* <p>The expressions returned from a document that matches the search request.</p>
|
|
*/
|
|
inline Hit& WithExprs(Aws::Map<Aws::String, Aws::String>&& value) { SetExprs(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The expressions returned from a document that matches the search request.</p>
|
|
*/
|
|
inline Hit& AddExprs(const Aws::String& key, const Aws::String& value) { m_exprsHasBeenSet = true; m_exprs.emplace(key, value); return *this; }
|
|
|
|
/**
|
|
* <p>The expressions returned from a document that matches the search request.</p>
|
|
*/
|
|
inline Hit& AddExprs(Aws::String&& key, const Aws::String& value) { m_exprsHasBeenSet = true; m_exprs.emplace(std::move(key), value); return *this; }
|
|
|
|
/**
|
|
* <p>The expressions returned from a document that matches the search request.</p>
|
|
*/
|
|
inline Hit& AddExprs(const Aws::String& key, Aws::String&& value) { m_exprsHasBeenSet = true; m_exprs.emplace(key, std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>The expressions returned from a document that matches the search request.</p>
|
|
*/
|
|
inline Hit& AddExprs(Aws::String&& key, Aws::String&& value) { m_exprsHasBeenSet = true; m_exprs.emplace(std::move(key), std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>The expressions returned from a document that matches the search request.</p>
|
|
*/
|
|
inline Hit& AddExprs(const char* key, Aws::String&& value) { m_exprsHasBeenSet = true; m_exprs.emplace(key, std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>The expressions returned from a document that matches the search request.</p>
|
|
*/
|
|
inline Hit& AddExprs(Aws::String&& key, const char* value) { m_exprsHasBeenSet = true; m_exprs.emplace(std::move(key), value); return *this; }
|
|
|
|
/**
|
|
* <p>The expressions returned from a document that matches the search request.</p>
|
|
*/
|
|
inline Hit& AddExprs(const char* key, const char* value) { m_exprsHasBeenSet = true; m_exprs.emplace(key, value); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>The highlights returned from a document that matches the search request.</p>
|
|
*/
|
|
inline const Aws::Map<Aws::String, Aws::String>& GetHighlights() const{ return m_highlights; }
|
|
|
|
/**
|
|
* <p>The highlights returned from a document that matches the search request.</p>
|
|
*/
|
|
inline bool HighlightsHasBeenSet() const { return m_highlightsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The highlights returned from a document that matches the search request.</p>
|
|
*/
|
|
inline void SetHighlights(const Aws::Map<Aws::String, Aws::String>& value) { m_highlightsHasBeenSet = true; m_highlights = value; }
|
|
|
|
/**
|
|
* <p>The highlights returned from a document that matches the search request.</p>
|
|
*/
|
|
inline void SetHighlights(Aws::Map<Aws::String, Aws::String>&& value) { m_highlightsHasBeenSet = true; m_highlights = std::move(value); }
|
|
|
|
/**
|
|
* <p>The highlights returned from a document that matches the search request.</p>
|
|
*/
|
|
inline Hit& WithHighlights(const Aws::Map<Aws::String, Aws::String>& value) { SetHighlights(value); return *this;}
|
|
|
|
/**
|
|
* <p>The highlights returned from a document that matches the search request.</p>
|
|
*/
|
|
inline Hit& WithHighlights(Aws::Map<Aws::String, Aws::String>&& value) { SetHighlights(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The highlights returned from a document that matches the search request.</p>
|
|
*/
|
|
inline Hit& AddHighlights(const Aws::String& key, const Aws::String& value) { m_highlightsHasBeenSet = true; m_highlights.emplace(key, value); return *this; }
|
|
|
|
/**
|
|
* <p>The highlights returned from a document that matches the search request.</p>
|
|
*/
|
|
inline Hit& AddHighlights(Aws::String&& key, const Aws::String& value) { m_highlightsHasBeenSet = true; m_highlights.emplace(std::move(key), value); return *this; }
|
|
|
|
/**
|
|
* <p>The highlights returned from a document that matches the search request.</p>
|
|
*/
|
|
inline Hit& AddHighlights(const Aws::String& key, Aws::String&& value) { m_highlightsHasBeenSet = true; m_highlights.emplace(key, std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>The highlights returned from a document that matches the search request.</p>
|
|
*/
|
|
inline Hit& AddHighlights(Aws::String&& key, Aws::String&& value) { m_highlightsHasBeenSet = true; m_highlights.emplace(std::move(key), std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>The highlights returned from a document that matches the search request.</p>
|
|
*/
|
|
inline Hit& AddHighlights(const char* key, Aws::String&& value) { m_highlightsHasBeenSet = true; m_highlights.emplace(key, std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>The highlights returned from a document that matches the search request.</p>
|
|
*/
|
|
inline Hit& AddHighlights(Aws::String&& key, const char* value) { m_highlightsHasBeenSet = true; m_highlights.emplace(std::move(key), value); return *this; }
|
|
|
|
/**
|
|
* <p>The highlights returned from a document that matches the search request.</p>
|
|
*/
|
|
inline Hit& AddHighlights(const char* key, const char* value) { m_highlightsHasBeenSet = true; m_highlights.emplace(key, value); return *this; }
|
|
|
|
private:
|
|
|
|
Aws::String m_id;
|
|
bool m_idHasBeenSet;
|
|
|
|
Aws::Map<Aws::String, Aws::Vector<Aws::String>> m_fields;
|
|
bool m_fieldsHasBeenSet;
|
|
|
|
Aws::Map<Aws::String, Aws::String> m_exprs;
|
|
bool m_exprsHasBeenSet;
|
|
|
|
Aws::Map<Aws::String, Aws::String> m_highlights;
|
|
bool m_highlightsHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace CloudSearchDomain
|
|
} // namespace Aws
|