com.pulumi.kubernetes.apiextensions.v1beta1.outputs.CustomResourceValidation 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.apiextensions.v1beta1.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.kubernetes.apiextensions.v1beta1.outputs.JSONSchemaProps;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class CustomResourceValidation {
/**
* @return openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning.
*
*/
private @Nullable JSONSchemaProps openAPIV3Schema;
private CustomResourceValidation() {}
/**
* @return openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning.
*
*/
public Optional openAPIV3Schema() {
return Optional.ofNullable(this.openAPIV3Schema);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(CustomResourceValidation defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable JSONSchemaProps openAPIV3Schema;
public Builder() {}
public Builder(CustomResourceValidation defaults) {
Objects.requireNonNull(defaults);
this.openAPIV3Schema = defaults.openAPIV3Schema;
}
@CustomType.Setter
public Builder openAPIV3Schema(@Nullable JSONSchemaProps openAPIV3Schema) {
this.openAPIV3Schema = openAPIV3Schema;
return this;
}
public CustomResourceValidation build() {
final var _resultValue = new CustomResourceValidation();
_resultValue.openAPIV3Schema = openAPIV3Schema;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy