org.cloudfoundry.routing.v1.tcproutes.CreateTcpRoutesResponse Maven / Gradle / Ivy
package org.cloudfoundry.routing.v1.tcproutes;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import java.util.Objects;
import org.immutables.value.Generated;
/**
* The response payload for the Create TCP Routes operation
*/
@Generated(from = "_CreateTcpRoutesResponse", generator = "Immutables")
@SuppressWarnings({"all"})
@javax.annotation.Generated("org.immutables.processor.ProxyProcessor")
public final class CreateTcpRoutesResponse
extends org.cloudfoundry.routing.v1.tcproutes._CreateTcpRoutesResponse {
private CreateTcpRoutesResponse(CreateTcpRoutesResponse.Builder builder) {
}
/**
* This instance is equal to all instances of {@code CreateTcpRoutesResponse} that have equal attribute values.
* @return {@code true} if {@code this} is equal to {@code another} instance
*/
@Override
public boolean equals(Object another) {
if (this == another) return true;
return another instanceof CreateTcpRoutesResponse
&& equalTo(0, (CreateTcpRoutesResponse) another);
}
@SuppressWarnings("MethodCanBeStatic")
private boolean equalTo(int synthetic, CreateTcpRoutesResponse another) {
return true;
}
/**
* Returns a constant hash code value.
* @return hashCode value
*/
@Override
public int hashCode() {
return 2051476654;
}
/**
* Prints the immutable value {@code CreateTcpRoutesResponse}.
* @return A string representation of the value
*/
@Override
public String toString() {
return "CreateTcpRoutesResponse{}";
}
/**
* Utility type used to correctly read immutable object from JSON representation.
* @deprecated Do not use this type directly, it exists only for the Jackson-binding infrastructure
*/
@Generated(from = "_CreateTcpRoutesResponse", generator = "Immutables")
@Deprecated
@JsonDeserialize
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.NONE)
static final class Json extends org.cloudfoundry.routing.v1.tcproutes._CreateTcpRoutesResponse {
}
/**
* @param json A JSON-bindable data structure
* @return An immutable value type
* @deprecated Do not use this method directly, it exists only for the Jackson-binding infrastructure
*/
@Deprecated
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
static CreateTcpRoutesResponse fromJson(Json json) {
CreateTcpRoutesResponse.Builder builder = CreateTcpRoutesResponse.builder();
return builder.build();
}
/**
* Creates a builder for {@link CreateTcpRoutesResponse CreateTcpRoutesResponse}.
*
* CreateTcpRoutesResponse.builder()
* .build();
*
* @return A new CreateTcpRoutesResponse builder
*/
public static CreateTcpRoutesResponse.Builder builder() {
return new CreateTcpRoutesResponse.Builder();
}
/**
* Builds instances of type {@link CreateTcpRoutesResponse CreateTcpRoutesResponse}.
* Initialize attributes and then invoke the {@link #build()} method to create an
* immutable instance.
* {@code Builder} is not thread-safe and generally should not be stored in a field or collection,
* but instead used immediately to create instances.
*/
@Generated(from = "_CreateTcpRoutesResponse", generator = "Immutables")
public static final class Builder {
private Builder() {
}
/**
* Fill a builder with attribute values from the provided {@code CreateTcpRoutesResponse} instance.
* Regular attribute values will be replaced with those from the given instance.
* Absent optional values will not replace present values.
* @param instance The instance from which to copy values
* @return {@code this} builder for use in a chained invocation
*/
public final Builder from(CreateTcpRoutesResponse instance) {
return from((_CreateTcpRoutesResponse) instance);
}
/**
* Copy abstract value type {@code _CreateTcpRoutesResponse} instance into builder.
* @param instance The instance from which to copy values
* @return {@code this} builder for use in a chained invocation
*/
final Builder from(_CreateTcpRoutesResponse instance) {
Objects.requireNonNull(instance, "instance");
return this;
}
/**
* Builds a new {@link CreateTcpRoutesResponse CreateTcpRoutesResponse}.
* @return An immutable instance of CreateTcpRoutesResponse
* @throws java.lang.IllegalStateException if any required attributes are missing
*/
public CreateTcpRoutesResponse build() {
return new CreateTcpRoutesResponse(this);
}
}
}