All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.kafka.model.RebootBrokerRequest Maven / Gradle / Ivy

/*
 * 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.kafka.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * Reboots a node.
 * 
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class RebootBrokerRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The list of broker IDs to be rebooted. The reboot-broker operation supports rebooting one broker at a time. *

*/ private java.util.List brokerIds; /** *

* The Amazon Resource Name (ARN) of the cluster to be updated. *

*/ private String clusterArn; /** *

* The list of broker IDs to be rebooted. The reboot-broker operation supports rebooting one broker at a time. *

* * @return

* The list of broker IDs to be rebooted. The reboot-broker operation supports rebooting one broker at a * time. *

*/ public java.util.List getBrokerIds() { return brokerIds; } /** *

* The list of broker IDs to be rebooted. The reboot-broker operation supports rebooting one broker at a time. *

* * @param brokerIds *

* The list of broker IDs to be rebooted. The reboot-broker operation supports rebooting one broker at a * time. *

*/ public void setBrokerIds(java.util.Collection brokerIds) { if (brokerIds == null) { this.brokerIds = null; return; } this.brokerIds = new java.util.ArrayList(brokerIds); } /** *

* The list of broker IDs to be rebooted. The reboot-broker operation supports rebooting one broker at a time. *

* *

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setBrokerIds(java.util.Collection)} or {@link #withBrokerIds(java.util.Collection)} if you want to * override the existing values. *

* * @param brokerIds *

* The list of broker IDs to be rebooted. The reboot-broker operation supports rebooting one broker at a * time. *

* @return Returns a reference to this object so that method calls can be chained together. */ public RebootBrokerRequest withBrokerIds(String... brokerIds) { if (this.brokerIds == null) { setBrokerIds(new java.util.ArrayList(brokerIds.length)); } for (String ele : brokerIds) { this.brokerIds.add(ele); } return this; } /** *

* The list of broker IDs to be rebooted. The reboot-broker operation supports rebooting one broker at a time. *

* * @param brokerIds *

* The list of broker IDs to be rebooted. The reboot-broker operation supports rebooting one broker at a * time. *

* @return Returns a reference to this object so that method calls can be chained together. */ public RebootBrokerRequest withBrokerIds(java.util.Collection brokerIds) { setBrokerIds(brokerIds); return this; } /** *

* The Amazon Resource Name (ARN) of the cluster to be updated. *

* * @param clusterArn *

* The Amazon Resource Name (ARN) of the cluster to be updated. *

*/ public void setClusterArn(String clusterArn) { this.clusterArn = clusterArn; } /** *

* The Amazon Resource Name (ARN) of the cluster to be updated. *

* * @return

* The Amazon Resource Name (ARN) of the cluster to be updated. *

*/ public String getClusterArn() { return this.clusterArn; } /** *

* The Amazon Resource Name (ARN) of the cluster to be updated. *

* * @param clusterArn *

* The Amazon Resource Name (ARN) of the cluster to be updated. *

* @return Returns a reference to this object so that method calls can be chained together. */ public RebootBrokerRequest withClusterArn(String clusterArn) { setClusterArn(clusterArn); 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 (getBrokerIds() != null) sb.append("BrokerIds: ").append(getBrokerIds()).append(","); if (getClusterArn() != null) sb.append("ClusterArn: ").append(getClusterArn()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RebootBrokerRequest == false) return false; RebootBrokerRequest other = (RebootBrokerRequest) obj; if (other.getBrokerIds() == null ^ this.getBrokerIds() == null) return false; if (other.getBrokerIds() != null && other.getBrokerIds().equals(this.getBrokerIds()) == false) return false; if (other.getClusterArn() == null ^ this.getClusterArn() == null) return false; if (other.getClusterArn() != null && other.getClusterArn().equals(this.getClusterArn()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBrokerIds() == null) ? 0 : getBrokerIds().hashCode()); hashCode = prime * hashCode + ((getClusterArn() == null) ? 0 : getClusterArn().hashCode()); return hashCode; } @Override public RebootBrokerRequest clone() { return (RebootBrokerRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy