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

com.pulumi.azurenative.containerregistry.CacheRuleArgs 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.containerregistry;

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

    public static final CacheRuleArgs Empty = new CacheRuleArgs();

    /**
     * The name of the cache rule.
     * 
     */
    @Import(name="cacheRuleName")
    private @Nullable Output cacheRuleName;

    /**
     * @return The name of the cache rule.
     * 
     */
    public Optional> cacheRuleName() {
        return Optional.ofNullable(this.cacheRuleName);
    }

    /**
     * The ARM resource ID of the credential store which is associated with the cache rule.
     * 
     */
    @Import(name="credentialSetResourceId")
    private @Nullable Output credentialSetResourceId;

    /**
     * @return The ARM resource ID of the credential store which is associated with the cache rule.
     * 
     */
    public Optional> credentialSetResourceId() {
        return Optional.ofNullable(this.credentialSetResourceId);
    }

    /**
     * The name of the container registry.
     * 
     */
    @Import(name="registryName", required=true)
    private Output registryName;

    /**
     * @return The name of the container registry.
     * 
     */
    public Output registryName() {
        return this.registryName;
    }

    /**
     * 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;
    }

    /**
     * Source repository pulled from upstream.
     * 
     */
    @Import(name="sourceRepository")
    private @Nullable Output sourceRepository;

    /**
     * @return Source repository pulled from upstream.
     * 
     */
    public Optional> sourceRepository() {
        return Optional.ofNullable(this.sourceRepository);
    }

    /**
     * Target repository specified in docker pull command.
     * Eg: docker pull myregistry.azurecr.io/{targetRepository}:{tag}
     * 
     */
    @Import(name="targetRepository")
    private @Nullable Output targetRepository;

    /**
     * @return Target repository specified in docker pull command.
     * Eg: docker pull myregistry.azurecr.io/{targetRepository}:{tag}
     * 
     */
    public Optional> targetRepository() {
        return Optional.ofNullable(this.targetRepository);
    }

    private CacheRuleArgs() {}

    private CacheRuleArgs(CacheRuleArgs $) {
        this.cacheRuleName = $.cacheRuleName;
        this.credentialSetResourceId = $.credentialSetResourceId;
        this.registryName = $.registryName;
        this.resourceGroupName = $.resourceGroupName;
        this.sourceRepository = $.sourceRepository;
        this.targetRepository = $.targetRepository;
    }

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

    public static final class Builder {
        private CacheRuleArgs $;

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

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

        /**
         * @param cacheRuleName The name of the cache rule.
         * 
         * @return builder
         * 
         */
        public Builder cacheRuleName(@Nullable Output cacheRuleName) {
            $.cacheRuleName = cacheRuleName;
            return this;
        }

        /**
         * @param cacheRuleName The name of the cache rule.
         * 
         * @return builder
         * 
         */
        public Builder cacheRuleName(String cacheRuleName) {
            return cacheRuleName(Output.of(cacheRuleName));
        }

        /**
         * @param credentialSetResourceId The ARM resource ID of the credential store which is associated with the cache rule.
         * 
         * @return builder
         * 
         */
        public Builder credentialSetResourceId(@Nullable Output credentialSetResourceId) {
            $.credentialSetResourceId = credentialSetResourceId;
            return this;
        }

        /**
         * @param credentialSetResourceId The ARM resource ID of the credential store which is associated with the cache rule.
         * 
         * @return builder
         * 
         */
        public Builder credentialSetResourceId(String credentialSetResourceId) {
            return credentialSetResourceId(Output.of(credentialSetResourceId));
        }

        /**
         * @param registryName The name of the container registry.
         * 
         * @return builder
         * 
         */
        public Builder registryName(Output registryName) {
            $.registryName = registryName;
            return this;
        }

        /**
         * @param registryName The name of the container registry.
         * 
         * @return builder
         * 
         */
        public Builder registryName(String registryName) {
            return registryName(Output.of(registryName));
        }

        /**
         * @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 sourceRepository Source repository pulled from upstream.
         * 
         * @return builder
         * 
         */
        public Builder sourceRepository(@Nullable Output sourceRepository) {
            $.sourceRepository = sourceRepository;
            return this;
        }

        /**
         * @param sourceRepository Source repository pulled from upstream.
         * 
         * @return builder
         * 
         */
        public Builder sourceRepository(String sourceRepository) {
            return sourceRepository(Output.of(sourceRepository));
        }

        /**
         * @param targetRepository Target repository specified in docker pull command.
         * Eg: docker pull myregistry.azurecr.io/{targetRepository}:{tag}
         * 
         * @return builder
         * 
         */
        public Builder targetRepository(@Nullable Output targetRepository) {
            $.targetRepository = targetRepository;
            return this;
        }

        /**
         * @param targetRepository Target repository specified in docker pull command.
         * Eg: docker pull myregistry.azurecr.io/{targetRepository}:{tag}
         * 
         * @return builder
         * 
         */
        public Builder targetRepository(String targetRepository) {
            return targetRepository(Output.of(targetRepository));
        }

        public CacheRuleArgs build() {
            if ($.registryName == null) {
                throw new MissingRequiredPropertyException("CacheRuleArgs", "registryName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("CacheRuleArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy