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

com.pulumi.azure.apimanagement.outputs.BackendCredentials Maven / Gradle / Ivy

// *** 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.apimanagement.outputs;

import com.pulumi.azure.apimanagement.outputs.BackendCredentialsAuthorization;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class BackendCredentials {
    /**
     * @return An `authorization` block as defined below.
     * 
     */
    private @Nullable BackendCredentialsAuthorization authorization;
    /**
     * @return A list of client certificate thumbprints to present to the backend host. The certificates must exist within the API Management Service.
     * 
     */
    private @Nullable List certificates;
    /**
     * @return A mapping of header parameters to pass to the backend host. The keys are the header names and the values are a comma separated string of header values. This is converted to a list before being passed to the API.
     * 
     */
    private @Nullable Map header;
    /**
     * @return A mapping of query parameters to pass to the backend host. The keys are the query names and the values are a comma separated string of query values. This is converted to a list before being passed to the API.
     * 
     */
    private @Nullable Map query;

    private BackendCredentials() {}
    /**
     * @return An `authorization` block as defined below.
     * 
     */
    public Optional authorization() {
        return Optional.ofNullable(this.authorization);
    }
    /**
     * @return A list of client certificate thumbprints to present to the backend host. The certificates must exist within the API Management Service.
     * 
     */
    public List certificates() {
        return this.certificates == null ? List.of() : this.certificates;
    }
    /**
     * @return A mapping of header parameters to pass to the backend host. The keys are the header names and the values are a comma separated string of header values. This is converted to a list before being passed to the API.
     * 
     */
    public Map header() {
        return this.header == null ? Map.of() : this.header;
    }
    /**
     * @return A mapping of query parameters to pass to the backend host. The keys are the query names and the values are a comma separated string of query values. This is converted to a list before being passed to the API.
     * 
     */
    public Map query() {
        return this.query == null ? Map.of() : this.query;
    }

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

    public static Builder builder(BackendCredentials defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable BackendCredentialsAuthorization authorization;
        private @Nullable List certificates;
        private @Nullable Map header;
        private @Nullable Map query;
        public Builder() {}
        public Builder(BackendCredentials defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.authorization = defaults.authorization;
    	      this.certificates = defaults.certificates;
    	      this.header = defaults.header;
    	      this.query = defaults.query;
        }

        @CustomType.Setter
        public Builder authorization(@Nullable BackendCredentialsAuthorization authorization) {

            this.authorization = authorization;
            return this;
        }
        @CustomType.Setter
        public Builder certificates(@Nullable List certificates) {

            this.certificates = certificates;
            return this;
        }
        public Builder certificates(String... certificates) {
            return certificates(List.of(certificates));
        }
        @CustomType.Setter
        public Builder header(@Nullable Map header) {

            this.header = header;
            return this;
        }
        @CustomType.Setter
        public Builder query(@Nullable Map query) {

            this.query = query;
            return this;
        }
        public BackendCredentials build() {
            final var _resultValue = new BackendCredentials();
            _resultValue.authorization = authorization;
            _resultValue.certificates = certificates;
            _resultValue.header = header;
            _resultValue.query = query;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy