/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Pinpoint { namespace Model { /** *

Specifies a batch of endpoints to create or update and the settings and * attributes to set or change for each endpoint.

See Also:

AWS * API Reference

*/ class EndpointBatchRequest { public: AWS_PINPOINT_API EndpointBatchRequest(); AWS_PINPOINT_API EndpointBatchRequest(Aws::Utils::Json::JsonView jsonValue); AWS_PINPOINT_API EndpointBatchRequest& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

An array that defines the endpoints to create or update and, for each * endpoint, the property values to set or change. An array can contain a maximum * of 100 items.

*/ inline const Aws::Vector& GetItem() const{ return m_item; } /** *

An array that defines the endpoints to create or update and, for each * endpoint, the property values to set or change. An array can contain a maximum * of 100 items.

*/ inline bool ItemHasBeenSet() const { return m_itemHasBeenSet; } /** *

An array that defines the endpoints to create or update and, for each * endpoint, the property values to set or change. An array can contain a maximum * of 100 items.

*/ inline void SetItem(const Aws::Vector& value) { m_itemHasBeenSet = true; m_item = value; } /** *

An array that defines the endpoints to create or update and, for each * endpoint, the property values to set or change. An array can contain a maximum * of 100 items.

*/ inline void SetItem(Aws::Vector&& value) { m_itemHasBeenSet = true; m_item = std::move(value); } /** *

An array that defines the endpoints to create or update and, for each * endpoint, the property values to set or change. An array can contain a maximum * of 100 items.

*/ inline EndpointBatchRequest& WithItem(const Aws::Vector& value) { SetItem(value); return *this;} /** *

An array that defines the endpoints to create or update and, for each * endpoint, the property values to set or change. An array can contain a maximum * of 100 items.

*/ inline EndpointBatchRequest& WithItem(Aws::Vector&& value) { SetItem(std::move(value)); return *this;} /** *

An array that defines the endpoints to create or update and, for each * endpoint, the property values to set or change. An array can contain a maximum * of 100 items.

*/ inline EndpointBatchRequest& AddItem(const EndpointBatchItem& value) { m_itemHasBeenSet = true; m_item.push_back(value); return *this; } /** *

An array that defines the endpoints to create or update and, for each * endpoint, the property values to set or change. An array can contain a maximum * of 100 items.

*/ inline EndpointBatchRequest& AddItem(EndpointBatchItem&& value) { m_itemHasBeenSet = true; m_item.push_back(std::move(value)); return *this; } private: Aws::Vector m_item; bool m_itemHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws