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

io.dekorate.halkyon.config.CapabilityConfig Maven / Gradle / Ivy

There is a newer version: 2.0.0.beta2
Show newest version
package io.dekorate.halkyon.config;

import io.dekorate.project.Project;
import io.dekorate.kubernetes.config.ConfigKey;
import io.dekorate.kubernetes.config.Configuration;
import java.lang.Object;
import java.lang.String;
import java.util.Map;
import io.sundr.builder.annotations.Buildable;

@io.sundr.builder.annotations.Buildable(builderPackage = "io.dekorate.deps.kubernetes.api.builder") public class CapabilityConfig extends Configuration {

    private String category;
    private String type;
    private String name;
    private String version = "";
    private io.dekorate.halkyon.config.Parameter[] parameters = new io.dekorate.halkyon.config.Parameter[0];

    public CapabilityConfig() { 
    }


    public CapabilityConfig(Project project,Map attributes,String category,String type,String name,String version,io.dekorate.halkyon.config.Parameter[] parameters) { 
        super(project, attributes);
        this.category = category;
        this.type = type;
        this.name = name;
        this.version = version != null ? version : "";
        this.parameters = parameters != null ? parameters : new io.dekorate.halkyon.config.Parameter[0];
    }


    public String getCategory() {
        return this.category;
    }

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

    public String getName() {
        return this.name;
    }

    public String getVersion() {
        return this.version;
    }

    public io.dekorate.halkyon.config.Parameter[] getParameters() {
        return this.parameters;
    }

    public static CapabilityConfigBuilder newCapabilityConfigBuilder() {
        return new io.dekorate.halkyon.config.CapabilityConfigBuilder();
    }

    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        CapabilityConfig that = (CapabilityConfig) o;
        if (category != null ? !category.equals(that.category) :that.category != null) return false;
        if (type != null ? !type.equals(that.type) :that.type != null) return false;
        if (name != null ? !name.equals(that.name) :that.name != null) return false;
        if (version != null ? !version.equals(that.version) :that.version != null) return false;
        if (parameters != null ? !parameters.equals(that.parameters) :that.parameters != null) return false;
        return true;
    }

    public int hashCode() {
        return java.util.Objects.hash(category,  type,  name,  version,  parameters,  super.hashCode());
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy