com.pulumi.kubernetes.apps.v1beta2.outputs.ControllerRevision Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kubernetes Show documentation
Show all versions of kubernetes Show documentation
A Pulumi package for creating and managing Kubernetes resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.kubernetes.apps.v1beta2.outputs;
import com.google.gson.JsonElement;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.kubernetes.meta.v1.outputs.ObjectMeta;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ControllerRevision {
/**
* @return APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
*
*/
private @Nullable String apiVersion;
/**
* @return Data is the serialized representation of the state.
*
*/
private @Nullable JsonElement data;
/**
* @return Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
*
*/
private @Nullable String kind;
/**
* @return Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
*
*/
private @Nullable ObjectMeta metadata;
/**
* @return Revision indicates the revision of the state represented by Data.
*
*/
private Integer revision;
private ControllerRevision() {}
/**
* @return APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
*
*/
public Optional apiVersion() {
return Optional.ofNullable(this.apiVersion);
}
/**
* @return Data is the serialized representation of the state.
*
*/
public Optional data() {
return Optional.ofNullable(this.data);
}
/**
* @return Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
*
*/
public Optional kind() {
return Optional.ofNullable(this.kind);
}
/**
* @return Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
*
*/
public Optional metadata() {
return Optional.ofNullable(this.metadata);
}
/**
* @return Revision indicates the revision of the state represented by Data.
*
*/
public Integer revision() {
return this.revision;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ControllerRevision defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String apiVersion;
private @Nullable JsonElement data;
private @Nullable String kind;
private @Nullable ObjectMeta metadata;
private Integer revision;
public Builder() {}
public Builder(ControllerRevision defaults) {
Objects.requireNonNull(defaults);
this.apiVersion = defaults.apiVersion;
this.data = defaults.data;
this.kind = defaults.kind;
this.metadata = defaults.metadata;
this.revision = defaults.revision;
}
@CustomType.Setter
public Builder apiVersion(@Nullable String apiVersion) {
this.apiVersion = apiVersion;
return this;
}
@CustomType.Setter
public Builder data(@Nullable JsonElement data) {
this.data = data;
return this;
}
@CustomType.Setter
public Builder kind(@Nullable String kind) {
this.kind = kind;
return this;
}
@CustomType.Setter
public Builder metadata(@Nullable ObjectMeta metadata) {
this.metadata = metadata;
return this;
}
@CustomType.Setter
public Builder revision(Integer revision) {
if (revision == null) {
throw new MissingRequiredPropertyException("ControllerRevision", "revision");
}
this.revision = revision;
return this;
}
public ControllerRevision build() {
final var _resultValue = new ControllerRevision();
_resultValue.apiVersion = apiVersion;
_resultValue.data = data;
_resultValue.kind = kind;
_resultValue.metadata = metadata;
_resultValue.revision = revision;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy