/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace OpenSearchServerless { namespace Model { /** */ class BatchGetCollectionRequest : public OpenSearchServerlessRequest { public: AWS_OPENSEARCHSERVERLESS_API BatchGetCollectionRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "BatchGetCollection"; } AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override; AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A list of collection IDs. You can't provide names and IDs in the same * request. The ID is part of the collection endpoint. You can also retrieve it * using the ListCollections * API.

*/ inline const Aws::Vector& GetIds() const{ return m_ids; } /** *

A list of collection IDs. You can't provide names and IDs in the same * request. The ID is part of the collection endpoint. You can also retrieve it * using the ListCollections * API.

*/ inline bool IdsHasBeenSet() const { return m_idsHasBeenSet; } /** *

A list of collection IDs. You can't provide names and IDs in the same * request. The ID is part of the collection endpoint. You can also retrieve it * using the ListCollections * API.

*/ inline void SetIds(const Aws::Vector& value) { m_idsHasBeenSet = true; m_ids = value; } /** *

A list of collection IDs. You can't provide names and IDs in the same * request. The ID is part of the collection endpoint. You can also retrieve it * using the ListCollections * API.

*/ inline void SetIds(Aws::Vector&& value) { m_idsHasBeenSet = true; m_ids = std::move(value); } /** *

A list of collection IDs. You can't provide names and IDs in the same * request. The ID is part of the collection endpoint. You can also retrieve it * using the ListCollections * API.

*/ inline BatchGetCollectionRequest& WithIds(const Aws::Vector& value) { SetIds(value); return *this;} /** *

A list of collection IDs. You can't provide names and IDs in the same * request. The ID is part of the collection endpoint. You can also retrieve it * using the ListCollections * API.

*/ inline BatchGetCollectionRequest& WithIds(Aws::Vector&& value) { SetIds(std::move(value)); return *this;} /** *

A list of collection IDs. You can't provide names and IDs in the same * request. The ID is part of the collection endpoint. You can also retrieve it * using the ListCollections * API.

*/ inline BatchGetCollectionRequest& AddIds(const Aws::String& value) { m_idsHasBeenSet = true; m_ids.push_back(value); return *this; } /** *

A list of collection IDs. You can't provide names and IDs in the same * request. The ID is part of the collection endpoint. You can also retrieve it * using the ListCollections * API.

*/ inline BatchGetCollectionRequest& AddIds(Aws::String&& value) { m_idsHasBeenSet = true; m_ids.push_back(std::move(value)); return *this; } /** *

A list of collection IDs. You can't provide names and IDs in the same * request. The ID is part of the collection endpoint. You can also retrieve it * using the ListCollections * API.

*/ inline BatchGetCollectionRequest& AddIds(const char* value) { m_idsHasBeenSet = true; m_ids.push_back(value); return *this; } /** *

A list of collection names. You can't provide names and IDs in the same * request.

*/ inline const Aws::Vector& GetNames() const{ return m_names; } /** *

A list of collection names. You can't provide names and IDs in the same * request.

*/ inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; } /** *

A list of collection names. You can't provide names and IDs in the same * request.

*/ inline void SetNames(const Aws::Vector& value) { m_namesHasBeenSet = true; m_names = value; } /** *

A list of collection names. You can't provide names and IDs in the same * request.

*/ inline void SetNames(Aws::Vector&& value) { m_namesHasBeenSet = true; m_names = std::move(value); } /** *

A list of collection names. You can't provide names and IDs in the same * request.

*/ inline BatchGetCollectionRequest& WithNames(const Aws::Vector& value) { SetNames(value); return *this;} /** *

A list of collection names. You can't provide names and IDs in the same * request.

*/ inline BatchGetCollectionRequest& WithNames(Aws::Vector&& value) { SetNames(std::move(value)); return *this;} /** *

A list of collection names. You can't provide names and IDs in the same * request.

*/ inline BatchGetCollectionRequest& AddNames(const Aws::String& value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; } /** *

A list of collection names. You can't provide names and IDs in the same * request.

*/ inline BatchGetCollectionRequest& AddNames(Aws::String&& value) { m_namesHasBeenSet = true; m_names.push_back(std::move(value)); return *this; } /** *

A list of collection names. You can't provide names and IDs in the same * request.

*/ inline BatchGetCollectionRequest& AddNames(const char* value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; } private: Aws::Vector m_ids; bool m_idsHasBeenSet = false; Aws::Vector m_names; bool m_namesHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchServerless } // namespace Aws