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

com.pulumi.azurenative.containerregistry.outputs.CredentialsResponse Maven / Gradle / Ivy

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

import com.pulumi.azurenative.containerregistry.outputs.CustomRegistryCredentialsResponse;
import com.pulumi.azurenative.containerregistry.outputs.SourceRegistryCredentialsResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class CredentialsResponse {
    /**
     * @return Describes the credential parameters for accessing other custom registries. The key
     * for the dictionary item will be the registry login server (myregistry.azurecr.io) and
     * the value of the item will be the registry credentials for accessing the registry.
     * 
     */
    private @Nullable Map customRegistries;
    /**
     * @return Describes the credential parameters for accessing the source registry.
     * 
     */
    private @Nullable SourceRegistryCredentialsResponse sourceRegistry;

    private CredentialsResponse() {}
    /**
     * @return Describes the credential parameters for accessing other custom registries. The key
     * for the dictionary item will be the registry login server (myregistry.azurecr.io) and
     * the value of the item will be the registry credentials for accessing the registry.
     * 
     */
    public Map customRegistries() {
        return this.customRegistries == null ? Map.of() : this.customRegistries;
    }
    /**
     * @return Describes the credential parameters for accessing the source registry.
     * 
     */
    public Optional sourceRegistry() {
        return Optional.ofNullable(this.sourceRegistry);
    }

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

    public static Builder builder(CredentialsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Map customRegistries;
        private @Nullable SourceRegistryCredentialsResponse sourceRegistry;
        public Builder() {}
        public Builder(CredentialsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.customRegistries = defaults.customRegistries;
    	      this.sourceRegistry = defaults.sourceRegistry;
        }

        @CustomType.Setter
        public Builder customRegistries(@Nullable Map customRegistries) {

            this.customRegistries = customRegistries;
            return this;
        }
        @CustomType.Setter
        public Builder sourceRegistry(@Nullable SourceRegistryCredentialsResponse sourceRegistry) {

            this.sourceRegistry = sourceRegistry;
            return this;
        }
        public CredentialsResponse build() {
            final var _resultValue = new CredentialsResponse();
            _resultValue.customRegistries = customRegistries;
            _resultValue.sourceRegistry = sourceRegistry;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy