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

io.fabric8.kubernetes.api.model.EventFluent Maven / Gradle / Ivy

The newest version!
package io.fabric8.kubernetes.api.model;

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

public class EventFluent> extends BaseFluent implements Fluent{

     Event.ApiVersion apiVersion;     Integer count;     String firstTimestamp;     VisitableBuilder involvedObject;     String kind;     String lastTimestamp;     String message;     VisitableBuilder metadata;     String reason;     EventSource source;     Map additionalProperties = new HashMap();

    public Event.ApiVersion getApiVersion(){
    return this.apiVersion;
    }
    public T withApiVersion( Event.ApiVersion apiVersion){
    this.apiVersion=apiVersion; return (T) this;
    }
    public Integer getCount(){
    return this.count;
    }
    public T withCount( Integer count){
    this.count=count; return (T) this;
    }
    public String getFirstTimestamp(){
    return this.firstTimestamp;
    }
    public T withFirstTimestamp( String firstTimestamp){
    this.firstTimestamp=firstTimestamp; return (T) this;
    }
    public ObjectReference getInvolvedObject(){
    return this.involvedObject!=null?this.involvedObject.build():null;
    }
    public T withInvolvedObject( ObjectReference involvedObject){
    if (involvedObject!=null){ this.involvedObject= new ObjectReferenceBuilder(involvedObject); _visitables.add(this.involvedObject);} return (T) this;
    }
    public InvolvedObjectNested withNewInvolvedObject(){
    return new InvolvedObjectNested();
    }
    public InvolvedObjectNested withNewInvolvedObjectLike( ObjectReference item){
    return new InvolvedObjectNested(item);
    }
    public InvolvedObjectNested editInvolvedObject(){
    return withNewInvolvedObjectLike(getInvolvedObject());
    }
    public String getKind(){
    return this.kind;
    }
    public T withKind( String kind){
    this.kind=kind; return (T) this;
    }
    public String getLastTimestamp(){
    return this.lastTimestamp;
    }
    public T withLastTimestamp( String lastTimestamp){
    this.lastTimestamp=lastTimestamp; return (T) this;
    }
    public String getMessage(){
    return this.message;
    }
    public T withMessage( String message){
    this.message=message; return (T) this;
    }
    public ObjectMeta getMetadata(){
    return this.metadata!=null?this.metadata.build():null;
    }
    public T withMetadata( ObjectMeta metadata){
    if (metadata!=null){ this.metadata= new ObjectMetaBuilder(metadata); _visitables.add(this.metadata);} return (T) this;
    }
    public MetadataNested withNewMetadata(){
    return new MetadataNested();
    }
    public MetadataNested withNewMetadataLike( ObjectMeta item){
    return new MetadataNested(item);
    }
    public MetadataNested editMetadata(){
    return withNewMetadataLike(getMetadata());
    }
    public String getReason(){
    return this.reason;
    }
    public T withReason( String reason){
    this.reason=reason; return (T) this;
    }
    public EventSource getSource(){
    return this.source;
    }
    public T withSource( EventSource source){
    this.source=source; 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 InvolvedObjectNested extends ObjectReferenceFluent> implements Nested{

        private final ObjectReferenceBuilder builder;
    
             InvolvedObjectNested ( ObjectReference item){
        this.builder = new ObjectReferenceBuilder(this, item);
        }
             InvolvedObjectNested (){
        this.builder = new ObjectReferenceBuilder(this);
        }
    
            public N endInvolvedObject(){
            return and();
        }
            public N and(){
            return (N) EventFluent.this.withInvolvedObject(builder.build());
        }
    
}
    public class MetadataNested extends ObjectMetaFluent> implements Nested{

        private final ObjectMetaBuilder builder;
    
             MetadataNested (){
        this.builder = new ObjectMetaBuilder(this);
        }
             MetadataNested ( ObjectMeta item){
        this.builder = new ObjectMetaBuilder(this, item);
        }
    
            public N endMetadata(){
            return and();
        }
            public N and(){
            return (N) EventFluent.this.withMetadata(builder.build());
        }
    
}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy