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

com.pulumi.azurenative.providerhub.DefaultRolloutArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.providerhub;

import com.pulumi.azurenative.providerhub.inputs.DefaultRolloutPropertiesArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class DefaultRolloutArgs extends com.pulumi.resources.ResourceArgs {

    public static final DefaultRolloutArgs Empty = new DefaultRolloutArgs();

    /**
     * Properties of the rollout.
     * 
     */
    @Import(name="properties")
    private @Nullable Output properties;

    /**
     * @return Properties of the rollout.
     * 
     */
    public Optional> properties() {
        return Optional.ofNullable(this.properties);
    }

    /**
     * The name of the resource provider hosted within ProviderHub.
     * 
     */
    @Import(name="providerNamespace", required=true)
    private Output providerNamespace;

    /**
     * @return The name of the resource provider hosted within ProviderHub.
     * 
     */
    public Output providerNamespace() {
        return this.providerNamespace;
    }

    /**
     * The rollout name.
     * 
     */
    @Import(name="rolloutName")
    private @Nullable Output rolloutName;

    /**
     * @return The rollout name.
     * 
     */
    public Optional> rolloutName() {
        return Optional.ofNullable(this.rolloutName);
    }

    private DefaultRolloutArgs() {}

    private DefaultRolloutArgs(DefaultRolloutArgs $) {
        this.properties = $.properties;
        this.providerNamespace = $.providerNamespace;
        this.rolloutName = $.rolloutName;
    }

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

    public static final class Builder {
        private DefaultRolloutArgs $;

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

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

        /**
         * @param properties Properties of the rollout.
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties Properties of the rollout.
         * 
         * @return builder
         * 
         */
        public Builder properties(DefaultRolloutPropertiesArgs properties) {
            return properties(Output.of(properties));
        }

        /**
         * @param providerNamespace The name of the resource provider hosted within ProviderHub.
         * 
         * @return builder
         * 
         */
        public Builder providerNamespace(Output providerNamespace) {
            $.providerNamespace = providerNamespace;
            return this;
        }

        /**
         * @param providerNamespace The name of the resource provider hosted within ProviderHub.
         * 
         * @return builder
         * 
         */
        public Builder providerNamespace(String providerNamespace) {
            return providerNamespace(Output.of(providerNamespace));
        }

        /**
         * @param rolloutName The rollout name.
         * 
         * @return builder
         * 
         */
        public Builder rolloutName(@Nullable Output rolloutName) {
            $.rolloutName = rolloutName;
            return this;
        }

        /**
         * @param rolloutName The rollout name.
         * 
         * @return builder
         * 
         */
        public Builder rolloutName(String rolloutName) {
            return rolloutName(Output.of(rolloutName));
        }

        public DefaultRolloutArgs build() {
            if ($.providerNamespace == null) {
                throw new MissingRequiredPropertyException("DefaultRolloutArgs", "providerNamespace");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy