/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace MemoryDB { namespace Model { /** */ class BatchUpdateClusterRequest : public MemoryDBRequest { public: AWS_MEMORYDB_API BatchUpdateClusterRequest(); // 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 "BatchUpdateCluster"; } AWS_MEMORYDB_API Aws::String SerializePayload() const override; AWS_MEMORYDB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The cluster names to apply the updates.

*/ inline const Aws::Vector& GetClusterNames() const{ return m_clusterNames; } /** *

The cluster names to apply the updates.

*/ inline bool ClusterNamesHasBeenSet() const { return m_clusterNamesHasBeenSet; } /** *

The cluster names to apply the updates.

*/ inline void SetClusterNames(const Aws::Vector& value) { m_clusterNamesHasBeenSet = true; m_clusterNames = value; } /** *

The cluster names to apply the updates.

*/ inline void SetClusterNames(Aws::Vector&& value) { m_clusterNamesHasBeenSet = true; m_clusterNames = std::move(value); } /** *

The cluster names to apply the updates.

*/ inline BatchUpdateClusterRequest& WithClusterNames(const Aws::Vector& value) { SetClusterNames(value); return *this;} /** *

The cluster names to apply the updates.

*/ inline BatchUpdateClusterRequest& WithClusterNames(Aws::Vector&& value) { SetClusterNames(std::move(value)); return *this;} /** *

The cluster names to apply the updates.

*/ inline BatchUpdateClusterRequest& AddClusterNames(const Aws::String& value) { m_clusterNamesHasBeenSet = true; m_clusterNames.push_back(value); return *this; } /** *

The cluster names to apply the updates.

*/ inline BatchUpdateClusterRequest& AddClusterNames(Aws::String&& value) { m_clusterNamesHasBeenSet = true; m_clusterNames.push_back(std::move(value)); return *this; } /** *

The cluster names to apply the updates.

*/ inline BatchUpdateClusterRequest& AddClusterNames(const char* value) { m_clusterNamesHasBeenSet = true; m_clusterNames.push_back(value); return *this; } /** *

The unique ID of the service update

*/ inline const ServiceUpdateRequest& GetServiceUpdate() const{ return m_serviceUpdate; } /** *

The unique ID of the service update

*/ inline bool ServiceUpdateHasBeenSet() const { return m_serviceUpdateHasBeenSet; } /** *

The unique ID of the service update

*/ inline void SetServiceUpdate(const ServiceUpdateRequest& value) { m_serviceUpdateHasBeenSet = true; m_serviceUpdate = value; } /** *

The unique ID of the service update

*/ inline void SetServiceUpdate(ServiceUpdateRequest&& value) { m_serviceUpdateHasBeenSet = true; m_serviceUpdate = std::move(value); } /** *

The unique ID of the service update

*/ inline BatchUpdateClusterRequest& WithServiceUpdate(const ServiceUpdateRequest& value) { SetServiceUpdate(value); return *this;} /** *

The unique ID of the service update

*/ inline BatchUpdateClusterRequest& WithServiceUpdate(ServiceUpdateRequest&& value) { SetServiceUpdate(std::move(value)); return *this;} private: Aws::Vector m_clusterNames; bool m_clusterNamesHasBeenSet = false; ServiceUpdateRequest m_serviceUpdate; bool m_serviceUpdateHasBeenSet = false; }; } // namespace Model } // namespace MemoryDB } // namespace Aws