All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.kubernetes.apiextensions.v1beta1.inputs.CustomResourceValidationPatchArgs Maven / Gradle / Ivy

There is a newer version: 4.19.0-alpha.1730750641
Show newest version
// *** 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.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.kubernetes.apiextensions.v1beta1.inputs.JSONSchemaPropsPatchArgs;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * CustomResourceValidation is a list of validation methods for CustomResources.
 * 
 */
public final class CustomResourceValidationPatchArgs extends com.pulumi.resources.ResourceArgs {

    public static final CustomResourceValidationPatchArgs Empty = new CustomResourceValidationPatchArgs();

    /**
     * openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning.
     * 
     */
    @Import(name="openAPIV3Schema")
    private @Nullable Output openAPIV3Schema;

    /**
     * @return openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning.
     * 
     */
    public Optional> openAPIV3Schema() {
        return Optional.ofNullable(this.openAPIV3Schema);
    }

    private CustomResourceValidationPatchArgs() {}

    private CustomResourceValidationPatchArgs(CustomResourceValidationPatchArgs $) {
        this.openAPIV3Schema = $.openAPIV3Schema;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(CustomResourceValidationPatchArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private CustomResourceValidationPatchArgs $;

        public Builder() {
            $ = new CustomResourceValidationPatchArgs();
        }

        public Builder(CustomResourceValidationPatchArgs defaults) {
            $ = new CustomResourceValidationPatchArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param openAPIV3Schema openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning.
         * 
         * @return builder
         * 
         */
        public Builder openAPIV3Schema(@Nullable Output openAPIV3Schema) {
            $.openAPIV3Schema = openAPIV3Schema;
            return this;
        }

        /**
         * @param openAPIV3Schema openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning.
         * 
         * @return builder
         * 
         */
        public Builder openAPIV3Schema(JSONSchemaPropsPatchArgs openAPIV3Schema) {
            return openAPIV3Schema(Output.of(openAPIV3Schema));
        }

        public CustomResourceValidationPatchArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy