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

com.pulumi.azurenative.containerregistry.inputs.ExportPolicyArgs Maven / Gradle / Ivy

There is a newer version: 2.82.0
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.azurenative.containerregistry.inputs;

import com.pulumi.azurenative.containerregistry.enums.ExportPolicyStatus;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The export policy for a container registry.
 * 
 */
public final class ExportPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final ExportPolicyArgs Empty = new ExportPolicyArgs();

    /**
     * The value that indicates whether the policy is enabled or not.
     * 
     */
    @Import(name="status")
    private @Nullable Output> status;

    /**
     * @return The value that indicates whether the policy is enabled or not.
     * 
     */
    public Optional>> status() {
        return Optional.ofNullable(this.status);
    }

    private ExportPolicyArgs() {}

    private ExportPolicyArgs(ExportPolicyArgs $) {
        this.status = $.status;
    }

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

    public static final class Builder {
        private ExportPolicyArgs $;

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

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

        /**
         * @param status The value that indicates whether the policy is enabled or not.
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output> status) {
            $.status = status;
            return this;
        }

        /**
         * @param status The value that indicates whether the policy is enabled or not.
         * 
         * @return builder
         * 
         */
        public Builder status(Either status) {
            return status(Output.of(status));
        }

        /**
         * @param status The value that indicates whether the policy is enabled or not.
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Either.ofLeft(status));
        }

        /**
         * @param status The value that indicates whether the policy is enabled or not.
         * 
         * @return builder
         * 
         */
        public Builder status(ExportPolicyStatus status) {
            return status(Either.ofRight(status));
        }

        public ExportPolicyArgs build() {
            $.status = Codegen.stringProp("status").left(ExportPolicyStatus.class).output().arg($.status).def("enabled").getNullable();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy