io.fabric8.kubernetes.api.model.StatusFluentImpl Maven / Gradle / Ivy
package io.fabric8.kubernetes.api.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.lang.StringBuilder;
import io.fabric8.kubernetes.api.builder.Nested;
import java.lang.String;
import java.lang.Integer;
import java.lang.StringBuffer;
import java.lang.Deprecated;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Long;
import java.lang.Object;
import java.lang.Boolean;
public class StatusFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements StatusFluent{
private String apiVersion;
private Integer code;
private StatusDetailsBuilder details;
private String kind;
private String message;
private ListMetaBuilder metadata;
private String reason;
private String status;
public StatusFluentImpl(){
}
public StatusFluentImpl(Status instance){
this.withApiVersion(instance.getApiVersion());
this.withCode(instance.getCode());
this.withDetails(instance.getDetails());
this.withKind(instance.getKind());
this.withMessage(instance.getMessage());
this.withMetadata(instance.getMetadata());
this.withReason(instance.getReason());
this.withStatus(instance.getStatus());
}
public String getApiVersion(){
return this.apiVersion;
}
public A withApiVersion(String apiVersion){
this.apiVersion=apiVersion; return (A) this;
}
public Boolean hasApiVersion(){
return this.apiVersion != null;
}
public A withNewApiVersion(String arg1){
return (A)withApiVersion(new String(arg1));
}
public A withNewApiVersion(StringBuilder arg1){
return (A)withApiVersion(new String(arg1));
}
public A withNewApiVersion(StringBuffer arg1){
return (A)withApiVersion(new String(arg1));
}
public Integer getCode(){
return this.code;
}
public A withCode(Integer code){
this.code=code; return (A) this;
}
public Boolean hasCode(){
return this.code != null;
}
/**
* This method has been deprecated, please use method buildDetails instead.
* @return The buildable object.
*/
@Deprecated public StatusDetails getDetails(){
return this.details!=null?this.details.build():null;
}
public StatusDetails buildDetails(){
return this.details!=null?this.details.build():null;
}
public A withDetails(StatusDetails details){
_visitables.get("details").remove(this.details);
if (details!=null){ this.details= new StatusDetailsBuilder(details); _visitables.get("details").add(this.details);} return (A) this;
}
public Boolean hasDetails(){
return this.details != null;
}
public StatusFluent.DetailsNested withNewDetails(){
return new DetailsNestedImpl();
}
public StatusFluent.DetailsNested withNewDetailsLike(StatusDetails item){
return new DetailsNestedImpl(item);
}
public StatusFluent.DetailsNested editDetails(){
return withNewDetailsLike(getDetails());
}
public StatusFluent.DetailsNested editOrNewDetails(){
return withNewDetailsLike(getDetails() != null ? getDetails(): new StatusDetailsBuilder().build());
}
public StatusFluent.DetailsNested editOrNewDetailsLike(StatusDetails item){
return withNewDetailsLike(getDetails() != null ? getDetails(): item);
}
public String getKind(){
return this.kind;
}
public A withKind(String kind){
this.kind=kind; return (A) this;
}
public Boolean hasKind(){
return this.kind != null;
}
public A withNewKind(String arg1){
return (A)withKind(new String(arg1));
}
public A withNewKind(StringBuilder arg1){
return (A)withKind(new String(arg1));
}
public A withNewKind(StringBuffer arg1){
return (A)withKind(new String(arg1));
}
public String getMessage(){
return this.message;
}
public A withMessage(String message){
this.message=message; return (A) this;
}
public Boolean hasMessage(){
return this.message != null;
}
public A withNewMessage(String arg1){
return (A)withMessage(new String(arg1));
}
public A withNewMessage(StringBuilder arg1){
return (A)withMessage(new String(arg1));
}
public A withNewMessage(StringBuffer arg1){
return (A)withMessage(new String(arg1));
}
/**
* This method has been deprecated, please use method buildMetadata instead.
* @return The buildable object.
*/
@Deprecated public ListMeta getMetadata(){
return this.metadata!=null?this.metadata.build():null;
}
public ListMeta buildMetadata(){
return this.metadata!=null?this.metadata.build():null;
}
public A withMetadata(ListMeta metadata){
_visitables.get("metadata").remove(this.metadata);
if (metadata!=null){ this.metadata= new ListMetaBuilder(metadata); _visitables.get("metadata").add(this.metadata);} return (A) this;
}
public Boolean hasMetadata(){
return this.metadata != null;
}
public A withNewMetadata(String _continue,Long remainingItemCount,String resourceVersion,String selfLink){
return (A)withMetadata(new ListMeta(_continue, remainingItemCount, resourceVersion, selfLink));
}
public StatusFluent.MetadataNested withNewMetadata(){
return new MetadataNestedImpl();
}
public StatusFluent.MetadataNested withNewMetadataLike(ListMeta item){
return new MetadataNestedImpl(item);
}
public StatusFluent.MetadataNested editMetadata(){
return withNewMetadataLike(getMetadata());
}
public StatusFluent.MetadataNested editOrNewMetadata(){
return withNewMetadataLike(getMetadata() != null ? getMetadata(): new ListMetaBuilder().build());
}
public StatusFluent.MetadataNested editOrNewMetadataLike(ListMeta item){
return withNewMetadataLike(getMetadata() != null ? getMetadata(): item);
}
public String getReason(){
return this.reason;
}
public A withReason(String reason){
this.reason=reason; return (A) this;
}
public Boolean hasReason(){
return this.reason != null;
}
public A withNewReason(String arg1){
return (A)withReason(new String(arg1));
}
public A withNewReason(StringBuilder arg1){
return (A)withReason(new String(arg1));
}
public A withNewReason(StringBuffer arg1){
return (A)withReason(new String(arg1));
}
public String getStatus(){
return this.status;
}
public A withStatus(String status){
this.status=status; return (A) this;
}
public Boolean hasStatus(){
return this.status != null;
}
public A withNewStatus(String arg1){
return (A)withStatus(new String(arg1));
}
public A withNewStatus(StringBuilder arg1){
return (A)withStatus(new String(arg1));
}
public A withNewStatus(StringBuffer arg1){
return (A)withStatus(new String(arg1));
}
public boolean equals(Object o){
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
StatusFluentImpl that = (StatusFluentImpl) o;
if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false;
if (code != null ? !code.equals(that.code) :that.code != null) return false;
if (details != null ? !details.equals(that.details) :that.details != null) return false;
if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false;
if (message != null ? !message.equals(that.message) :that.message != null) return false;
if (metadata != null ? !metadata.equals(that.metadata) :that.metadata != null) return false;
if (reason != null ? !reason.equals(that.reason) :that.reason != null) return false;
if (status != null ? !status.equals(that.status) :that.status != null) return false;
return true;
}
public class DetailsNestedImpl extends StatusDetailsFluentImpl> implements StatusFluent.DetailsNested,io.fabric8.kubernetes.api.builder.Nested{
private final StatusDetailsBuilder builder;
DetailsNestedImpl(StatusDetails item){
this.builder = new StatusDetailsBuilder(this, item);
}
DetailsNestedImpl(){
this.builder = new StatusDetailsBuilder(this);
}
public N and(){
return (N) StatusFluentImpl.this.withDetails(builder.build());
}
public N endDetails(){
return and();
}
}
public class MetadataNestedImpl extends ListMetaFluentImpl> implements StatusFluent.MetadataNested,io.fabric8.kubernetes.api.builder.Nested{
private final ListMetaBuilder builder;
MetadataNestedImpl(ListMeta item){
this.builder = new ListMetaBuilder(this, item);
}
MetadataNestedImpl(){
this.builder = new ListMetaBuilder(this);
}
public N and(){
return (N) StatusFluentImpl.this.withMetadata(builder.build());
}
public N endMetadata(){
return and();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy