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

com.pulumi.kubernetes.apiextensions.v1.inputs.CustomResourceSubresourcesPatchArgs 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.v1.inputs;

import com.google.gson.JsonElement;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.kubernetes.apiextensions.v1.inputs.CustomResourceSubresourceScalePatchArgs;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * CustomResourceSubresources defines the status and scale subresources for CustomResources.
 * 
 */
public final class CustomResourceSubresourcesPatchArgs extends com.pulumi.resources.ResourceArgs {

    public static final CustomResourceSubresourcesPatchArgs Empty = new CustomResourceSubresourcesPatchArgs();

    /**
     * scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object.
     * 
     */
    @Import(name="scale")
    private @Nullable Output scale;

    /**
     * @return scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object.
     * 
     */
    public Optional> scale() {
        return Optional.ofNullable(this.scale);
    }

    /**
     * status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object.
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object.
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    private CustomResourceSubresourcesPatchArgs() {}

    private CustomResourceSubresourcesPatchArgs(CustomResourceSubresourcesPatchArgs $) {
        this.scale = $.scale;
        this.status = $.status;
    }

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

    public static final class Builder {
        private CustomResourceSubresourcesPatchArgs $;

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

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

        /**
         * @param scale scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object.
         * 
         * @return builder
         * 
         */
        public Builder scale(@Nullable Output scale) {
            $.scale = scale;
            return this;
        }

        /**
         * @param scale scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object.
         * 
         * @return builder
         * 
         */
        public Builder scale(CustomResourceSubresourceScalePatchArgs scale) {
            return scale(Output.of(scale));
        }

        /**
         * @param status status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object.
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object.
         * 
         * @return builder
         * 
         */
        public Builder status(JsonElement status) {
            return status(Output.of(status));
        }

        public CustomResourceSubresourcesPatchArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy