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

Option for host instance type.

See Also:

AWS * API Reference

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

The list of available az.

*/ inline const Aws::Vector& GetAvailabilityZones() const{ return m_availabilityZones; } /** *

The list of available az.

*/ inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; } /** *

The list of available az.

*/ inline void SetAvailabilityZones(const Aws::Vector& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; } /** *

The list of available az.

*/ inline void SetAvailabilityZones(Aws::Vector&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); } /** *

The list of available az.

*/ inline BrokerInstanceOption& WithAvailabilityZones(const Aws::Vector& value) { SetAvailabilityZones(value); return *this;} /** *

The list of available az.

*/ inline BrokerInstanceOption& WithAvailabilityZones(Aws::Vector&& value) { SetAvailabilityZones(std::move(value)); return *this;} /** *

The list of available az.

*/ inline BrokerInstanceOption& AddAvailabilityZones(const AvailabilityZone& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; } /** *

The list of available az.

*/ inline BrokerInstanceOption& AddAvailabilityZones(AvailabilityZone&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; } /** *

The broker's engine type.

*/ inline const EngineType& GetEngineType() const{ return m_engineType; } /** *

The broker's engine type.

*/ inline bool EngineTypeHasBeenSet() const { return m_engineTypeHasBeenSet; } /** *

The broker's engine type.

*/ inline void SetEngineType(const EngineType& value) { m_engineTypeHasBeenSet = true; m_engineType = value; } /** *

The broker's engine type.

*/ inline void SetEngineType(EngineType&& value) { m_engineTypeHasBeenSet = true; m_engineType = std::move(value); } /** *

The broker's engine type.

*/ inline BrokerInstanceOption& WithEngineType(const EngineType& value) { SetEngineType(value); return *this;} /** *

The broker's engine type.

*/ inline BrokerInstanceOption& WithEngineType(EngineType&& value) { SetEngineType(std::move(value)); return *this;} /** *

The broker's instance type.

*/ inline const Aws::String& GetHostInstanceType() const{ return m_hostInstanceType; } /** *

The broker's instance type.

*/ inline bool HostInstanceTypeHasBeenSet() const { return m_hostInstanceTypeHasBeenSet; } /** *

The broker's instance type.

*/ inline void SetHostInstanceType(const Aws::String& value) { m_hostInstanceTypeHasBeenSet = true; m_hostInstanceType = value; } /** *

The broker's instance type.

*/ inline void SetHostInstanceType(Aws::String&& value) { m_hostInstanceTypeHasBeenSet = true; m_hostInstanceType = std::move(value); } /** *

The broker's instance type.

*/ inline void SetHostInstanceType(const char* value) { m_hostInstanceTypeHasBeenSet = true; m_hostInstanceType.assign(value); } /** *

The broker's instance type.

*/ inline BrokerInstanceOption& WithHostInstanceType(const Aws::String& value) { SetHostInstanceType(value); return *this;} /** *

The broker's instance type.

*/ inline BrokerInstanceOption& WithHostInstanceType(Aws::String&& value) { SetHostInstanceType(std::move(value)); return *this;} /** *

The broker's instance type.

*/ inline BrokerInstanceOption& WithHostInstanceType(const char* value) { SetHostInstanceType(value); return *this;} /** *

The broker's storage type.

*/ inline const BrokerStorageType& GetStorageType() const{ return m_storageType; } /** *

The broker's storage type.

*/ inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; } /** *

The broker's storage type.

*/ inline void SetStorageType(const BrokerStorageType& value) { m_storageTypeHasBeenSet = true; m_storageType = value; } /** *

The broker's storage type.

*/ inline void SetStorageType(BrokerStorageType&& value) { m_storageTypeHasBeenSet = true; m_storageType = std::move(value); } /** *

The broker's storage type.

*/ inline BrokerInstanceOption& WithStorageType(const BrokerStorageType& value) { SetStorageType(value); return *this;} /** *

The broker's storage type.

*/ inline BrokerInstanceOption& WithStorageType(BrokerStorageType&& value) { SetStorageType(std::move(value)); return *this;} /** *

The list of supported deployment modes.

*/ inline const Aws::Vector& GetSupportedDeploymentModes() const{ return m_supportedDeploymentModes; } /** *

The list of supported deployment modes.

*/ inline bool SupportedDeploymentModesHasBeenSet() const { return m_supportedDeploymentModesHasBeenSet; } /** *

The list of supported deployment modes.

*/ inline void SetSupportedDeploymentModes(const Aws::Vector& value) { m_supportedDeploymentModesHasBeenSet = true; m_supportedDeploymentModes = value; } /** *

The list of supported deployment modes.

*/ inline void SetSupportedDeploymentModes(Aws::Vector&& value) { m_supportedDeploymentModesHasBeenSet = true; m_supportedDeploymentModes = std::move(value); } /** *

The list of supported deployment modes.

*/ inline BrokerInstanceOption& WithSupportedDeploymentModes(const Aws::Vector& value) { SetSupportedDeploymentModes(value); return *this;} /** *

The list of supported deployment modes.

*/ inline BrokerInstanceOption& WithSupportedDeploymentModes(Aws::Vector&& value) { SetSupportedDeploymentModes(std::move(value)); return *this;} /** *

The list of supported deployment modes.

*/ inline BrokerInstanceOption& AddSupportedDeploymentModes(const DeploymentMode& value) { m_supportedDeploymentModesHasBeenSet = true; m_supportedDeploymentModes.push_back(value); return *this; } /** *

The list of supported deployment modes.

*/ inline BrokerInstanceOption& AddSupportedDeploymentModes(DeploymentMode&& value) { m_supportedDeploymentModesHasBeenSet = true; m_supportedDeploymentModes.push_back(std::move(value)); return *this; } /** *

The list of supported engine versions.

*/ inline const Aws::Vector& GetSupportedEngineVersions() const{ return m_supportedEngineVersions; } /** *

The list of supported engine versions.

*/ inline bool SupportedEngineVersionsHasBeenSet() const { return m_supportedEngineVersionsHasBeenSet; } /** *

The list of supported engine versions.

*/ inline void SetSupportedEngineVersions(const Aws::Vector& value) { m_supportedEngineVersionsHasBeenSet = true; m_supportedEngineVersions = value; } /** *

The list of supported engine versions.

*/ inline void SetSupportedEngineVersions(Aws::Vector&& value) { m_supportedEngineVersionsHasBeenSet = true; m_supportedEngineVersions = std::move(value); } /** *

The list of supported engine versions.

*/ inline BrokerInstanceOption& WithSupportedEngineVersions(const Aws::Vector& value) { SetSupportedEngineVersions(value); return *this;} /** *

The list of supported engine versions.

*/ inline BrokerInstanceOption& WithSupportedEngineVersions(Aws::Vector&& value) { SetSupportedEngineVersions(std::move(value)); return *this;} /** *

The list of supported engine versions.

*/ inline BrokerInstanceOption& AddSupportedEngineVersions(const Aws::String& value) { m_supportedEngineVersionsHasBeenSet = true; m_supportedEngineVersions.push_back(value); return *this; } /** *

The list of supported engine versions.

*/ inline BrokerInstanceOption& AddSupportedEngineVersions(Aws::String&& value) { m_supportedEngineVersionsHasBeenSet = true; m_supportedEngineVersions.push_back(std::move(value)); return *this; } /** *

The list of supported engine versions.

*/ inline BrokerInstanceOption& AddSupportedEngineVersions(const char* value) { m_supportedEngineVersionsHasBeenSet = true; m_supportedEngineVersions.push_back(value); return *this; } private: Aws::Vector m_availabilityZones; bool m_availabilityZonesHasBeenSet = false; EngineType m_engineType; bool m_engineTypeHasBeenSet = false; Aws::String m_hostInstanceType; bool m_hostInstanceTypeHasBeenSet = false; BrokerStorageType m_storageType; bool m_storageTypeHasBeenSet = false; Aws::Vector m_supportedDeploymentModes; bool m_supportedDeploymentModesHasBeenSet = false; Aws::Vector m_supportedEngineVersions; bool m_supportedEngineVersionsHasBeenSet = false; }; } // namespace Model } // namespace MQ } // namespace Aws