com.pulumi.kubernetes.resource.v1alpha3.outputs.DeviceAttribute 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.v1alpha3.outputs;
import com.pulumi.core.annotations.CustomType;
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 DeviceAttribute {
/**
* @return BoolValue is a true/false value.
*
*/
private @Nullable Boolean bool;
/**
* @return IntValue is a number.
*
*/
private @Nullable Integer int_;
/**
* @return StringValue is a string. Must not be longer than 64 characters.
*
*/
private @Nullable String string;
/**
* @return VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.
*
*/
private @Nullable String version;
private DeviceAttribute() {}
/**
* @return BoolValue is a true/false value.
*
*/
public Optional bool() {
return Optional.ofNullable(this.bool);
}
/**
* @return IntValue is a number.
*
*/
public Optional int_() {
return Optional.ofNullable(this.int_);
}
/**
* @return StringValue is a string. Must not be longer than 64 characters.
*
*/
public Optional string() {
return Optional.ofNullable(this.string);
}
/**
* @return VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.
*
*/
public Optional version() {
return Optional.ofNullable(this.version);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DeviceAttribute defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean bool;
private @Nullable Integer int_;
private @Nullable String string;
private @Nullable String version;
public Builder() {}
public Builder(DeviceAttribute defaults) {
Objects.requireNonNull(defaults);
this.bool = defaults.bool;
this.int_ = defaults.int_;
this.string = defaults.string;
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 string(@Nullable String string) {
this.string = string;
return this;
}
@CustomType.Setter
public Builder version(@Nullable String version) {
this.version = version;
return this;
}
public DeviceAttribute build() {
final var _resultValue = new DeviceAttribute();
_resultValue.bool = bool;
_resultValue.int_ = int_;
_resultValue.string = string;
_resultValue.version = version;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy