com.pulumi.azure.compute.inputs.LinuxVirtualMachineScaleSetSecretArgs 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.inputs;
import com.pulumi.azure.compute.inputs.LinuxVirtualMachineScaleSetSecretCertificateArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
public final class LinuxVirtualMachineScaleSetSecretArgs extends com.pulumi.resources.ResourceArgs {
public static final LinuxVirtualMachineScaleSetSecretArgs Empty = new LinuxVirtualMachineScaleSetSecretArgs();
/**
* One or more `certificate` blocks as defined above.
*
*/
@Import(name="certificates", required=true)
private Output> certificates;
/**
* @return One or more `certificate` blocks as defined above.
*
*/
public Output> certificates() {
return this.certificates;
}
/**
* The ID of the Key Vault from which all Secrets should be sourced.
*
*/
@Import(name="keyVaultId", required=true)
private Output keyVaultId;
/**
* @return The ID of the Key Vault from which all Secrets should be sourced.
*
*/
public Output keyVaultId() {
return this.keyVaultId;
}
private LinuxVirtualMachineScaleSetSecretArgs() {}
private LinuxVirtualMachineScaleSetSecretArgs(LinuxVirtualMachineScaleSetSecretArgs $) {
this.certificates = $.certificates;
this.keyVaultId = $.keyVaultId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(LinuxVirtualMachineScaleSetSecretArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private LinuxVirtualMachineScaleSetSecretArgs $;
public Builder() {
$ = new LinuxVirtualMachineScaleSetSecretArgs();
}
public Builder(LinuxVirtualMachineScaleSetSecretArgs defaults) {
$ = new LinuxVirtualMachineScaleSetSecretArgs(Objects.requireNonNull(defaults));
}
/**
* @param certificates One or more `certificate` blocks as defined above.
*
* @return builder
*
*/
public Builder certificates(Output> certificates) {
$.certificates = certificates;
return this;
}
/**
* @param certificates One or more `certificate` blocks as defined above.
*
* @return builder
*
*/
public Builder certificates(List certificates) {
return certificates(Output.of(certificates));
}
/**
* @param certificates One or more `certificate` blocks as defined above.
*
* @return builder
*
*/
public Builder certificates(LinuxVirtualMachineScaleSetSecretCertificateArgs... certificates) {
return certificates(List.of(certificates));
}
/**
* @param keyVaultId The ID of the Key Vault from which all Secrets should be sourced.
*
* @return builder
*
*/
public Builder keyVaultId(Output keyVaultId) {
$.keyVaultId = keyVaultId;
return this;
}
/**
* @param keyVaultId The ID of the Key Vault from which all Secrets should be sourced.
*
* @return builder
*
*/
public Builder keyVaultId(String keyVaultId) {
return keyVaultId(Output.of(keyVaultId));
}
public LinuxVirtualMachineScaleSetSecretArgs build() {
if ($.certificates == null) {
throw new MissingRequiredPropertyException("LinuxVirtualMachineScaleSetSecretArgs", "certificates");
}
if ($.keyVaultId == null) {
throw new MissingRequiredPropertyException("LinuxVirtualMachineScaleSetSecretArgs", "keyVaultId");
}
return $;
}
}
}