/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.mq.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Option for host instance type. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class BrokerInstanceOption implements Serializable, Cloneable, StructuredPojo { /** ** The list of available az. *
*/ private java.util.List* The broker's engine type. *
*/ private String engineType; /** ** The broker's instance type. *
*/ private String hostInstanceType; /** ** The broker's storage type. *
*/ private String storageType; /** ** The list of supported deployment modes. *
*/ private java.util.List* The list of supported engine versions. *
*/ private java.util.List* The list of available az. *
* * @return The list of available az. */ public java.util.List* The list of available az. *
* * @param availabilityZones * The list of available az. */ public void setAvailabilityZones(java.util.Collection* The list of available az. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAvailabilityZones(java.util.Collection)} or {@link #withAvailabilityZones(java.util.Collection)} if * you want to override the existing values. *
* * @param availabilityZones * The list of available az. * @return Returns a reference to this object so that method calls can be chained together. */ public BrokerInstanceOption withAvailabilityZones(AvailabilityZone... availabilityZones) { if (this.availabilityZones == null) { setAvailabilityZones(new java.util.ArrayList* The list of available az. *
* * @param availabilityZones * The list of available az. * @return Returns a reference to this object so that method calls can be chained together. */ public BrokerInstanceOption withAvailabilityZones(java.util.Collection* The broker's engine type. *
* * @param engineType * The broker's engine type. * @see EngineType */ public void setEngineType(String engineType) { this.engineType = engineType; } /** ** The broker's engine type. *
* * @return The broker's engine type. * @see EngineType */ public String getEngineType() { return this.engineType; } /** ** The broker's engine type. *
* * @param engineType * The broker's engine type. * @return Returns a reference to this object so that method calls can be chained together. * @see EngineType */ public BrokerInstanceOption withEngineType(String engineType) { setEngineType(engineType); return this; } /** ** The broker's engine type. *
* * @param engineType * The broker's engine type. * @return Returns a reference to this object so that method calls can be chained together. * @see EngineType */ public BrokerInstanceOption withEngineType(EngineType engineType) { this.engineType = engineType.toString(); return this; } /** ** The broker's instance type. *
* * @param hostInstanceType * The broker's instance type. */ public void setHostInstanceType(String hostInstanceType) { this.hostInstanceType = hostInstanceType; } /** ** The broker's instance type. *
* * @return The broker's instance type. */ public String getHostInstanceType() { return this.hostInstanceType; } /** ** The broker's instance type. *
* * @param hostInstanceType * The broker's instance type. * @return Returns a reference to this object so that method calls can be chained together. */ public BrokerInstanceOption withHostInstanceType(String hostInstanceType) { setHostInstanceType(hostInstanceType); return this; } /** ** The broker's storage type. *
* * @param storageType * The broker's storage type. * @see BrokerStorageType */ public void setStorageType(String storageType) { this.storageType = storageType; } /** ** The broker's storage type. *
* * @return The broker's storage type. * @see BrokerStorageType */ public String getStorageType() { return this.storageType; } /** ** The broker's storage type. *
* * @param storageType * The broker's storage type. * @return Returns a reference to this object so that method calls can be chained together. * @see BrokerStorageType */ public BrokerInstanceOption withStorageType(String storageType) { setStorageType(storageType); return this; } /** ** The broker's storage type. *
* * @param storageType * The broker's storage type. * @return Returns a reference to this object so that method calls can be chained together. * @see BrokerStorageType */ public BrokerInstanceOption withStorageType(BrokerStorageType storageType) { this.storageType = storageType.toString(); return this; } /** ** The list of supported deployment modes. *
* * @return The list of supported deployment modes. * @see DeploymentMode */ public java.util.List* The list of supported deployment modes. *
* * @param supportedDeploymentModes * The list of supported deployment modes. * @see DeploymentMode */ public void setSupportedDeploymentModes(java.util.Collection* The list of supported deployment modes. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSupportedDeploymentModes(java.util.Collection)} or * {@link #withSupportedDeploymentModes(java.util.Collection)} if you want to override the existing values. *
* * @param supportedDeploymentModes * The list of supported deployment modes. * @return Returns a reference to this object so that method calls can be chained together. * @see DeploymentMode */ public BrokerInstanceOption withSupportedDeploymentModes(String... supportedDeploymentModes) { if (this.supportedDeploymentModes == null) { setSupportedDeploymentModes(new java.util.ArrayList* The list of supported deployment modes. *
* * @param supportedDeploymentModes * The list of supported deployment modes. * @return Returns a reference to this object so that method calls can be chained together. * @see DeploymentMode */ public BrokerInstanceOption withSupportedDeploymentModes(java.util.Collection* The list of supported deployment modes. *
* * @param supportedDeploymentModes * The list of supported deployment modes. * @return Returns a reference to this object so that method calls can be chained together. * @see DeploymentMode */ public BrokerInstanceOption withSupportedDeploymentModes(DeploymentMode... supportedDeploymentModes) { java.util.ArrayList* The list of supported engine versions. *
* * @return The list of supported engine versions. */ public java.util.List* The list of supported engine versions. *
* * @param supportedEngineVersions * The list of supported engine versions. */ public void setSupportedEngineVersions(java.util.Collection* The list of supported engine versions. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSupportedEngineVersions(java.util.Collection)} or * {@link #withSupportedEngineVersions(java.util.Collection)} if you want to override the existing values. *
* * @param supportedEngineVersions * The list of supported engine versions. * @return Returns a reference to this object so that method calls can be chained together. */ public BrokerInstanceOption withSupportedEngineVersions(String... supportedEngineVersions) { if (this.supportedEngineVersions == null) { setSupportedEngineVersions(new java.util.ArrayList* The list of supported engine versions. *
* * @param supportedEngineVersions * The list of supported engine versions. * @return Returns a reference to this object so that method calls can be chained together. */ public BrokerInstanceOption withSupportedEngineVersions(java.util.Collection