/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Error information for an OpenSearch Serverless request.See
* Also:
AWS
* API Reference
The error code for the request. For example, NOT_FOUND
.
The error code for the request. For example, NOT_FOUND
.
The error code for the request. For example, NOT_FOUND
.
The error code for the request. For example, NOT_FOUND
.
The error code for the request. For example, NOT_FOUND
.
The error code for the request. For example, NOT_FOUND
.
The error code for the request. For example, NOT_FOUND
.
The error code for the request. For example, NOT_FOUND
.
A description of the error. For example, The specified Collection is
* not found.
A description of the error. For example, The specified Collection is
* not found.
A description of the error. For example, The specified Collection is
* not found.
A description of the error. For example, The specified Collection is
* not found.
A description of the error. For example, The specified Collection is
* not found.
A description of the error. For example, The specified Collection is
* not found.
A description of the error. For example, The specified Collection is
* not found.
A description of the error. For example, The specified Collection is
* not found.
If the request contains collection IDs, the response includes the IDs * provided in the request.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *If the request contains collection IDs, the response includes the IDs * provided in the request.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *If the request contains collection IDs, the response includes the IDs * provided in the request.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *If the request contains collection IDs, the response includes the IDs * provided in the request.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *If the request contains collection IDs, the response includes the IDs * provided in the request.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *If the request contains collection IDs, the response includes the IDs * provided in the request.
*/ inline CollectionErrorDetail& WithId(const Aws::String& value) { SetId(value); return *this;} /** *If the request contains collection IDs, the response includes the IDs * provided in the request.
*/ inline CollectionErrorDetail& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *If the request contains collection IDs, the response includes the IDs * provided in the request.
*/ inline CollectionErrorDetail& WithId(const char* value) { SetId(value); return *this;} /** *If the request contains collection names, the response includes the names * provided in the request.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *If the request contains collection names, the response includes the names * provided in the request.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *If the request contains collection names, the response includes the names * provided in the request.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *If the request contains collection names, the response includes the names * provided in the request.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *If the request contains collection names, the response includes the names * provided in the request.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *If the request contains collection names, the response includes the names * provided in the request.
*/ inline CollectionErrorDetail& WithName(const Aws::String& value) { SetName(value); return *this;} /** *If the request contains collection names, the response includes the names * provided in the request.
*/ inline CollectionErrorDetail& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *If the request contains collection names, the response includes the names * provided in the request.
*/ inline CollectionErrorDetail& WithName(const char* value) { SetName(value); return *this;} private: Aws::String m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchServerless } // namespace Aws