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

com.pulumi.azurenative.apimanagement.CacheArgs 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.apimanagement;

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 CacheArgs extends com.pulumi.resources.ResourceArgs {

    public static final CacheArgs Empty = new CacheArgs();

    /**
     * Identifier of the Cache entity. Cache identifier (should be either 'default' or valid Azure region identifier).
     * 
     */
    @Import(name="cacheId")
    private @Nullable Output cacheId;

    /**
     * @return Identifier of the Cache entity. Cache identifier (should be either 'default' or valid Azure region identifier).
     * 
     */
    public Optional> cacheId() {
        return Optional.ofNullable(this.cacheId);
    }

    /**
     * Runtime connection string to cache
     * 
     */
    @Import(name="connectionString", required=true)
    private Output connectionString;

    /**
     * @return Runtime connection string to cache
     * 
     */
    public Output connectionString() {
        return this.connectionString;
    }

    /**
     * Cache description
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Cache description
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Original uri of entity in external system cache points to
     * 
     */
    @Import(name="resourceId")
    private @Nullable Output resourceId;

    /**
     * @return Original uri of entity in external system cache points to
     * 
     */
    public Optional> resourceId() {
        return Optional.ofNullable(this.resourceId);
    }

    /**
     * The name of the API Management service.
     * 
     */
    @Import(name="serviceName", required=true)
    private Output serviceName;

    /**
     * @return The name of the API Management service.
     * 
     */
    public Output serviceName() {
        return this.serviceName;
    }

    /**
     * Location identifier to use cache from (should be either 'default' or valid Azure region identifier)
     * 
     */
    @Import(name="useFromLocation", required=true)
    private Output useFromLocation;

    /**
     * @return Location identifier to use cache from (should be either 'default' or valid Azure region identifier)
     * 
     */
    public Output useFromLocation() {
        return this.useFromLocation;
    }

    private CacheArgs() {}

    private CacheArgs(CacheArgs $) {
        this.cacheId = $.cacheId;
        this.connectionString = $.connectionString;
        this.description = $.description;
        this.resourceGroupName = $.resourceGroupName;
        this.resourceId = $.resourceId;
        this.serviceName = $.serviceName;
        this.useFromLocation = $.useFromLocation;
    }

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

    public static final class Builder {
        private CacheArgs $;

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

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

        /**
         * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or valid Azure region identifier).
         * 
         * @return builder
         * 
         */
        public Builder cacheId(@Nullable Output cacheId) {
            $.cacheId = cacheId;
            return this;
        }

        /**
         * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or valid Azure region identifier).
         * 
         * @return builder
         * 
         */
        public Builder cacheId(String cacheId) {
            return cacheId(Output.of(cacheId));
        }

        /**
         * @param connectionString Runtime connection string to cache
         * 
         * @return builder
         * 
         */
        public Builder connectionString(Output connectionString) {
            $.connectionString = connectionString;
            return this;
        }

        /**
         * @param connectionString Runtime connection string to cache
         * 
         * @return builder
         * 
         */
        public Builder connectionString(String connectionString) {
            return connectionString(Output.of(connectionString));
        }

        /**
         * @param description Cache description
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Cache description
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param resourceId Original uri of entity in external system cache points to
         * 
         * @return builder
         * 
         */
        public Builder resourceId(@Nullable Output resourceId) {
            $.resourceId = resourceId;
            return this;
        }

        /**
         * @param resourceId Original uri of entity in external system cache points to
         * 
         * @return builder
         * 
         */
        public Builder resourceId(String resourceId) {
            return resourceId(Output.of(resourceId));
        }

        /**
         * @param serviceName The name of the API Management service.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(Output serviceName) {
            $.serviceName = serviceName;
            return this;
        }

        /**
         * @param serviceName The name of the API Management service.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(String serviceName) {
            return serviceName(Output.of(serviceName));
        }

        /**
         * @param useFromLocation Location identifier to use cache from (should be either 'default' or valid Azure region identifier)
         * 
         * @return builder
         * 
         */
        public Builder useFromLocation(Output useFromLocation) {
            $.useFromLocation = useFromLocation;
            return this;
        }

        /**
         * @param useFromLocation Location identifier to use cache from (should be either 'default' or valid Azure region identifier)
         * 
         * @return builder
         * 
         */
        public Builder useFromLocation(String useFromLocation) {
            return useFromLocation(Output.of(useFromLocation));
        }

        public CacheArgs build() {
            if ($.connectionString == null) {
                throw new MissingRequiredPropertyException("CacheArgs", "connectionString");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("CacheArgs", "resourceGroupName");
            }
            if ($.serviceName == null) {
                throw new MissingRequiredPropertyException("CacheArgs", "serviceName");
            }
            if ($.useFromLocation == null) {
                throw new MissingRequiredPropertyException("CacheArgs", "useFromLocation");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy