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

io.streamthoughts.jikkou.kafka.models.V1KafkaConsumerGroupStatus Maven / Gradle / Ivy

The newest version!
/*
 * SPDX-License-Identifier: Apache-2.0
 * Copyright (c) The original authors
 *
 * Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
 */
package io.streamthoughts.jikkou.kafka.models;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import io.streamthoughts.jikkou.core.annotation.Reflectable;
import java.beans.ConstructorProperties;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.processing.Generated;
import lombok.Builder;
import lombok.Singular;
import lombok.With;
import lombok.extern.jackson.Jacksonized;


/**
 * V1KafkaConsumerGroupStatus
 * 

* * */ @JsonInclude(JsonInclude.Include.NON_NULL) @Builder(builderMethodName = "builder", toBuilder = true, setterPrefix = "with") @With @JsonPropertyOrder({ "state", "members", "offsets", "coordinator" }) @Jacksonized @Reflectable @Generated("jsonschema2pojo") public class V1KafkaConsumerGroupStatus { /** * The consumer group state. * */ @JsonProperty("state") @JsonPropertyDescription("The consumer group state.") private String state; /** * List of consumer group instance. * */ @JsonProperty("members") @JsonPropertyDescription("List of consumer group instance.") @Singular private List members = new ArrayList(); /** * List of topic-partitions offsets. * */ @JsonProperty("offsets") @JsonPropertyDescription("List of topic-partitions offsets.") @Singular private List offsets = new ArrayList(); /** * V1KafkaNode *

* Information about a Kafka node. * */ @JsonProperty("coordinator") @JsonPropertyDescription("Information about a Kafka node.") private V1KafkaNode coordinator; /** * No args constructor for use in serialization * */ public V1KafkaConsumerGroupStatus() { } /** * * @param coordinator * @param offsets * @param members * @param state */ @ConstructorProperties({ "state", "members", "offsets", "coordinator" }) public V1KafkaConsumerGroupStatus(String state, List members, List offsets, V1KafkaNode coordinator) { super(); this.state = state; this.members = members; this.offsets = offsets; this.coordinator = coordinator; } /** * The consumer group state. * */ @JsonProperty("state") public String getState() { return state; } /** * List of consumer group instance. * */ @JsonProperty("members") public List getMembers() { return members; } /** * List of topic-partitions offsets. * */ @JsonProperty("offsets") public List getOffsets() { return offsets; } /** * V1KafkaNode *

* Information about a Kafka node. * */ @JsonProperty("coordinator") public V1KafkaNode getCoordinator() { return coordinator; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(V1KafkaConsumerGroupStatus.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('['); sb.append("state"); sb.append('='); sb.append(((this.state == null)?"":this.state)); sb.append(','); sb.append("members"); sb.append('='); sb.append(((this.members == null)?"":this.members)); sb.append(','); sb.append("offsets"); sb.append('='); sb.append(((this.offsets == null)?"":this.offsets)); sb.append(','); sb.append("coordinator"); sb.append('='); sb.append(((this.coordinator == null)?"":this.coordinator)); sb.append(','); if (sb.charAt((sb.length()- 1)) == ',') { sb.setCharAt((sb.length()- 1), ']'); } else { sb.append(']'); } return sb.toString(); } @Override public int hashCode() { int result = 1; result = ((result* 31)+((this.state == null)? 0 :this.state.hashCode())); result = ((result* 31)+((this.coordinator == null)? 0 :this.coordinator.hashCode())); result = ((result* 31)+((this.offsets == null)? 0 :this.offsets.hashCode())); result = ((result* 31)+((this.members == null)? 0 :this.members.hashCode())); return result; } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof V1KafkaConsumerGroupStatus) == false) { return false; } V1KafkaConsumerGroupStatus rhs = ((V1KafkaConsumerGroupStatus) other); return (((((this.state == rhs.state)||((this.state!= null)&&this.state.equals(rhs.state)))&&((this.coordinator == rhs.coordinator)||((this.coordinator!= null)&&this.coordinator.equals(rhs.coordinator))))&&((this.offsets == rhs.offsets)||((this.offsets!= null)&&this.offsets.equals(rhs.offsets))))&&((this.members == rhs.members)||((this.members!= null)&&this.members.equals(rhs.members)))); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy