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

com.pulumi.azure.appplatform.inputs.SpringCloudConfigurationServiceState Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.appplatform.inputs;

import com.pulumi.azure.appplatform.inputs.SpringCloudConfigurationServiceRepositoryArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SpringCloudConfigurationServiceState Empty = new SpringCloudConfigurationServiceState();

    /**
     * The generation of the Spring Cloud Configuration Service. Possible values are `Gen1` and `Gen2`.
     * 
     */
    @Import(name="generation")
    private @Nullable Output generation;

    /**
     * @return The generation of the Spring Cloud Configuration Service. Possible values are `Gen1` and `Gen2`.
     * 
     */
    public Optional> generation() {
        return Optional.ofNullable(this.generation);
    }

    /**
     * The name which should be used for this Spring Cloud Configuration Service. The only possible value is `default`. Changing this forces a new Spring Cloud Configuration Service to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name which should be used for this Spring Cloud Configuration Service. The only possible value is `default`. Changing this forces a new Spring Cloud Configuration Service to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Specifies how often to check repository updates. Minimum value is 0.
     * 
     */
    @Import(name="refreshIntervalInSeconds")
    private @Nullable Output refreshIntervalInSeconds;

    /**
     * @return Specifies how often to check repository updates. Minimum value is 0.
     * 
     */
    public Optional> refreshIntervalInSeconds() {
        return Optional.ofNullable(this.refreshIntervalInSeconds);
    }

    /**
     * One or more `repository` blocks as defined below.
     * 
     */
    @Import(name="repositories")
    private @Nullable Output> repositories;

    /**
     * @return One or more `repository` blocks as defined below.
     * 
     */
    public Optional>> repositories() {
        return Optional.ofNullable(this.repositories);
    }

    /**
     * The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud Configuration Service to be created.
     * 
     */
    @Import(name="springCloudServiceId")
    private @Nullable Output springCloudServiceId;

    /**
     * @return The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud Configuration Service to be created.
     * 
     */
    public Optional> springCloudServiceId() {
        return Optional.ofNullable(this.springCloudServiceId);
    }

    private SpringCloudConfigurationServiceState() {}

    private SpringCloudConfigurationServiceState(SpringCloudConfigurationServiceState $) {
        this.generation = $.generation;
        this.name = $.name;
        this.refreshIntervalInSeconds = $.refreshIntervalInSeconds;
        this.repositories = $.repositories;
        this.springCloudServiceId = $.springCloudServiceId;
    }

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

    public static final class Builder {
        private SpringCloudConfigurationServiceState $;

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

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

        /**
         * @param generation The generation of the Spring Cloud Configuration Service. Possible values are `Gen1` and `Gen2`.
         * 
         * @return builder
         * 
         */
        public Builder generation(@Nullable Output generation) {
            $.generation = generation;
            return this;
        }

        /**
         * @param generation The generation of the Spring Cloud Configuration Service. Possible values are `Gen1` and `Gen2`.
         * 
         * @return builder
         * 
         */
        public Builder generation(String generation) {
            return generation(Output.of(generation));
        }

        /**
         * @param name The name which should be used for this Spring Cloud Configuration Service. The only possible value is `default`. Changing this forces a new Spring Cloud Configuration Service to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name which should be used for this Spring Cloud Configuration Service. The only possible value is `default`. Changing this forces a new Spring Cloud Configuration Service to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param refreshIntervalInSeconds Specifies how often to check repository updates. Minimum value is 0.
         * 
         * @return builder
         * 
         */
        public Builder refreshIntervalInSeconds(@Nullable Output refreshIntervalInSeconds) {
            $.refreshIntervalInSeconds = refreshIntervalInSeconds;
            return this;
        }

        /**
         * @param refreshIntervalInSeconds Specifies how often to check repository updates. Minimum value is 0.
         * 
         * @return builder
         * 
         */
        public Builder refreshIntervalInSeconds(Integer refreshIntervalInSeconds) {
            return refreshIntervalInSeconds(Output.of(refreshIntervalInSeconds));
        }

        /**
         * @param repositories One or more `repository` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder repositories(@Nullable Output> repositories) {
            $.repositories = repositories;
            return this;
        }

        /**
         * @param repositories One or more `repository` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder repositories(List repositories) {
            return repositories(Output.of(repositories));
        }

        /**
         * @param repositories One or more `repository` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder repositories(SpringCloudConfigurationServiceRepositoryArgs... repositories) {
            return repositories(List.of(repositories));
        }

        /**
         * @param springCloudServiceId The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud Configuration Service to be created.
         * 
         * @return builder
         * 
         */
        public Builder springCloudServiceId(@Nullable Output springCloudServiceId) {
            $.springCloudServiceId = springCloudServiceId;
            return this;
        }

        /**
         * @param springCloudServiceId The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud Configuration Service to be created.
         * 
         * @return builder
         * 
         */
        public Builder springCloudServiceId(String springCloudServiceId) {
            return springCloudServiceId(Output.of(springCloudServiceId));
        }

        public SpringCloudConfigurationServiceState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy