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

io.fabric8.knative.internal.pkg.apis.duck.v1.CloudEventAttributesFluentImpl Maven / Gradle / Ivy

package io.fabric8.knative.internal.pkg.apis.duck.v1;

import java.lang.Deprecated;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;

public class CloudEventAttributesFluentImpl> extends io.fabric8.kubernetes.api.builder.BaseFluent implements io.fabric8.knative.internal.pkg.apis.duck.v1.CloudEventAttributesFluent {

    private java.lang.String source;
    private java.lang.String type;

    public CloudEventAttributesFluentImpl() {
    }

    public CloudEventAttributesFluentImpl(io.fabric8.knative.internal.pkg.apis.duck.v1.CloudEventAttributes instance) {
        this.withSource(instance.getSource()); 
        this.withType(instance.getType()); 
    }

    public java.lang.String getSource() {
        return this.source;
    }

    public A withSource(java.lang.String source) {
        this.source=source; return (A) this;
    }

    public java.lang.Boolean hasSource() {
        return this.source != null;
    }

    
    @java.lang.Deprecated
        
    /**
     * Method is deprecated. use withSource instead.
     */
        public A withNewSource(java.lang.String arg0) {
        return (A)withSource(new String(arg0));
    }

    public java.lang.String getType() {
        return this.type;
    }

    public A withType(java.lang.String type) {
        this.type=type; return (A) this;
    }

    public java.lang.Boolean hasType() {
        return this.type != null;
    }

    
    @java.lang.Deprecated
        
    /**
     * Method is deprecated. use withType instead.
     */
        public A withNewType(java.lang.String arg0) {
        return (A)withType(new String(arg0));
    }

    public boolean equals(java.lang.Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CloudEventAttributesFluentImpl that = (CloudEventAttributesFluentImpl) o;
        if (source != null ? !source.equals(that.source) :that.source != null) return false;
        if (type != null ? !type.equals(that.type) :that.type != null) return false;
        return true;
    }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy