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

com.pulumi.azure.apimanagement.outputs.ServiceHostnameConfigurationPortal 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.apimanagement.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ServiceHostnameConfigurationPortal {
    /**
     * @return The Base64 Encoded Certificate.
     * 
     */
    private @Nullable String certificate;
    /**
     * @return The password associated with the certificate provided above.
     * 
     * > **NOTE:** Either `key_vault_id` or `certificate` and `certificate_password` must be specified.
     * 
     */
    private @Nullable String certificatePassword;
    /**
     * @return The source of the certificate.
     * 
     */
    private @Nullable String certificateSource;
    /**
     * @return The status of the certificate.
     * 
     */
    private @Nullable String certificateStatus;
    /**
     * @return The expiration date of the certificate in RFC3339 format: `2000-01-02T03:04:05Z`.
     * 
     */
    private @Nullable String expiry;
    /**
     * @return The Hostname to use for the Management API.
     * 
     */
    private String hostName;
    /**
     * @return The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type `application/x-pkcs12`.
     * 
     * > **NOTE:** Setting this field requires the `identity` block to be specified, since this identity is used for to retrieve the Key Vault Certificate. Possible values are versioned or versionless secret ID. Auto-updating the Certificate from the Key Vault requires the Secret version isn't specified.
     * 
     */
    private @Nullable String keyVaultId;
    /**
     * @return Should Client Certificate Negotiation be enabled for this Hostname? Defaults to `false`.
     * 
     */
    private @Nullable Boolean negotiateClientCertificate;
    /**
     * @return System or User Assigned Managed identity clientId as generated by Azure AD, which has `GET` access to the keyVault containing the SSL certificate.
     * 
     * > **NOTE:** If a User Assigned Managed identity is specified for `ssl_keyvault_identity_client_id` then this identity must be associated to the `azure.apimanagement.Service` within an `identity` block.
     * 
     */
    private @Nullable String sslKeyvaultIdentityClientId;
    /**
     * @return The subject of the certificate.
     * 
     */
    private @Nullable String subject;
    /**
     * @return The thumbprint of the certificate.
     * 
     */
    private @Nullable String thumbprint;

    private ServiceHostnameConfigurationPortal() {}
    /**
     * @return The Base64 Encoded Certificate.
     * 
     */
    public Optional certificate() {
        return Optional.ofNullable(this.certificate);
    }
    /**
     * @return The password associated with the certificate provided above.
     * 
     * > **NOTE:** Either `key_vault_id` or `certificate` and `certificate_password` must be specified.
     * 
     */
    public Optional certificatePassword() {
        return Optional.ofNullable(this.certificatePassword);
    }
    /**
     * @return The source of the certificate.
     * 
     */
    public Optional certificateSource() {
        return Optional.ofNullable(this.certificateSource);
    }
    /**
     * @return The status of the certificate.
     * 
     */
    public Optional certificateStatus() {
        return Optional.ofNullable(this.certificateStatus);
    }
    /**
     * @return The expiration date of the certificate in RFC3339 format: `2000-01-02T03:04:05Z`.
     * 
     */
    public Optional expiry() {
        return Optional.ofNullable(this.expiry);
    }
    /**
     * @return The Hostname to use for the Management API.
     * 
     */
    public String hostName() {
        return this.hostName;
    }
    /**
     * @return The ID of the Key Vault Secret containing the SSL Certificate, which must be should be of the type `application/x-pkcs12`.
     * 
     * > **NOTE:** Setting this field requires the `identity` block to be specified, since this identity is used for to retrieve the Key Vault Certificate. Possible values are versioned or versionless secret ID. Auto-updating the Certificate from the Key Vault requires the Secret version isn't specified.
     * 
     */
    public Optional keyVaultId() {
        return Optional.ofNullable(this.keyVaultId);
    }
    /**
     * @return Should Client Certificate Negotiation be enabled for this Hostname? Defaults to `false`.
     * 
     */
    public Optional negotiateClientCertificate() {
        return Optional.ofNullable(this.negotiateClientCertificate);
    }
    /**
     * @return System or User Assigned Managed identity clientId as generated by Azure AD, which has `GET` access to the keyVault containing the SSL certificate.
     * 
     * > **NOTE:** If a User Assigned Managed identity is specified for `ssl_keyvault_identity_client_id` then this identity must be associated to the `azure.apimanagement.Service` within an `identity` block.
     * 
     */
    public Optional sslKeyvaultIdentityClientId() {
        return Optional.ofNullable(this.sslKeyvaultIdentityClientId);
    }
    /**
     * @return The subject of the certificate.
     * 
     */
    public Optional subject() {
        return Optional.ofNullable(this.subject);
    }
    /**
     * @return The thumbprint of the certificate.
     * 
     */
    public Optional thumbprint() {
        return Optional.ofNullable(this.thumbprint);
    }

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

    public static Builder builder(ServiceHostnameConfigurationPortal defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String certificate;
        private @Nullable String certificatePassword;
        private @Nullable String certificateSource;
        private @Nullable String certificateStatus;
        private @Nullable String expiry;
        private String hostName;
        private @Nullable String keyVaultId;
        private @Nullable Boolean negotiateClientCertificate;
        private @Nullable String sslKeyvaultIdentityClientId;
        private @Nullable String subject;
        private @Nullable String thumbprint;
        public Builder() {}
        public Builder(ServiceHostnameConfigurationPortal defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.certificate = defaults.certificate;
    	      this.certificatePassword = defaults.certificatePassword;
    	      this.certificateSource = defaults.certificateSource;
    	      this.certificateStatus = defaults.certificateStatus;
    	      this.expiry = defaults.expiry;
    	      this.hostName = defaults.hostName;
    	      this.keyVaultId = defaults.keyVaultId;
    	      this.negotiateClientCertificate = defaults.negotiateClientCertificate;
    	      this.sslKeyvaultIdentityClientId = defaults.sslKeyvaultIdentityClientId;
    	      this.subject = defaults.subject;
    	      this.thumbprint = defaults.thumbprint;
        }

        @CustomType.Setter
        public Builder certificate(@Nullable String certificate) {

            this.certificate = certificate;
            return this;
        }
        @CustomType.Setter
        public Builder certificatePassword(@Nullable String certificatePassword) {

            this.certificatePassword = certificatePassword;
            return this;
        }
        @CustomType.Setter
        public Builder certificateSource(@Nullable String certificateSource) {

            this.certificateSource = certificateSource;
            return this;
        }
        @CustomType.Setter
        public Builder certificateStatus(@Nullable String certificateStatus) {

            this.certificateStatus = certificateStatus;
            return this;
        }
        @CustomType.Setter
        public Builder expiry(@Nullable String expiry) {

            this.expiry = expiry;
            return this;
        }
        @CustomType.Setter
        public Builder hostName(String hostName) {
            if (hostName == null) {
              throw new MissingRequiredPropertyException("ServiceHostnameConfigurationPortal", "hostName");
            }
            this.hostName = hostName;
            return this;
        }
        @CustomType.Setter
        public Builder keyVaultId(@Nullable String keyVaultId) {

            this.keyVaultId = keyVaultId;
            return this;
        }
        @CustomType.Setter
        public Builder negotiateClientCertificate(@Nullable Boolean negotiateClientCertificate) {

            this.negotiateClientCertificate = negotiateClientCertificate;
            return this;
        }
        @CustomType.Setter
        public Builder sslKeyvaultIdentityClientId(@Nullable String sslKeyvaultIdentityClientId) {

            this.sslKeyvaultIdentityClientId = sslKeyvaultIdentityClientId;
            return this;
        }
        @CustomType.Setter
        public Builder subject(@Nullable String subject) {

            this.subject = subject;
            return this;
        }
        @CustomType.Setter
        public Builder thumbprint(@Nullable String thumbprint) {

            this.thumbprint = thumbprint;
            return this;
        }
        public ServiceHostnameConfigurationPortal build() {
            final var _resultValue = new ServiceHostnameConfigurationPortal();
            _resultValue.certificate = certificate;
            _resultValue.certificatePassword = certificatePassword;
            _resultValue.certificateSource = certificateSource;
            _resultValue.certificateStatus = certificateStatus;
            _resultValue.expiry = expiry;
            _resultValue.hostName = hostName;
            _resultValue.keyVaultId = keyVaultId;
            _resultValue.negotiateClientCertificate = negotiateClientCertificate;
            _resultValue.sslKeyvaultIdentityClientId = sslKeyvaultIdentityClientId;
            _resultValue.subject = subject;
            _resultValue.thumbprint = thumbprint;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy