com.pulumi.kubernetes.autoscaling.v2.outputs.CrossVersionObjectReferencePatch Maven / Gradle / Ivy
// *** 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.autoscaling.v2.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class CrossVersionObjectReferencePatch {
/**
* @return apiVersion is the API version of the referent
*
*/
private @Nullable String apiVersion;
/**
* @return kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
*
*/
private @Nullable String kind;
/**
* @return name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
*
*/
private @Nullable String name;
private CrossVersionObjectReferencePatch() {}
/**
* @return apiVersion is the API version of the referent
*
*/
public Optional apiVersion() {
return Optional.ofNullable(this.apiVersion);
}
/**
* @return kind is the kind of the referent; 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 name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(CrossVersionObjectReferencePatch defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String apiVersion;
private @Nullable String kind;
private @Nullable String name;
public Builder() {}
public Builder(CrossVersionObjectReferencePatch defaults) {
Objects.requireNonNull(defaults);
this.apiVersion = defaults.apiVersion;
this.kind = defaults.kind;
this.name = defaults.name;
}
@CustomType.Setter
public Builder apiVersion(@Nullable String apiVersion) {
this.apiVersion = apiVersion;
return this;
}
@CustomType.Setter
public Builder kind(@Nullable String kind) {
this.kind = kind;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
public CrossVersionObjectReferencePatch build() {
final var o = new CrossVersionObjectReferencePatch();
o.apiVersion = apiVersion;
o.kind = kind;
o.name = name;
return o;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy