com.pulumi.kubernetes.resource.v1alpha2.outputs.NamedResourcesAttributePatch 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.resource.v1alpha2.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.kubernetes.resource.v1alpha2.outputs.NamedResourcesIntSlicePatch;
import com.pulumi.kubernetes.resource.v1alpha2.outputs.NamedResourcesStringSlicePatch;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class NamedResourcesAttributePatch {
/**
* @return BoolValue is a true/false value.
*
*/
private @Nullable Boolean bool;
/**
* @return IntValue is a 64-bit integer.
*
*/
private @Nullable Integer int_;
/**
* @return IntSliceValue is an array of 64-bit integers.
*
*/
private @Nullable NamedResourcesIntSlicePatch intSlice;
/**
* @return Name is unique identifier among all resource instances managed by the driver on the node. It must be a DNS subdomain.
*
*/
private @Nullable String name;
/**
* @return QuantityValue is a quantity.
*
*/
private @Nullable String quantity;
/**
* @return StringValue is a string.
*
*/
private @Nullable String string;
/**
* @return StringSliceValue is an array of strings.
*
*/
private @Nullable NamedResourcesStringSlicePatch stringSlice;
/**
* @return VersionValue is a semantic version according to semver.org spec 2.0.0.
*
*/
private @Nullable String version;
private NamedResourcesAttributePatch() {}
/**
* @return BoolValue is a true/false value.
*
*/
public Optional bool() {
return Optional.ofNullable(this.bool);
}
/**
* @return IntValue is a 64-bit integer.
*
*/
public Optional int_() {
return Optional.ofNullable(this.int_);
}
/**
* @return IntSliceValue is an array of 64-bit integers.
*
*/
public Optional intSlice() {
return Optional.ofNullable(this.intSlice);
}
/**
* @return Name is unique identifier among all resource instances managed by the driver on the node. It must be a DNS subdomain.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return QuantityValue is a quantity.
*
*/
public Optional quantity() {
return Optional.ofNullable(this.quantity);
}
/**
* @return StringValue is a string.
*
*/
public Optional string() {
return Optional.ofNullable(this.string);
}
/**
* @return StringSliceValue is an array of strings.
*
*/
public Optional stringSlice() {
return Optional.ofNullable(this.stringSlice);
}
/**
* @return VersionValue is a semantic version according to semver.org spec 2.0.0.
*
*/
public Optional version() {
return Optional.ofNullable(this.version);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(NamedResourcesAttributePatch defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean bool;
private @Nullable Integer int_;
private @Nullable NamedResourcesIntSlicePatch intSlice;
private @Nullable String name;
private @Nullable String quantity;
private @Nullable String string;
private @Nullable NamedResourcesStringSlicePatch stringSlice;
private @Nullable String version;
public Builder() {}
public Builder(NamedResourcesAttributePatch defaults) {
Objects.requireNonNull(defaults);
this.bool = defaults.bool;
this.int_ = defaults.int_;
this.intSlice = defaults.intSlice;
this.name = defaults.name;
this.quantity = defaults.quantity;
this.string = defaults.string;
this.stringSlice = defaults.stringSlice;
this.version = defaults.version;
}
@CustomType.Setter
public Builder bool(@Nullable Boolean bool) {
this.bool = bool;
return this;
}
@CustomType.Setter("int")
public Builder int_(@Nullable Integer int_) {
this.int_ = int_;
return this;
}
@CustomType.Setter
public Builder intSlice(@Nullable NamedResourcesIntSlicePatch intSlice) {
this.intSlice = intSlice;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder quantity(@Nullable String quantity) {
this.quantity = quantity;
return this;
}
@CustomType.Setter
public Builder string(@Nullable String string) {
this.string = string;
return this;
}
@CustomType.Setter
public Builder stringSlice(@Nullable NamedResourcesStringSlicePatch stringSlice) {
this.stringSlice = stringSlice;
return this;
}
@CustomType.Setter
public Builder version(@Nullable String version) {
this.version = version;
return this;
}
public NamedResourcesAttributePatch build() {
final var _resultValue = new NamedResourcesAttributePatch();
_resultValue.bool = bool;
_resultValue.int_ = int_;
_resultValue.intSlice = intSlice;
_resultValue.name = name;
_resultValue.quantity = quantity;
_resultValue.string = string;
_resultValue.stringSlice = stringSlice;
_resultValue.version = version;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy