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

annotations.io.fabric8.kubernetes.api.model.base.StatusFluent Maven / Gradle / Ivy

There is a newer version: 0.0.54
Show newest version
package io.fabric8.kubernetes.api.model.base;

import java.util.HashMap;
import java.util.Map;
import io.fabric8.common.Nested;
import io.fabric8.common.Builder;
import io.fabric8.common.Fluent;
import io.fabric8.common.BaseFluent;
import io.fabric8.common.Visitable;

public class StatusFluent> extends BaseFluent implements Fluent{

     Status.ApiVersion apiVersion;     Integer code;     StatusDetailsBuilder details;     String kind;     String message;     ListMetaBuilder metadata;     String reason;     String status;     Map additionalProperties = new HashMap();

    public Status.ApiVersion getApiVersion(){
    return this.apiVersion;
    }
    public T withApiVersion( Status.ApiVersion apiVersion){
    this.apiVersion=apiVersion; return (T) this;
    }
    public Integer getCode(){
    return this.code;
    }
    public T withCode( Integer code){
    this.code=code; return (T) this;
    }
    public StatusDetails getDetails(){
    return this.details!=null?this.details.build():null;
    }
    public T withDetails( StatusDetails details){
    if (details!=null){ this.details= new StatusDetailsBuilder(details); _visitables.add(this.details);} return (T) this;
    }
    public DetailsNested withNewDetails(){
    return new DetailsNested();
    }
    public String getKind(){
    return this.kind;
    }
    public T withKind( String kind){
    this.kind=kind; return (T) this;
    }
    public String getMessage(){
    return this.message;
    }
    public T withMessage( String message){
    this.message=message; return (T) this;
    }
    public ListMeta getMetadata(){
    return this.metadata!=null?this.metadata.build():null;
    }
    public T withMetadata( ListMeta metadata){
    if (metadata!=null){ this.metadata= new ListMetaBuilder(metadata); _visitables.add(this.metadata);} return (T) this;
    }
    public MetadataNested withNewMetadata(){
    return new MetadataNested();
    }
    public T withNewMetadata( String resourceVersion,  String selfLink){
    return withMetadata(new ListMeta(resourceVersion, selfLink));
    }
    public String getReason(){
    return this.reason;
    }
    public T withReason( String reason){
    this.reason=reason; return (T) this;
    }
    public String getStatus(){
    return this.status;
    }
    public T withStatus( String status){
    this.status=status; return (T) this;
    }
    public T addToAdditionalProperties( String key,  Object value){
    if(key != null && value != null) {this.additionalProperties.put(key, value);} return (T)this;
    }
    public Map getAdditionalProperties(){
    return this.additionalProperties;
    }
    public T withAdditionalProperties( Map additionalProperties){
    this.additionalProperties.clear();if (additionalProperties != null) {this.additionalProperties.putAll(additionalProperties);} return (T) this;
    }

    public class DetailsNested extends StatusDetailsFluent> implements Nested{

        private final StatusDetailsBuilder builder = new StatusDetailsBuilder(this);
    
            public N and(){
            return (N) StatusFluent.this.withDetails(builder.build());
        }
            public N endDetails(){
            return and();
        }
    
}
    public class MetadataNested extends ListMetaFluent> implements Nested{

        private final ListMetaBuilder builder = new ListMetaBuilder(this);
    
            public N and(){
            return (N) StatusFluent.this.withMetadata(builder.build());
        }
            public N endMetadata(){
            return and();
        }
    
}


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy