com.pulumi.kubernetes.meta.v1.outputs.StatusCausePatch 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.meta.v1.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 StatusCausePatch {
/**
* @return The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.
*
* Examples:
* "name" - the field "name" on the current resource
* "items[0].name" - the field "name" on the first array entry in "items"
*
*/
private @Nullable String field;
/**
* @return A human-readable description of the cause of the error. This field may be presented as-is to a reader.
*
*/
private @Nullable String message;
/**
* @return A machine-readable description of the cause of the error. If this value is empty there is no information available.
*
*/
private @Nullable String reason;
private StatusCausePatch() {}
/**
* @return The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.
*
* Examples:
* "name" - the field "name" on the current resource
* "items[0].name" - the field "name" on the first array entry in "items"
*
*/
public Optional field() {
return Optional.ofNullable(this.field);
}
/**
* @return A human-readable description of the cause of the error. This field may be presented as-is to a reader.
*
*/
public Optional message() {
return Optional.ofNullable(this.message);
}
/**
* @return A machine-readable description of the cause of the error. If this value is empty there is no information available.
*
*/
public Optional reason() {
return Optional.ofNullable(this.reason);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(StatusCausePatch defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String field;
private @Nullable String message;
private @Nullable String reason;
public Builder() {}
public Builder(StatusCausePatch defaults) {
Objects.requireNonNull(defaults);
this.field = defaults.field;
this.message = defaults.message;
this.reason = defaults.reason;
}
@CustomType.Setter
public Builder field(@Nullable String field) {
this.field = field;
return this;
}
@CustomType.Setter
public Builder message(@Nullable String message) {
this.message = message;
return this;
}
@CustomType.Setter
public Builder reason(@Nullable String reason) {
this.reason = reason;
return this;
}
public StatusCausePatch build() {
final var _resultValue = new StatusCausePatch();
_resultValue.field = field;
_resultValue.message = message;
_resultValue.reason = reason;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy