Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
package io.kubernetes.client.openapi.models;

import java.lang.SuppressWarnings;
import io.kubernetes.client.fluent.BaseFluent;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;

/**
* Generated
*/
@SuppressWarnings("unchecked")
public class AbstractOpenApiSchemaFluent<A extends AbstractOpenApiSchemaFluent<A>> extends BaseFluent<A>{
public AbstractOpenApiSchemaFluent() {
}

public AbstractOpenApiSchemaFluent(AbstractOpenApiSchema instance) {
this.copyInstance(instance);
}
private Boolean isNullable;
private String schemaType;

protected void copyInstance(AbstractOpenApiSchema instance) {
if (instance != null) {
this.withSchemaType(instance.getSchemaType());
}
}

public Boolean getIsNullable() {
return this.isNullable;
}

public A withIsNullable(Boolean isNullable) {
this.isNullable = isNullable;
return (A) this;
}

public boolean hasIsNullable() {
return this.isNullable != null;
}

public String getSchemaType() {
return this.schemaType;
}

public A withSchemaType(String schemaType) {
this.schemaType = schemaType;
return (A) this;
}

public boolean hasSchemaType() {
return this.schemaType != null;
}

public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
AbstractOpenApiSchemaFluent that = (AbstractOpenApiSchemaFluent) o;
if (!java.util.Objects.equals(isNullable, that.isNullable)) return false;
if (!java.util.Objects.equals(schemaType, that.schemaType)) return false;
return true;
}

public int hashCode() {
return java.util.Objects.hash(isNullable, schemaType, super.hashCode());
}

public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (isNullable != null) { sb.append("isNullable:"); sb.append(isNullable + ","); }
if (schemaType != null) { sb.append("schemaType:"); sb.append(schemaType); }
sb.append("}");
return sb.toString();
}

public A withIsNullable() {
return withIsNullable(true);
}


}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public V1ContainerStatusBuilder(V1ContainerStatus instance) {
public V1ContainerStatus build() {
V1ContainerStatus buildable = new V1ContainerStatus();
buildable.setAllocatedResources(fluent.getAllocatedResources());
buildable.setAllocatedResourcesStatus(fluent.buildAllocatedResourcesStatus());
buildable.setContainerID(fluent.getContainerID());
buildable.setImage(fluent.getImage());
buildable.setImageID(fluent.getImageID());
Expand All @@ -34,6 +35,7 @@ public V1ContainerStatus build() {
buildable.setRestartCount(fluent.getRestartCount());
buildable.setStarted(fluent.getStarted());
buildable.setState(fluent.buildState());
buildable.setUser(fluent.buildUser());
buildable.setVolumeMounts(fluent.buildVolumeMounts());
return buildable;
}
Expand Down
Loading