com.pulumi.azure.compute.outputs.VirtualMachineOsProfileWindowsConfigWinrm Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
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.
// *** 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 com.pulumi.exceptions.MissingRequiredPropertyException;
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.
*
* > **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.
*
* > **NOTE:** This can be sourced from the `secret_id` field on the `azure.keyvault.Certificate` resource.
*
*/
public Optional 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) {
if (protocol == null) {
throw new MissingRequiredPropertyException("VirtualMachineOsProfileWindowsConfigWinrm", "protocol");
}
this.protocol = protocol;
return this;
}
public VirtualMachineOsProfileWindowsConfigWinrm build() {
final var _resultValue = new VirtualMachineOsProfileWindowsConfigWinrm();
_resultValue.certificateUrl = certificateUrl;
_resultValue.protocol = protocol;
return _resultValue;
}
}
}