/* * 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.kafka.model; import java.io.Serializable; import javax.annotation.Generated; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GetBootstrapBrokersResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable { /** *

* A string containing one or more hostname:port pairs. *

*/ private String bootstrapBrokerString; /** *

* A string containing one or more DNS names (or IP) and TLS port pairs. *

*/ private String bootstrapBrokerStringTls; /** *

* A string containing one or more DNS names (or IP) and Sasl Scram port pairs. *

*/ private String bootstrapBrokerStringSaslScram; /** *

* A string that contains one or more DNS names (or IP addresses) and SASL IAM port pairs. *

*/ private String bootstrapBrokerStringSaslIam; /** *

* A string containing one or more DNS names (or IP) and TLS port pairs. *

*/ private String bootstrapBrokerStringPublicTls; /** *

* A string containing one or more DNS names (or IP) and Sasl Scram port pairs. *

*/ private String bootstrapBrokerStringPublicSaslScram; /** *

* A string that contains one or more DNS names (or IP addresses) and SASL IAM port pairs. *

*/ private String bootstrapBrokerStringPublicSaslIam; /** *

* A string containing one or more DNS names (or IP) and TLS port pairs for VPC connectivity. *

*/ private String bootstrapBrokerStringVpcConnectivityTls; /** *

* A string containing one or more DNS names (or IP) and SASL/SCRAM port pairs for VPC connectivity. *

*/ private String bootstrapBrokerStringVpcConnectivitySaslScram; /** *

* A string containing one or more DNS names (or IP) and SASL/IAM port pairs for VPC connectivity. *

*/ private String bootstrapBrokerStringVpcConnectivitySaslIam; /** *

* A string containing one or more hostname:port pairs. *

* * @param bootstrapBrokerString *

* A string containing one or more hostname:port pairs. *

*/ public void setBootstrapBrokerString(String bootstrapBrokerString) { this.bootstrapBrokerString = bootstrapBrokerString; } /** *

* A string containing one or more hostname:port pairs. *

* * @return

* A string containing one or more hostname:port pairs. *

*/ public String getBootstrapBrokerString() { return this.bootstrapBrokerString; } /** *

* A string containing one or more hostname:port pairs. *

* * @param bootstrapBrokerString *

* A string containing one or more hostname:port pairs. *

* @return Returns a reference to this object so that method calls can be chained together. */ public GetBootstrapBrokersResult withBootstrapBrokerString(String bootstrapBrokerString) { setBootstrapBrokerString(bootstrapBrokerString); return this; } /** *

* A string containing one or more DNS names (or IP) and TLS port pairs. *

* * @param bootstrapBrokerStringTls *

* A string containing one or more DNS names (or IP) and TLS port pairs. *

*/ public void setBootstrapBrokerStringTls(String bootstrapBrokerStringTls) { this.bootstrapBrokerStringTls = bootstrapBrokerStringTls; } /** *

* A string containing one or more DNS names (or IP) and TLS port pairs. *

* * @return

* A string containing one or more DNS names (or IP) and TLS port pairs. *

*/ public String getBootstrapBrokerStringTls() { return this.bootstrapBrokerStringTls; } /** *

* A string containing one or more DNS names (or IP) and TLS port pairs. *

* * @param bootstrapBrokerStringTls *

* A string containing one or more DNS names (or IP) and TLS port pairs. *

* @return Returns a reference to this object so that method calls can be chained together. */ public GetBootstrapBrokersResult withBootstrapBrokerStringTls(String bootstrapBrokerStringTls) { setBootstrapBrokerStringTls(bootstrapBrokerStringTls); return this; } /** *

* A string containing one or more DNS names (or IP) and Sasl Scram port pairs. *

* * @param bootstrapBrokerStringSaslScram *

* A string containing one or more DNS names (or IP) and Sasl Scram port pairs. *

*/ public void setBootstrapBrokerStringSaslScram(String bootstrapBrokerStringSaslScram) { this.bootstrapBrokerStringSaslScram = bootstrapBrokerStringSaslScram; } /** *

* A string containing one or more DNS names (or IP) and Sasl Scram port pairs. *

* * @return

* A string containing one or more DNS names (or IP) and Sasl Scram port pairs. *

*/ public String getBootstrapBrokerStringSaslScram() { return this.bootstrapBrokerStringSaslScram; } /** *

* A string containing one or more DNS names (or IP) and Sasl Scram port pairs. *

* * @param bootstrapBrokerStringSaslScram *

* A string containing one or more DNS names (or IP) and Sasl Scram port pairs. *

* @return Returns a reference to this object so that method calls can be chained together. */ public GetBootstrapBrokersResult withBootstrapBrokerStringSaslScram(String bootstrapBrokerStringSaslScram) { setBootstrapBrokerStringSaslScram(bootstrapBrokerStringSaslScram); return this; } /** *

* A string that contains one or more DNS names (or IP addresses) and SASL IAM port pairs. *

* * @param bootstrapBrokerStringSaslIam *

* A string that contains one or more DNS names (or IP addresses) and SASL IAM port pairs. *

*/ public void setBootstrapBrokerStringSaslIam(String bootstrapBrokerStringSaslIam) { this.bootstrapBrokerStringSaslIam = bootstrapBrokerStringSaslIam; } /** *

* A string that contains one or more DNS names (or IP addresses) and SASL IAM port pairs. *

* * @return

* A string that contains one or more DNS names (or IP addresses) and SASL IAM port pairs. *

*/ public String getBootstrapBrokerStringSaslIam() { return this.bootstrapBrokerStringSaslIam; } /** *

* A string that contains one or more DNS names (or IP addresses) and SASL IAM port pairs. *

* * @param bootstrapBrokerStringSaslIam *

* A string that contains one or more DNS names (or IP addresses) and SASL IAM port pairs. *

* @return Returns a reference to this object so that method calls can be chained together. */ public GetBootstrapBrokersResult withBootstrapBrokerStringSaslIam(String bootstrapBrokerStringSaslIam) { setBootstrapBrokerStringSaslIam(bootstrapBrokerStringSaslIam); return this; } /** *

* A string containing one or more DNS names (or IP) and TLS port pairs. *

* * @param bootstrapBrokerStringPublicTls *

* A string containing one or more DNS names (or IP) and TLS port pairs. *

*/ public void setBootstrapBrokerStringPublicTls(String bootstrapBrokerStringPublicTls) { this.bootstrapBrokerStringPublicTls = bootstrapBrokerStringPublicTls; } /** *

* A string containing one or more DNS names (or IP) and TLS port pairs. *

* * @return

* A string containing one or more DNS names (or IP) and TLS port pairs. *

*/ public String getBootstrapBrokerStringPublicTls() { return this.bootstrapBrokerStringPublicTls; } /** *

* A string containing one or more DNS names (or IP) and TLS port pairs. *

* * @param bootstrapBrokerStringPublicTls *

* A string containing one or more DNS names (or IP) and TLS port pairs. *

* @return Returns a reference to this object so that method calls can be chained together. */ public GetBootstrapBrokersResult withBootstrapBrokerStringPublicTls(String bootstrapBrokerStringPublicTls) { setBootstrapBrokerStringPublicTls(bootstrapBrokerStringPublicTls); return this; } /** *

* A string containing one or more DNS names (or IP) and Sasl Scram port pairs. *

* * @param bootstrapBrokerStringPublicSaslScram *

* A string containing one or more DNS names (or IP) and Sasl Scram port pairs. *

*/ public void setBootstrapBrokerStringPublicSaslScram(String bootstrapBrokerStringPublicSaslScram) { this.bootstrapBrokerStringPublicSaslScram = bootstrapBrokerStringPublicSaslScram; } /** *

* A string containing one or more DNS names (or IP) and Sasl Scram port pairs. *

* * @return

* A string containing one or more DNS names (or IP) and Sasl Scram port pairs. *

*/ public String getBootstrapBrokerStringPublicSaslScram() { return this.bootstrapBrokerStringPublicSaslScram; } /** *

* A string containing one or more DNS names (or IP) and Sasl Scram port pairs. *

* * @param bootstrapBrokerStringPublicSaslScram *

* A string containing one or more DNS names (or IP) and Sasl Scram port pairs. *

* @return Returns a reference to this object so that method calls can be chained together. */ public GetBootstrapBrokersResult withBootstrapBrokerStringPublicSaslScram(String bootstrapBrokerStringPublicSaslScram) { setBootstrapBrokerStringPublicSaslScram(bootstrapBrokerStringPublicSaslScram); return this; } /** *

* A string that contains one or more DNS names (or IP addresses) and SASL IAM port pairs. *

* * @param bootstrapBrokerStringPublicSaslIam *

* A string that contains one or more DNS names (or IP addresses) and SASL IAM port pairs. *

*/ public void setBootstrapBrokerStringPublicSaslIam(String bootstrapBrokerStringPublicSaslIam) { this.bootstrapBrokerStringPublicSaslIam = bootstrapBrokerStringPublicSaslIam; } /** *

* A string that contains one or more DNS names (or IP addresses) and SASL IAM port pairs. *

* * @return

* A string that contains one or more DNS names (or IP addresses) and SASL IAM port pairs. *

*/ public String getBootstrapBrokerStringPublicSaslIam() { return this.bootstrapBrokerStringPublicSaslIam; } /** *

* A string that contains one or more DNS names (or IP addresses) and SASL IAM port pairs. *

* * @param bootstrapBrokerStringPublicSaslIam *

* A string that contains one or more DNS names (or IP addresses) and SASL IAM port pairs. *

* @return Returns a reference to this object so that method calls can be chained together. */ public GetBootstrapBrokersResult withBootstrapBrokerStringPublicSaslIam(String bootstrapBrokerStringPublicSaslIam) { setBootstrapBrokerStringPublicSaslIam(bootstrapBrokerStringPublicSaslIam); return this; } /** *

* A string containing one or more DNS names (or IP) and TLS port pairs for VPC connectivity. *

* * @param bootstrapBrokerStringVpcConnectivityTls *

* A string containing one or more DNS names (or IP) and TLS port pairs for VPC connectivity. *

*/ public void setBootstrapBrokerStringVpcConnectivityTls(String bootstrapBrokerStringVpcConnectivityTls) { this.bootstrapBrokerStringVpcConnectivityTls = bootstrapBrokerStringVpcConnectivityTls; } /** *

* A string containing one or more DNS names (or IP) and TLS port pairs for VPC connectivity. *

* * @return

* A string containing one or more DNS names (or IP) and TLS port pairs for VPC connectivity. *

*/ public String getBootstrapBrokerStringVpcConnectivityTls() { return this.bootstrapBrokerStringVpcConnectivityTls; } /** *

* A string containing one or more DNS names (or IP) and TLS port pairs for VPC connectivity. *

* * @param bootstrapBrokerStringVpcConnectivityTls *

* A string containing one or more DNS names (or IP) and TLS port pairs for VPC connectivity. *

* @return Returns a reference to this object so that method calls can be chained together. */ public GetBootstrapBrokersResult withBootstrapBrokerStringVpcConnectivityTls(String bootstrapBrokerStringVpcConnectivityTls) { setBootstrapBrokerStringVpcConnectivityTls(bootstrapBrokerStringVpcConnectivityTls); return this; } /** *

* A string containing one or more DNS names (or IP) and SASL/SCRAM port pairs for VPC connectivity. *

* * @param bootstrapBrokerStringVpcConnectivitySaslScram *

* A string containing one or more DNS names (or IP) and SASL/SCRAM port pairs for VPC connectivity. *

*/ public void setBootstrapBrokerStringVpcConnectivitySaslScram(String bootstrapBrokerStringVpcConnectivitySaslScram) { this.bootstrapBrokerStringVpcConnectivitySaslScram = bootstrapBrokerStringVpcConnectivitySaslScram; } /** *

* A string containing one or more DNS names (or IP) and SASL/SCRAM port pairs for VPC connectivity. *

* * @return

* A string containing one or more DNS names (or IP) and SASL/SCRAM port pairs for VPC connectivity. *

*/ public String getBootstrapBrokerStringVpcConnectivitySaslScram() { return this.bootstrapBrokerStringVpcConnectivitySaslScram; } /** *

* A string containing one or more DNS names (or IP) and SASL/SCRAM port pairs for VPC connectivity. *

* * @param bootstrapBrokerStringVpcConnectivitySaslScram *

* A string containing one or more DNS names (or IP) and SASL/SCRAM port pairs for VPC connectivity. *

* @return Returns a reference to this object so that method calls can be chained together. */ public GetBootstrapBrokersResult withBootstrapBrokerStringVpcConnectivitySaslScram(String bootstrapBrokerStringVpcConnectivitySaslScram) { setBootstrapBrokerStringVpcConnectivitySaslScram(bootstrapBrokerStringVpcConnectivitySaslScram); return this; } /** *

* A string containing one or more DNS names (or IP) and SASL/IAM port pairs for VPC connectivity. *

* * @param bootstrapBrokerStringVpcConnectivitySaslIam *

* A string containing one or more DNS names (or IP) and SASL/IAM port pairs for VPC connectivity. *

*/ public void setBootstrapBrokerStringVpcConnectivitySaslIam(String bootstrapBrokerStringVpcConnectivitySaslIam) { this.bootstrapBrokerStringVpcConnectivitySaslIam = bootstrapBrokerStringVpcConnectivitySaslIam; } /** *

* A string containing one or more DNS names (or IP) and SASL/IAM port pairs for VPC connectivity. *

* * @return

* A string containing one or more DNS names (or IP) and SASL/IAM port pairs for VPC connectivity. *

*/ public String getBootstrapBrokerStringVpcConnectivitySaslIam() { return this.bootstrapBrokerStringVpcConnectivitySaslIam; } /** *

* A string containing one or more DNS names (or IP) and SASL/IAM port pairs for VPC connectivity. *

* * @param bootstrapBrokerStringVpcConnectivitySaslIam *

* A string containing one or more DNS names (or IP) and SASL/IAM port pairs for VPC connectivity. *

* @return Returns a reference to this object so that method calls can be chained together. */ public GetBootstrapBrokersResult withBootstrapBrokerStringVpcConnectivitySaslIam(String bootstrapBrokerStringVpcConnectivitySaslIam) { setBootstrapBrokerStringVpcConnectivitySaslIam(bootstrapBrokerStringVpcConnectivitySaslIam); 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 (getBootstrapBrokerString() != null) sb.append("BootstrapBrokerString: ").append(getBootstrapBrokerString()).append(","); if (getBootstrapBrokerStringTls() != null) sb.append("BootstrapBrokerStringTls: ").append(getBootstrapBrokerStringTls()).append(","); if (getBootstrapBrokerStringSaslScram() != null) sb.append("BootstrapBrokerStringSaslScram: ").append(getBootstrapBrokerStringSaslScram()).append(","); if (getBootstrapBrokerStringSaslIam() != null) sb.append("BootstrapBrokerStringSaslIam: ").append(getBootstrapBrokerStringSaslIam()).append(","); if (getBootstrapBrokerStringPublicTls() != null) sb.append("BootstrapBrokerStringPublicTls: ").append(getBootstrapBrokerStringPublicTls()).append(","); if (getBootstrapBrokerStringPublicSaslScram() != null) sb.append("BootstrapBrokerStringPublicSaslScram: ").append(getBootstrapBrokerStringPublicSaslScram()).append(","); if (getBootstrapBrokerStringPublicSaslIam() != null) sb.append("BootstrapBrokerStringPublicSaslIam: ").append(getBootstrapBrokerStringPublicSaslIam()).append(","); if (getBootstrapBrokerStringVpcConnectivityTls() != null) sb.append("BootstrapBrokerStringVpcConnectivityTls: ").append(getBootstrapBrokerStringVpcConnectivityTls()).append(","); if (getBootstrapBrokerStringVpcConnectivitySaslScram() != null) sb.append("BootstrapBrokerStringVpcConnectivitySaslScram: ").append(getBootstrapBrokerStringVpcConnectivitySaslScram()).append(","); if (getBootstrapBrokerStringVpcConnectivitySaslIam() != null) sb.append("BootstrapBrokerStringVpcConnectivitySaslIam: ").append(getBootstrapBrokerStringVpcConnectivitySaslIam()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetBootstrapBrokersResult == false) return false; GetBootstrapBrokersResult other = (GetBootstrapBrokersResult) obj; if (other.getBootstrapBrokerString() == null ^ this.getBootstrapBrokerString() == null) return false; if (other.getBootstrapBrokerString() != null && other.getBootstrapBrokerString().equals(this.getBootstrapBrokerString()) == false) return false; if (other.getBootstrapBrokerStringTls() == null ^ this.getBootstrapBrokerStringTls() == null) return false; if (other.getBootstrapBrokerStringTls() != null && other.getBootstrapBrokerStringTls().equals(this.getBootstrapBrokerStringTls()) == false) return false; if (other.getBootstrapBrokerStringSaslScram() == null ^ this.getBootstrapBrokerStringSaslScram() == null) return false; if (other.getBootstrapBrokerStringSaslScram() != null && other.getBootstrapBrokerStringSaslScram().equals(this.getBootstrapBrokerStringSaslScram()) == false) return false; if (other.getBootstrapBrokerStringSaslIam() == null ^ this.getBootstrapBrokerStringSaslIam() == null) return false; if (other.getBootstrapBrokerStringSaslIam() != null && other.getBootstrapBrokerStringSaslIam().equals(this.getBootstrapBrokerStringSaslIam()) == false) return false; if (other.getBootstrapBrokerStringPublicTls() == null ^ this.getBootstrapBrokerStringPublicTls() == null) return false; if (other.getBootstrapBrokerStringPublicTls() != null && other.getBootstrapBrokerStringPublicTls().equals(this.getBootstrapBrokerStringPublicTls()) == false) return false; if (other.getBootstrapBrokerStringPublicSaslScram() == null ^ this.getBootstrapBrokerStringPublicSaslScram() == null) return false; if (other.getBootstrapBrokerStringPublicSaslScram() != null && other.getBootstrapBrokerStringPublicSaslScram().equals(this.getBootstrapBrokerStringPublicSaslScram()) == false) return false; if (other.getBootstrapBrokerStringPublicSaslIam() == null ^ this.getBootstrapBrokerStringPublicSaslIam() == null) return false; if (other.getBootstrapBrokerStringPublicSaslIam() != null && other.getBootstrapBrokerStringPublicSaslIam().equals(this.getBootstrapBrokerStringPublicSaslIam()) == false) return false; if (other.getBootstrapBrokerStringVpcConnectivityTls() == null ^ this.getBootstrapBrokerStringVpcConnectivityTls() == null) return false; if (other.getBootstrapBrokerStringVpcConnectivityTls() != null && other.getBootstrapBrokerStringVpcConnectivityTls().equals(this.getBootstrapBrokerStringVpcConnectivityTls()) == false) return false; if (other.getBootstrapBrokerStringVpcConnectivitySaslScram() == null ^ this.getBootstrapBrokerStringVpcConnectivitySaslScram() == null) return false; if (other.getBootstrapBrokerStringVpcConnectivitySaslScram() != null && other.getBootstrapBrokerStringVpcConnectivitySaslScram().equals(this.getBootstrapBrokerStringVpcConnectivitySaslScram()) == false) return false; if (other.getBootstrapBrokerStringVpcConnectivitySaslIam() == null ^ this.getBootstrapBrokerStringVpcConnectivitySaslIam() == null) return false; if (other.getBootstrapBrokerStringVpcConnectivitySaslIam() != null && other.getBootstrapBrokerStringVpcConnectivitySaslIam().equals(this.getBootstrapBrokerStringVpcConnectivitySaslIam()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBootstrapBrokerString() == null) ? 0 : getBootstrapBrokerString().hashCode()); hashCode = prime * hashCode + ((getBootstrapBrokerStringTls() == null) ? 0 : getBootstrapBrokerStringTls().hashCode()); hashCode = prime * hashCode + ((getBootstrapBrokerStringSaslScram() == null) ? 0 : getBootstrapBrokerStringSaslScram().hashCode()); hashCode = prime * hashCode + ((getBootstrapBrokerStringSaslIam() == null) ? 0 : getBootstrapBrokerStringSaslIam().hashCode()); hashCode = prime * hashCode + ((getBootstrapBrokerStringPublicTls() == null) ? 0 : getBootstrapBrokerStringPublicTls().hashCode()); hashCode = prime * hashCode + ((getBootstrapBrokerStringPublicSaslScram() == null) ? 0 : getBootstrapBrokerStringPublicSaslScram().hashCode()); hashCode = prime * hashCode + ((getBootstrapBrokerStringPublicSaslIam() == null) ? 0 : getBootstrapBrokerStringPublicSaslIam().hashCode()); hashCode = prime * hashCode + ((getBootstrapBrokerStringVpcConnectivityTls() == null) ? 0 : getBootstrapBrokerStringVpcConnectivityTls().hashCode()); hashCode = prime * hashCode + ((getBootstrapBrokerStringVpcConnectivitySaslScram() == null) ? 0 : getBootstrapBrokerStringVpcConnectivitySaslScram().hashCode()); hashCode = prime * hashCode + ((getBootstrapBrokerStringVpcConnectivitySaslIam() == null) ? 0 : getBootstrapBrokerStringVpcConnectivitySaslIam().hashCode()); return hashCode; } @Override public GetBootstrapBrokersResult clone() { try { return (GetBootstrapBrokersResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }