/* * 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; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* BrokerNodeInfo *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class BrokerNodeInfo implements Serializable, Cloneable, StructuredPojo { /** ** The attached elastic network interface of the broker. *
*/ private String attachedENIId; /** ** The ID of the broker. *
*/ private Double brokerId; /** ** The client subnet to which this broker node belongs. *
*/ private String clientSubnet; /** ** The virtual private cloud (VPC) of the client. *
*/ private String clientVpcIpAddress; /** ** Information about the version of software currently deployed on the Apache Kafka brokers in the cluster. *
*/ private BrokerSoftwareInfo currentBrokerSoftwareInfo; /** ** Endpoints for accessing the broker. *
*/ private java.util.List* The attached elastic network interface of the broker. *
* * @param attachedENIId ** The attached elastic network interface of the broker. *
*/ public void setAttachedENIId(String attachedENIId) { this.attachedENIId = attachedENIId; } /** ** The attached elastic network interface of the broker. *
* * @return* The attached elastic network interface of the broker. *
*/ public String getAttachedENIId() { return this.attachedENIId; } /** ** The attached elastic network interface of the broker. *
* * @param attachedENIId ** The attached elastic network interface of the broker. *
* @return Returns a reference to this object so that method calls can be chained together. */ public BrokerNodeInfo withAttachedENIId(String attachedENIId) { setAttachedENIId(attachedENIId); return this; } /** ** The ID of the broker. *
* * @param brokerId ** The ID of the broker. *
*/ public void setBrokerId(Double brokerId) { this.brokerId = brokerId; } /** ** The ID of the broker. *
* * @return* The ID of the broker. *
*/ public Double getBrokerId() { return this.brokerId; } /** ** The ID of the broker. *
* * @param brokerId ** The ID of the broker. *
* @return Returns a reference to this object so that method calls can be chained together. */ public BrokerNodeInfo withBrokerId(Double brokerId) { setBrokerId(brokerId); return this; } /** ** The client subnet to which this broker node belongs. *
* * @param clientSubnet ** The client subnet to which this broker node belongs. *
*/ public void setClientSubnet(String clientSubnet) { this.clientSubnet = clientSubnet; } /** ** The client subnet to which this broker node belongs. *
* * @return* The client subnet to which this broker node belongs. *
*/ public String getClientSubnet() { return this.clientSubnet; } /** ** The client subnet to which this broker node belongs. *
* * @param clientSubnet ** The client subnet to which this broker node belongs. *
* @return Returns a reference to this object so that method calls can be chained together. */ public BrokerNodeInfo withClientSubnet(String clientSubnet) { setClientSubnet(clientSubnet); return this; } /** ** The virtual private cloud (VPC) of the client. *
* * @param clientVpcIpAddress ** The virtual private cloud (VPC) of the client. *
*/ public void setClientVpcIpAddress(String clientVpcIpAddress) { this.clientVpcIpAddress = clientVpcIpAddress; } /** ** The virtual private cloud (VPC) of the client. *
* * @return* The virtual private cloud (VPC) of the client. *
*/ public String getClientVpcIpAddress() { return this.clientVpcIpAddress; } /** ** The virtual private cloud (VPC) of the client. *
* * @param clientVpcIpAddress ** The virtual private cloud (VPC) of the client. *
* @return Returns a reference to this object so that method calls can be chained together. */ public BrokerNodeInfo withClientVpcIpAddress(String clientVpcIpAddress) { setClientVpcIpAddress(clientVpcIpAddress); return this; } /** ** Information about the version of software currently deployed on the Apache Kafka brokers in the cluster. *
* * @param currentBrokerSoftwareInfo ** Information about the version of software currently deployed on the Apache Kafka brokers in the cluster. *
*/ public void setCurrentBrokerSoftwareInfo(BrokerSoftwareInfo currentBrokerSoftwareInfo) { this.currentBrokerSoftwareInfo = currentBrokerSoftwareInfo; } /** ** Information about the version of software currently deployed on the Apache Kafka brokers in the cluster. *
* * @return* Information about the version of software currently deployed on the Apache Kafka brokers in the cluster. *
*/ public BrokerSoftwareInfo getCurrentBrokerSoftwareInfo() { return this.currentBrokerSoftwareInfo; } /** ** Information about the version of software currently deployed on the Apache Kafka brokers in the cluster. *
* * @param currentBrokerSoftwareInfo ** Information about the version of software currently deployed on the Apache Kafka brokers in the cluster. *
* @return Returns a reference to this object so that method calls can be chained together. */ public BrokerNodeInfo withCurrentBrokerSoftwareInfo(BrokerSoftwareInfo currentBrokerSoftwareInfo) { setCurrentBrokerSoftwareInfo(currentBrokerSoftwareInfo); return this; } /** ** Endpoints for accessing the broker. *
* * @return* Endpoints for accessing the broker. *
*/ public java.util.List* Endpoints for accessing the broker. *
* * @param endpoints ** Endpoints for accessing the broker. *
*/ public void setEndpoints(java.util.Collection* Endpoints for accessing the broker. *
* ** NOTE: This method appends the values to the existing list (if any). Use * {@link #setEndpoints(java.util.Collection)} or {@link #withEndpoints(java.util.Collection)} if you want to * override the existing values. *
* * @param endpoints ** Endpoints for accessing the broker. *
* @return Returns a reference to this object so that method calls can be chained together. */ public BrokerNodeInfo withEndpoints(String... endpoints) { if (this.endpoints == null) { setEndpoints(new java.util.ArrayList* Endpoints for accessing the broker. *
* * @param endpoints ** Endpoints for accessing the broker. *
* @return Returns a reference to this object so that method calls can be chained together. */ public BrokerNodeInfo withEndpoints(java.util.Collection