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

io.dekorate.halkyon.model.Component Maven / Gradle / Ivy

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

import java.util.HashMap;
import java.util.Map;

import io.dekorate.deps.jackson.annotation.JsonIgnore;
import io.dekorate.deps.jackson.annotation.JsonInclude;
import io.dekorate.deps.jackson.annotation.JsonProperty;
import io.dekorate.deps.jackson.annotation.JsonPropertyOrder;
import io.dekorate.deps.jackson.databind.annotation.JsonDeserialize;
import io.dekorate.deps.kubernetes.api.model.Doneable;
import io.dekorate.deps.kubernetes.api.model.HasMetadata;
import io.dekorate.deps.kubernetes.api.model.ObjectMeta;

import io.sundr.builder.annotations.Buildable;
import io.sundr.builder.annotations.BuildableReference;
import io.sundr.builder.annotations.Inline;



                            
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"apiVersion",
"kind",
"metadata",
"spec",
"status"
})
@JsonDeserialize(using = io.dekorate.deps.jackson.databind.JsonDeserializer.None.class)
@Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = false, builderPackage = "io.dekorate.deps.kubernetes.api.builder", inline = @Inline(type = Doneable.class, prefix = "Doneable", value = "done"), refs = @BuildableReference(ObjectMeta.class))
public class Component implements HasMetadata {

/**
* (Required)
*/
@JsonProperty("apiVersion")
private String apiVersion = "halkyon.io/v1beta1";
/**
* (Required)
*/
@JsonProperty("kind")
private String kind = "Component";

/**
*
*/
@JsonProperty("metadata")
private ObjectMeta metadata;
/**
*
*/
@JsonProperty("spec")
private ComponentSpec spec;

@JsonProperty("status")
private ComponentStatus status;

/**
* No args constructor for use in serialization
*/
public Component() {
}

/**
* @param metadata
* @param apiVersion
* @param kind
* @param spec
*/
public Component(String apiVersion, String kind, ObjectMeta metadata, ComponentSpec spec, ComponentStatus status) {
this.apiVersion = apiVersion;
this.kind = kind;
this.metadata = metadata;
this.spec = spec;
this.status = status;
}

/**
* (Required)
*
* @return The apiVersion
*/
@JsonProperty("apiVersion")
public String getApiVersion() {
return apiVersion;
}

/**
* (Required)
*
* @param apiVersion The apiVersion
*/
@JsonProperty("apiVersion")
public void setApiVersion(String apiVersion) {
this.apiVersion = apiVersion;
}

/**
* (Required)
*
* @return The kind
*/
@JsonProperty("kind")
public String getKind() {
return kind;
}

/**
* (Required)
*
* @param kind The kind
*/
@JsonProperty("kind")
public void setKind(String kind) {
this.kind = kind;
}

/**
* @return The metadata
*/
@JsonProperty("metadata")
public ObjectMeta getMetadata() {
return metadata;
}

/**
* @param metadata The metadata
*/
@JsonProperty("metadata")
public void setMetadata(ObjectMeta metadata) {
this.metadata = metadata;
}

/**
* @return The spec
*/
@JsonProperty("spec")
public ComponentSpec getSpec() {
return spec;
}

/**
* @param spec The spec
*/
@JsonProperty("spec")
public void setSpec(ComponentSpec spec) {
this.spec = spec;
}

@JsonProperty("status")
public ComponentStatus getStatus() {
return status;
}

public void setStatus(ComponentStatus status) {
this.status = status;
}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy