com.pulumi.azurenative.batch.outputs.CertificateReferenceResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.azurenative.batch.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class CertificateReferenceResponse {
private String id;
/**
* @return The default value is currentUser. This property is applicable only for pools configured with Windows nodes (that is, created with cloudServiceConfiguration, or with virtualMachineConfiguration using a Windows image reference). For Linux compute nodes, the certificates are stored in a directory inside the task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the task to query for this location. For certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and certificates are placed in that directory.
*
*/
private @Nullable String storeLocation;
/**
* @return This property is applicable only for pools configured with Windows nodes (that is, created with cloudServiceConfiguration, or with virtualMachineConfiguration using a Windows image reference). Common store names include: My, Root, CA, Trust, Disallowed, TrustedPeople, TrustedPublisher, AuthRoot, AddressBook, but any custom store name can also be used. The default value is My.
*
*/
private @Nullable String storeName;
private @Nullable List visibility;
private CertificateReferenceResponse() {}
public String id() {
return this.id;
}
/**
* @return The default value is currentUser. This property is applicable only for pools configured with Windows nodes (that is, created with cloudServiceConfiguration, or with virtualMachineConfiguration using a Windows image reference). For Linux compute nodes, the certificates are stored in a directory inside the task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the task to query for this location. For certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and certificates are placed in that directory.
*
*/
public Optional storeLocation() {
return Optional.ofNullable(this.storeLocation);
}
/**
* @return This property is applicable only for pools configured with Windows nodes (that is, created with cloudServiceConfiguration, or with virtualMachineConfiguration using a Windows image reference). Common store names include: My, Root, CA, Trust, Disallowed, TrustedPeople, TrustedPublisher, AuthRoot, AddressBook, but any custom store name can also be used. The default value is My.
*
*/
public Optional storeName() {
return Optional.ofNullable(this.storeName);
}
public List visibility() {
return this.visibility == null ? List.of() : this.visibility;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(CertificateReferenceResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private @Nullable String storeLocation;
private @Nullable String storeName;
private @Nullable List visibility;
public Builder() {}
public Builder(CertificateReferenceResponse defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.storeLocation = defaults.storeLocation;
this.storeName = defaults.storeName;
this.visibility = defaults.visibility;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("CertificateReferenceResponse", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder storeLocation(@Nullable String storeLocation) {
this.storeLocation = storeLocation;
return this;
}
@CustomType.Setter
public Builder storeName(@Nullable String storeName) {
this.storeName = storeName;
return this;
}
@CustomType.Setter
public Builder visibility(@Nullable List visibility) {
this.visibility = visibility;
return this;
}
public Builder visibility(String... visibility) {
return visibility(List.of(visibility));
}
public CertificateReferenceResponse build() {
final var _resultValue = new CertificateReferenceResponse();
_resultValue.id = id;
_resultValue.storeLocation = storeLocation;
_resultValue.storeName = storeName;
_resultValue.visibility = visibility;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy