/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Promotes a data replication replica broker to the primary broker
* role.See Also:
AWS
* API Reference
The unique ID that Amazon MQ generates for the broker.
*/ inline const Aws::String& GetBrokerId() const{ return m_brokerId; } /** *The unique ID that Amazon MQ generates for the broker.
*/ inline bool BrokerIdHasBeenSet() const { return m_brokerIdHasBeenSet; } /** *The unique ID that Amazon MQ generates for the broker.
*/ inline void SetBrokerId(const Aws::String& value) { m_brokerIdHasBeenSet = true; m_brokerId = value; } /** *The unique ID that Amazon MQ generates for the broker.
*/ inline void SetBrokerId(Aws::String&& value) { m_brokerIdHasBeenSet = true; m_brokerId = std::move(value); } /** *The unique ID that Amazon MQ generates for the broker.
*/ inline void SetBrokerId(const char* value) { m_brokerIdHasBeenSet = true; m_brokerId.assign(value); } /** *The unique ID that Amazon MQ generates for the broker.
*/ inline PromoteRequest& WithBrokerId(const Aws::String& value) { SetBrokerId(value); return *this;} /** *The unique ID that Amazon MQ generates for the broker.
*/ inline PromoteRequest& WithBrokerId(Aws::String&& value) { SetBrokerId(std::move(value)); return *this;} /** *The unique ID that Amazon MQ generates for the broker.
*/ inline PromoteRequest& WithBrokerId(const char* value) { SetBrokerId(value); return *this;} /** *The Promote mode requested. Note: Valid values for the parameter are * SWITCHOVER, FAILOVER.
*/ inline const PromoteMode& GetMode() const{ return m_mode; } /** *The Promote mode requested. Note: Valid values for the parameter are * SWITCHOVER, FAILOVER.
*/ inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; } /** *The Promote mode requested. Note: Valid values for the parameter are * SWITCHOVER, FAILOVER.
*/ inline void SetMode(const PromoteMode& value) { m_modeHasBeenSet = true; m_mode = value; } /** *The Promote mode requested. Note: Valid values for the parameter are * SWITCHOVER, FAILOVER.
*/ inline void SetMode(PromoteMode&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); } /** *The Promote mode requested. Note: Valid values for the parameter are * SWITCHOVER, FAILOVER.
*/ inline PromoteRequest& WithMode(const PromoteMode& value) { SetMode(value); return *this;} /** *The Promote mode requested. Note: Valid values for the parameter are * SWITCHOVER, FAILOVER.
*/ inline PromoteRequest& WithMode(PromoteMode&& value) { SetMode(std::move(value)); return *this;} private: Aws::String m_brokerId; bool m_brokerIdHasBeenSet = false; PromoteMode m_mode; bool m_modeHasBeenSet = false; }; } // namespace Model } // namespace MQ } // namespace Aws