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

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

@CustomType
public final class VirtualMachineOsProfileWindowsConfigWinrm {
    /**
     * @return The ID of the Key Vault Secret which contains the encrypted Certificate which should be installed on the Virtual Machine. This certificate must also be specified in the `vault_certificates` block within the `os_profile_secrets` block.
     * 
     * &gt; **NOTE:** This can be sourced from the `secret_id` field on the `azure.keyvault.Certificate` resource.
     * 
     */
    private @Nullable String certificateUrl;
    /**
     * @return Specifies the protocol of listener. Possible values are `HTTP` or `HTTPS`.
     * 
     */
    private String protocol;

    private VirtualMachineOsProfileWindowsConfigWinrm() {}
    /**
     * @return The ID of the Key Vault Secret which contains the encrypted Certificate which should be installed on the Virtual Machine. This certificate must also be specified in the `vault_certificates` block within the `os_profile_secrets` block.
     * 
     * &gt; **NOTE:** This can be sourced from the `secret_id` field on the `azure.keyvault.Certificate` resource.
     * 
     */
    public Optional<String> certificateUrl() {
        return Optional.ofNullable(this.certificateUrl);
    }
    /**
     * @return Specifies the protocol of listener. Possible values are `HTTP` or `HTTPS`.
     * 
     */
    public String protocol() {
        return this.protocol;
    }

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

    public static Builder builder(VirtualMachineOsProfileWindowsConfigWinrm defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String certificateUrl;
        private String protocol;
        public Builder() {}
        public Builder(VirtualMachineOsProfileWindowsConfigWinrm defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.certificateUrl = defaults.certificateUrl;
    	      this.protocol = defaults.protocol;
        }

        @CustomType.Setter
        public Builder certificateUrl(@Nullable String certificateUrl) {
            this.certificateUrl = certificateUrl;
            return this;
        }
        @CustomType.Setter
        public Builder protocol(String protocol) {
            this.protocol = Objects.requireNonNull(protocol);
            return this;
        }
        public VirtualMachineOsProfileWindowsConfigWinrm build() {
            final var o = new VirtualMachineOsProfileWindowsConfigWinrm();
            o.certificateUrl = certificateUrl;
            o.protocol = protocol;
            return o;
        }
    }
}
