com.amazonaws.services.mq.model.UpdateBrokerResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-mq Show documentation
/*
* Copyright 2019-2024 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;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class UpdateBrokerResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* Optional. The authentication strategy used to secure the broker. The default is SIMPLE.
*
*/
private String authenticationStrategy;
/**
*
* Enables automatic upgrades to new patch versions for brokers as new versions are released and supported by Amazon
* MQ. Automatic upgrades occur during the scheduled maintenance window or after a manual broker reboot.
*
*/
private Boolean autoMinorVersionUpgrade;
/**
*
* Required. The unique ID that Amazon MQ generates for the broker.
*
*/
private String brokerId;
/**
*
* The ID of the updated configuration.
*
*/
private ConfigurationId configuration;
/**
*
* The broker engine version to upgrade to. For more information, see the ActiveMQ
* version management and the RabbitMQ
* version management sections in the Amazon MQ Developer Guide.
*
*/
private String engineVersion;
/**
*
* The broker's host instance type to upgrade to. For a list of supported instance types, see Broker
* instance types.
*
*/
private String hostInstanceType;
/**
*
* Optional. The metadata of the LDAP server used to authenticate and authorize connections to the broker. Does not
* apply to RabbitMQ brokers.
*
*/
private LdapServerMetadataOutput ldapServerMetadata;
/**
*
* The list of information about logs to be enabled for the specified broker.
*
*/
private Logs logs;
/**
*
* The parameters that determine the WeeklyStartTime.
*
*/
private WeeklyStartTime maintenanceWindowStartTime;
/**
*
* The list of security groups (1 minimum, 5 maximum) that authorizes connections to brokers.
*
*/
private java.util.List securityGroups;
/**
*
* The replication details of the data replication-enabled broker. Only returned if dataReplicationMode is set to
* CRDR.
*
*/
private DataReplicationMetadataOutput dataReplicationMetadata;
/**
*
* Describes whether this broker is a part of a data replication pair.
*
*/
private String dataReplicationMode;
/**
*
* The pending replication details of the data replication-enabled broker. Only returned if
* pendingDataReplicationMode is set to CRDR.
*
*/
private DataReplicationMetadataOutput pendingDataReplicationMetadata;
/**
*
* Describes whether this broker will be a part of a data replication pair after reboot.
*
*/
private String pendingDataReplicationMode;
/**
*
* Optional. The authentication strategy used to secure the broker. The default is SIMPLE.
*
*
* @param authenticationStrategy
* Optional. The authentication strategy used to secure the broker. The default is SIMPLE.
* @see AuthenticationStrategy
*/
public void setAuthenticationStrategy(String authenticationStrategy) {
this.authenticationStrategy = authenticationStrategy;
}
/**
*
* Optional. The authentication strategy used to secure the broker. The default is SIMPLE.
*
*
* @return Optional. The authentication strategy used to secure the broker. The default is SIMPLE.
* @see AuthenticationStrategy
*/
public String getAuthenticationStrategy() {
return this.authenticationStrategy;
}
/**
*
* Optional. The authentication strategy used to secure the broker. The default is SIMPLE.
*
*
* @param authenticationStrategy
* Optional. The authentication strategy used to secure the broker. The default is SIMPLE.
* @return Returns a reference to this object so that method calls can be chained together.
* @see AuthenticationStrategy
*/
public UpdateBrokerResult withAuthenticationStrategy(String authenticationStrategy) {
setAuthenticationStrategy(authenticationStrategy);
return this;
}
/**
*
* Optional. The authentication strategy used to secure the broker. The default is SIMPLE.
*
*
* @param authenticationStrategy
* Optional. The authentication strategy used to secure the broker. The default is SIMPLE.
* @return Returns a reference to this object so that method calls can be chained together.
* @see AuthenticationStrategy
*/
public UpdateBrokerResult withAuthenticationStrategy(AuthenticationStrategy authenticationStrategy) {
this.authenticationStrategy = authenticationStrategy.toString();
return this;
}
/**
*
* Enables automatic upgrades to new patch versions for brokers as new versions are released and supported by Amazon
* MQ. Automatic upgrades occur during the scheduled maintenance window or after a manual broker reboot.
*
*
* @param autoMinorVersionUpgrade
* Enables automatic upgrades to new patch versions for brokers as new versions are released and supported by
* Amazon MQ. Automatic upgrades occur during the scheduled maintenance window or after a manual broker
* reboot.
*/
public void setAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) {
this.autoMinorVersionUpgrade = autoMinorVersionUpgrade;
}
/**
*
* Enables automatic upgrades to new patch versions for brokers as new versions are released and supported by Amazon
* MQ. Automatic upgrades occur during the scheduled maintenance window or after a manual broker reboot.
*
*
* @return Enables automatic upgrades to new patch versions for brokers as new versions are released and supported
* by Amazon MQ. Automatic upgrades occur during the scheduled maintenance window or after a manual broker
* reboot.
*/
public Boolean getAutoMinorVersionUpgrade() {
return this.autoMinorVersionUpgrade;
}
/**
*
* Enables automatic upgrades to new patch versions for brokers as new versions are released and supported by Amazon
* MQ. Automatic upgrades occur during the scheduled maintenance window or after a manual broker reboot.
*
*
* @param autoMinorVersionUpgrade
* Enables automatic upgrades to new patch versions for brokers as new versions are released and supported by
* Amazon MQ. Automatic upgrades occur during the scheduled maintenance window or after a manual broker
* reboot.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateBrokerResult withAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) {
setAutoMinorVersionUpgrade(autoMinorVersionUpgrade);
return this;
}
/**
*
* Enables automatic upgrades to new patch versions for brokers as new versions are released and supported by Amazon
* MQ. Automatic upgrades occur during the scheduled maintenance window or after a manual broker reboot.
*
*
* @return Enables automatic upgrades to new patch versions for brokers as new versions are released and supported
* by Amazon MQ. Automatic upgrades occur during the scheduled maintenance window or after a manual broker
* reboot.
*/
public Boolean isAutoMinorVersionUpgrade() {
return this.autoMinorVersionUpgrade;
}
/**
*
* Required. The unique ID that Amazon MQ generates for the broker.
*
*
* @param brokerId
* Required. The unique ID that Amazon MQ generates for the broker.
*/
public void setBrokerId(String brokerId) {
this.brokerId = brokerId;
}
/**
*
* Required. The unique ID that Amazon MQ generates for the broker.
*
*
* @return Required. The unique ID that Amazon MQ generates for the broker.
*/
public String getBrokerId() {
return this.brokerId;
}
/**
*
* Required. The unique ID that Amazon MQ generates for the broker.
*
*
* @param brokerId
* Required. The unique ID that Amazon MQ generates for the broker.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateBrokerResult withBrokerId(String brokerId) {
setBrokerId(brokerId);
return this;
}
/**
*
* The ID of the updated configuration.
*
*
* @param configuration
* The ID of the updated configuration.
*/
public void setConfiguration(ConfigurationId configuration) {
this.configuration = configuration;
}
/**
*
* The ID of the updated configuration.
*
*
* @return The ID of the updated configuration.
*/
public ConfigurationId getConfiguration() {
return this.configuration;
}
/**
*
* The ID of the updated configuration.
*
*
* @param configuration
* The ID of the updated configuration.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateBrokerResult withConfiguration(ConfigurationId configuration) {
setConfiguration(configuration);
return this;
}
/**
*
* The broker engine version to upgrade to. For more information, see the ActiveMQ
* version management and the RabbitMQ
* version management sections in the Amazon MQ Developer Guide.
*
*
* @param engineVersion
* The broker engine version to upgrade to. For more information, see the ActiveMQ version management and the RabbitMQ version management sections in the Amazon MQ Developer Guide.
*/
public void setEngineVersion(String engineVersion) {
this.engineVersion = engineVersion;
}
/**
*
* The broker engine version to upgrade to. For more information, see the ActiveMQ
* version management and the RabbitMQ
* version management sections in the Amazon MQ Developer Guide.
*
*
* @return The broker engine version to upgrade to. For more information, see the ActiveMQ version management and the RabbitMQ version management sections in the Amazon MQ Developer Guide.
*/
public String getEngineVersion() {
return this.engineVersion;
}
/**
*
* The broker engine version to upgrade to. For more information, see the ActiveMQ
* version management and the RabbitMQ
* version management sections in the Amazon MQ Developer Guide.
*
*
* @param engineVersion
* The broker engine version to upgrade to. For more information, see the ActiveMQ version management and the RabbitMQ version management sections in the Amazon MQ Developer Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateBrokerResult withEngineVersion(String engineVersion) {
setEngineVersion(engineVersion);
return this;
}
/**
*
* The broker's host instance type to upgrade to. For a list of supported instance types, see Broker
* instance types.
*
*
* @param hostInstanceType
* The broker's host instance type to upgrade to. For a list of supported instance types, see Broker instance types.
*/
public void setHostInstanceType(String hostInstanceType) {
this.hostInstanceType = hostInstanceType;
}
/**
*
* The broker's host instance type to upgrade to. For a list of supported instance types, see Broker
* instance types.
*
*
* @return The broker's host instance type to upgrade to. For a list of supported instance types, see Broker instance types.
*/
public String getHostInstanceType() {
return this.hostInstanceType;
}
/**
*
* The broker's host instance type to upgrade to. For a list of supported instance types, see Broker
* instance types.
*
*
* @param hostInstanceType
* The broker's host instance type to upgrade to. For a list of supported instance types, see Broker instance types.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateBrokerResult withHostInstanceType(String hostInstanceType) {
setHostInstanceType(hostInstanceType);
return this;
}
/**
*
* Optional. The metadata of the LDAP server used to authenticate and authorize connections to the broker. Does not
* apply to RabbitMQ brokers.
*
*
* @param ldapServerMetadata
* Optional. The metadata of the LDAP server used to authenticate and authorize connections to the broker.
* Does not apply to RabbitMQ brokers.
*/
public void setLdapServerMetadata(LdapServerMetadataOutput ldapServerMetadata) {
this.ldapServerMetadata = ldapServerMetadata;
}
/**
*
* Optional. The metadata of the LDAP server used to authenticate and authorize connections to the broker. Does not
* apply to RabbitMQ brokers.
*
*
* @return Optional. The metadata of the LDAP server used to authenticate and authorize connections to the broker.
* Does not apply to RabbitMQ brokers.
*/
public LdapServerMetadataOutput getLdapServerMetadata() {
return this.ldapServerMetadata;
}
/**
*
* Optional. The metadata of the LDAP server used to authenticate and authorize connections to the broker. Does not
* apply to RabbitMQ brokers.
*
*
* @param ldapServerMetadata
* Optional. The metadata of the LDAP server used to authenticate and authorize connections to the broker.
* Does not apply to RabbitMQ brokers.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateBrokerResult withLdapServerMetadata(LdapServerMetadataOutput ldapServerMetadata) {
setLdapServerMetadata(ldapServerMetadata);
return this;
}
/**
*
* The list of information about logs to be enabled for the specified broker.
*
*
* @param logs
* The list of information about logs to be enabled for the specified broker.
*/
public void setLogs(Logs logs) {
this.logs = logs;
}
/**
*
* The list of information about logs to be enabled for the specified broker.
*
*
* @return The list of information about logs to be enabled for the specified broker.
*/
public Logs getLogs() {
return this.logs;
}
/**
*
* The list of information about logs to be enabled for the specified broker.
*
*
* @param logs
* The list of information about logs to be enabled for the specified broker.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateBrokerResult withLogs(Logs logs) {
setLogs(logs);
return this;
}
/**
*
* The parameters that determine the WeeklyStartTime.
*
*
* @param maintenanceWindowStartTime
* The parameters that determine the WeeklyStartTime.
*/
public void setMaintenanceWindowStartTime(WeeklyStartTime maintenanceWindowStartTime) {
this.maintenanceWindowStartTime = maintenanceWindowStartTime;
}
/**
*
* The parameters that determine the WeeklyStartTime.
*
*
* @return The parameters that determine the WeeklyStartTime.
*/
public WeeklyStartTime getMaintenanceWindowStartTime() {
return this.maintenanceWindowStartTime;
}
/**
*
* The parameters that determine the WeeklyStartTime.
*
*
* @param maintenanceWindowStartTime
* The parameters that determine the WeeklyStartTime.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateBrokerResult withMaintenanceWindowStartTime(WeeklyStartTime maintenanceWindowStartTime) {
setMaintenanceWindowStartTime(maintenanceWindowStartTime);
return this;
}
/**
*
* The list of security groups (1 minimum, 5 maximum) that authorizes connections to brokers.
*
*
* @return The list of security groups (1 minimum, 5 maximum) that authorizes connections to brokers.
*/
public java.util.List getSecurityGroups() {
return securityGroups;
}
/**
*
* The list of security groups (1 minimum, 5 maximum) that authorizes connections to brokers.
*
*
* @param securityGroups
* The list of security groups (1 minimum, 5 maximum) that authorizes connections to brokers.
*/
public void setSecurityGroups(java.util.Collection securityGroups) {
if (securityGroups == null) {
this.securityGroups = null;
return;
}
this.securityGroups = new java.util.ArrayList(securityGroups);
}
/**
*
* The list of security groups (1 minimum, 5 maximum) that authorizes connections to brokers.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSecurityGroups(java.util.Collection)} or {@link #withSecurityGroups(java.util.Collection)} if you want
* to override the existing values.
*
*
* @param securityGroups
* The list of security groups (1 minimum, 5 maximum) that authorizes connections to brokers.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateBrokerResult withSecurityGroups(String... securityGroups) {
if (this.securityGroups == null) {
setSecurityGroups(new java.util.ArrayList(securityGroups.length));
}
for (String ele : securityGroups) {
this.securityGroups.add(ele);
}
return this;
}
/**
*
* The list of security groups (1 minimum, 5 maximum) that authorizes connections to brokers.
*
*
* @param securityGroups
* The list of security groups (1 minimum, 5 maximum) that authorizes connections to brokers.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateBrokerResult withSecurityGroups(java.util.Collection securityGroups) {
setSecurityGroups(securityGroups);
return this;
}
/**
*
* The replication details of the data replication-enabled broker. Only returned if dataReplicationMode is set to
* CRDR.
*
*
* @param dataReplicationMetadata
* The replication details of the data replication-enabled broker. Only returned if dataReplicationMode is
* set to CRDR.
*/
public void setDataReplicationMetadata(DataReplicationMetadataOutput dataReplicationMetadata) {
this.dataReplicationMetadata = dataReplicationMetadata;
}
/**
*
* The replication details of the data replication-enabled broker. Only returned if dataReplicationMode is set to
* CRDR.
*
*
* @return The replication details of the data replication-enabled broker. Only returned if dataReplicationMode is
* set to CRDR.
*/
public DataReplicationMetadataOutput getDataReplicationMetadata() {
return this.dataReplicationMetadata;
}
/**
*
* The replication details of the data replication-enabled broker. Only returned if dataReplicationMode is set to
* CRDR.
*
*
* @param dataReplicationMetadata
* The replication details of the data replication-enabled broker. Only returned if dataReplicationMode is
* set to CRDR.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateBrokerResult withDataReplicationMetadata(DataReplicationMetadataOutput dataReplicationMetadata) {
setDataReplicationMetadata(dataReplicationMetadata);
return this;
}
/**
*
* Describes whether this broker is a part of a data replication pair.
*
*
* @param dataReplicationMode
* Describes whether this broker is a part of a data replication pair.
* @see DataReplicationMode
*/
public void setDataReplicationMode(String dataReplicationMode) {
this.dataReplicationMode = dataReplicationMode;
}
/**
*
* Describes whether this broker is a part of a data replication pair.
*
*
* @return Describes whether this broker is a part of a data replication pair.
* @see DataReplicationMode
*/
public String getDataReplicationMode() {
return this.dataReplicationMode;
}
/**
*
* Describes whether this broker is a part of a data replication pair.
*
*
* @param dataReplicationMode
* Describes whether this broker is a part of a data replication pair.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DataReplicationMode
*/
public UpdateBrokerResult withDataReplicationMode(String dataReplicationMode) {
setDataReplicationMode(dataReplicationMode);
return this;
}
/**
*
* Describes whether this broker is a part of a data replication pair.
*
*
* @param dataReplicationMode
* Describes whether this broker is a part of a data replication pair.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DataReplicationMode
*/
public UpdateBrokerResult withDataReplicationMode(DataReplicationMode dataReplicationMode) {
this.dataReplicationMode = dataReplicationMode.toString();
return this;
}
/**
*
* The pending replication details of the data replication-enabled broker. Only returned if
* pendingDataReplicationMode is set to CRDR.
*
*
* @param pendingDataReplicationMetadata
* The pending replication details of the data replication-enabled broker. Only returned if
* pendingDataReplicationMode is set to CRDR.
*/
public void setPendingDataReplicationMetadata(DataReplicationMetadataOutput pendingDataReplicationMetadata) {
this.pendingDataReplicationMetadata = pendingDataReplicationMetadata;
}
/**
*
* The pending replication details of the data replication-enabled broker. Only returned if
* pendingDataReplicationMode is set to CRDR.
*
*
* @return The pending replication details of the data replication-enabled broker. Only returned if
* pendingDataReplicationMode is set to CRDR.
*/
public DataReplicationMetadataOutput getPendingDataReplicationMetadata() {
return this.pendingDataReplicationMetadata;
}
/**
*
* The pending replication details of the data replication-enabled broker. Only returned if
* pendingDataReplicationMode is set to CRDR.
*
*
* @param pendingDataReplicationMetadata
* The pending replication details of the data replication-enabled broker. Only returned if
* pendingDataReplicationMode is set to CRDR.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateBrokerResult withPendingDataReplicationMetadata(DataReplicationMetadataOutput pendingDataReplicationMetadata) {
setPendingDataReplicationMetadata(pendingDataReplicationMetadata);
return this;
}
/**
*
* Describes whether this broker will be a part of a data replication pair after reboot.
*
*
* @param pendingDataReplicationMode
* Describes whether this broker will be a part of a data replication pair after reboot.
* @see DataReplicationMode
*/
public void setPendingDataReplicationMode(String pendingDataReplicationMode) {
this.pendingDataReplicationMode = pendingDataReplicationMode;
}
/**
*
* Describes whether this broker will be a part of a data replication pair after reboot.
*
*
* @return Describes whether this broker will be a part of a data replication pair after reboot.
* @see DataReplicationMode
*/
public String getPendingDataReplicationMode() {
return this.pendingDataReplicationMode;
}
/**
*
* Describes whether this broker will be a part of a data replication pair after reboot.
*
*
* @param pendingDataReplicationMode
* Describes whether this broker will be a part of a data replication pair after reboot.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DataReplicationMode
*/
public UpdateBrokerResult withPendingDataReplicationMode(String pendingDataReplicationMode) {
setPendingDataReplicationMode(pendingDataReplicationMode);
return this;
}
/**
*
* Describes whether this broker will be a part of a data replication pair after reboot.
*
*
* @param pendingDataReplicationMode
* Describes whether this broker will be a part of a data replication pair after reboot.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DataReplicationMode
*/
public UpdateBrokerResult withPendingDataReplicationMode(DataReplicationMode pendingDataReplicationMode) {
this.pendingDataReplicationMode = pendingDataReplicationMode.toString();
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getAuthenticationStrategy() != null)
sb.append("AuthenticationStrategy: ").append(getAuthenticationStrategy()).append(",");
if (getAutoMinorVersionUpgrade() != null)
sb.append("AutoMinorVersionUpgrade: ").append(getAutoMinorVersionUpgrade()).append(",");
if (getBrokerId() != null)
sb.append("BrokerId: ").append(getBrokerId()).append(",");
if (getConfiguration() != null)
sb.append("Configuration: ").append(getConfiguration()).append(",");
if (getEngineVersion() != null)
sb.append("EngineVersion: ").append(getEngineVersion()).append(",");
if (getHostInstanceType() != null)
sb.append("HostInstanceType: ").append(getHostInstanceType()).append(",");
if (getLdapServerMetadata() != null)
sb.append("LdapServerMetadata: ").append(getLdapServerMetadata()).append(",");
if (getLogs() != null)
sb.append("Logs: ").append(getLogs()).append(",");
if (getMaintenanceWindowStartTime() != null)
sb.append("MaintenanceWindowStartTime: ").append(getMaintenanceWindowStartTime()).append(",");
if (getSecurityGroups() != null)
sb.append("SecurityGroups: ").append(getSecurityGroups()).append(",");
if (getDataReplicationMetadata() != null)
sb.append("DataReplicationMetadata: ").append(getDataReplicationMetadata()).append(",");
if (getDataReplicationMode() != null)
sb.append("DataReplicationMode: ").append(getDataReplicationMode()).append(",");
if (getPendingDataReplicationMetadata() != null)
sb.append("PendingDataReplicationMetadata: ").append(getPendingDataReplicationMetadata()).append(",");
if (getPendingDataReplicationMode() != null)
sb.append("PendingDataReplicationMode: ").append(getPendingDataReplicationMode());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof UpdateBrokerResult == false)
return false;
UpdateBrokerResult other = (UpdateBrokerResult) obj;
if (other.getAuthenticationStrategy() == null ^ this.getAuthenticationStrategy() == null)
return false;
if (other.getAuthenticationStrategy() != null && other.getAuthenticationStrategy().equals(this.getAuthenticationStrategy()) == false)
return false;
if (other.getAutoMinorVersionUpgrade() == null ^ this.getAutoMinorVersionUpgrade() == null)
return false;
if (other.getAutoMinorVersionUpgrade() != null && other.getAutoMinorVersionUpgrade().equals(this.getAutoMinorVersionUpgrade()) == false)
return false;
if (other.getBrokerId() == null ^ this.getBrokerId() == null)
return false;
if (other.getBrokerId() != null && other.getBrokerId().equals(this.getBrokerId()) == false)
return false;
if (other.getConfiguration() == null ^ this.getConfiguration() == null)
return false;
if (other.getConfiguration() != null && other.getConfiguration().equals(this.getConfiguration()) == false)
return false;
if (other.getEngineVersion() == null ^ this.getEngineVersion() == null)
return false;
if (other.getEngineVersion() != null && other.getEngineVersion().equals(this.getEngineVersion()) == false)
return false;
if (other.getHostInstanceType() == null ^ this.getHostInstanceType() == null)
return false;
if (other.getHostInstanceType() != null && other.getHostInstanceType().equals(this.getHostInstanceType()) == false)
return false;
if (other.getLdapServerMetadata() == null ^ this.getLdapServerMetadata() == null)
return false;
if (other.getLdapServerMetadata() != null && other.getLdapServerMetadata().equals(this.getLdapServerMetadata()) == false)
return false;
if (other.getLogs() == null ^ this.getLogs() == null)
return false;
if (other.getLogs() != null && other.getLogs().equals(this.getLogs()) == false)
return false;
if (other.getMaintenanceWindowStartTime() == null ^ this.getMaintenanceWindowStartTime() == null)
return false;
if (other.getMaintenanceWindowStartTime() != null && other.getMaintenanceWindowStartTime().equals(this.getMaintenanceWindowStartTime()) == false)
return false;
if (other.getSecurityGroups() == null ^ this.getSecurityGroups() == null)
return false;
if (other.getSecurityGroups() != null && other.getSecurityGroups().equals(this.getSecurityGroups()) == false)
return false;
if (other.getDataReplicationMetadata() == null ^ this.getDataReplicationMetadata() == null)
return false;
if (other.getDataReplicationMetadata() != null && other.getDataReplicationMetadata().equals(this.getDataReplicationMetadata()) == false)
return false;
if (other.getDataReplicationMode() == null ^ this.getDataReplicationMode() == null)
return false;
if (other.getDataReplicationMode() != null && other.getDataReplicationMode().equals(this.getDataReplicationMode()) == false)
return false;
if (other.getPendingDataReplicationMetadata() == null ^ this.getPendingDataReplicationMetadata() == null)
return false;
if (other.getPendingDataReplicationMetadata() != null
&& other.getPendingDataReplicationMetadata().equals(this.getPendingDataReplicationMetadata()) == false)
return false;
if (other.getPendingDataReplicationMode() == null ^ this.getPendingDataReplicationMode() == null)
return false;
if (other.getPendingDataReplicationMode() != null && other.getPendingDataReplicationMode().equals(this.getPendingDataReplicationMode()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAuthenticationStrategy() == null) ? 0 : getAuthenticationStrategy().hashCode());
hashCode = prime * hashCode + ((getAutoMinorVersionUpgrade() == null) ? 0 : getAutoMinorVersionUpgrade().hashCode());
hashCode = prime * hashCode + ((getBrokerId() == null) ? 0 : getBrokerId().hashCode());
hashCode = prime * hashCode + ((getConfiguration() == null) ? 0 : getConfiguration().hashCode());
hashCode = prime * hashCode + ((getEngineVersion() == null) ? 0 : getEngineVersion().hashCode());
hashCode = prime * hashCode + ((getHostInstanceType() == null) ? 0 : getHostInstanceType().hashCode());
hashCode = prime * hashCode + ((getLdapServerMetadata() == null) ? 0 : getLdapServerMetadata().hashCode());
hashCode = prime * hashCode + ((getLogs() == null) ? 0 : getLogs().hashCode());
hashCode = prime * hashCode + ((getMaintenanceWindowStartTime() == null) ? 0 : getMaintenanceWindowStartTime().hashCode());
hashCode = prime * hashCode + ((getSecurityGroups() == null) ? 0 : getSecurityGroups().hashCode());
hashCode = prime * hashCode + ((getDataReplicationMetadata() == null) ? 0 : getDataReplicationMetadata().hashCode());
hashCode = prime * hashCode + ((getDataReplicationMode() == null) ? 0 : getDataReplicationMode().hashCode());
hashCode = prime * hashCode + ((getPendingDataReplicationMetadata() == null) ? 0 : getPendingDataReplicationMetadata().hashCode());
hashCode = prime * hashCode + ((getPendingDataReplicationMode() == null) ? 0 : getPendingDataReplicationMode().hashCode());
return hashCode;
}
@Override
public UpdateBrokerResult clone() {
try {
return (UpdateBrokerResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}