com.pulumi.azure.batch.outputs.GetPoolExtension 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.batch.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetPoolExtension {
/**
* @return Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.
*
*/
private Boolean autoUpgradeMinorVersion;
/**
* @return The name of the user account.
*
*/
private String name;
/**
* @return The extension can contain either `protected_settings` or `provision_after_extensions` or no protected settings at all.
*
*/
private String protectedSettings;
/**
* @return The collection of extension names. Collection of extension names after which this extension needs to be provisioned.
*
*/
private List provisionAfterExtensions;
/**
* @return The name of the extension handler publisher.The name of the extension handler publisher.
*
*/
private String publisher;
/**
* @return JSON formatted public settings for the extension.
*
*/
private String settingsJson;
/**
* @return The type of container configuration.
*
*/
private String type;
/**
* @return The version of script handler.
*
*/
private String typeHandlerVersion;
private GetPoolExtension() {}
/**
* @return Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.
*
*/
public Boolean autoUpgradeMinorVersion() {
return this.autoUpgradeMinorVersion;
}
/**
* @return The name of the user account.
*
*/
public String name() {
return this.name;
}
/**
* @return The extension can contain either `protected_settings` or `provision_after_extensions` or no protected settings at all.
*
*/
public String protectedSettings() {
return this.protectedSettings;
}
/**
* @return The collection of extension names. Collection of extension names after which this extension needs to be provisioned.
*
*/
public List provisionAfterExtensions() {
return this.provisionAfterExtensions;
}
/**
* @return The name of the extension handler publisher.The name of the extension handler publisher.
*
*/
public String publisher() {
return this.publisher;
}
/**
* @return JSON formatted public settings for the extension.
*
*/
public String settingsJson() {
return this.settingsJson;
}
/**
* @return The type of container configuration.
*
*/
public String type() {
return this.type;
}
/**
* @return The version of script handler.
*
*/
public String typeHandlerVersion() {
return this.typeHandlerVersion;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetPoolExtension defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Boolean autoUpgradeMinorVersion;
private String name;
private String protectedSettings;
private List provisionAfterExtensions;
private String publisher;
private String settingsJson;
private String type;
private String typeHandlerVersion;
public Builder() {}
public Builder(GetPoolExtension defaults) {
Objects.requireNonNull(defaults);
this.autoUpgradeMinorVersion = defaults.autoUpgradeMinorVersion;
this.name = defaults.name;
this.protectedSettings = defaults.protectedSettings;
this.provisionAfterExtensions = defaults.provisionAfterExtensions;
this.publisher = defaults.publisher;
this.settingsJson = defaults.settingsJson;
this.type = defaults.type;
this.typeHandlerVersion = defaults.typeHandlerVersion;
}
@CustomType.Setter
public Builder autoUpgradeMinorVersion(Boolean autoUpgradeMinorVersion) {
if (autoUpgradeMinorVersion == null) {
throw new MissingRequiredPropertyException("GetPoolExtension", "autoUpgradeMinorVersion");
}
this.autoUpgradeMinorVersion = autoUpgradeMinorVersion;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetPoolExtension", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder protectedSettings(String protectedSettings) {
if (protectedSettings == null) {
throw new MissingRequiredPropertyException("GetPoolExtension", "protectedSettings");
}
this.protectedSettings = protectedSettings;
return this;
}
@CustomType.Setter
public Builder provisionAfterExtensions(List provisionAfterExtensions) {
if (provisionAfterExtensions == null) {
throw new MissingRequiredPropertyException("GetPoolExtension", "provisionAfterExtensions");
}
this.provisionAfterExtensions = provisionAfterExtensions;
return this;
}
public Builder provisionAfterExtensions(String... provisionAfterExtensions) {
return provisionAfterExtensions(List.of(provisionAfterExtensions));
}
@CustomType.Setter
public Builder publisher(String publisher) {
if (publisher == null) {
throw new MissingRequiredPropertyException("GetPoolExtension", "publisher");
}
this.publisher = publisher;
return this;
}
@CustomType.Setter
public Builder settingsJson(String settingsJson) {
if (settingsJson == null) {
throw new MissingRequiredPropertyException("GetPoolExtension", "settingsJson");
}
this.settingsJson = settingsJson;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetPoolExtension", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder typeHandlerVersion(String typeHandlerVersion) {
if (typeHandlerVersion == null) {
throw new MissingRequiredPropertyException("GetPoolExtension", "typeHandlerVersion");
}
this.typeHandlerVersion = typeHandlerVersion;
return this;
}
public GetPoolExtension build() {
final var _resultValue = new GetPoolExtension();
_resultValue.autoUpgradeMinorVersion = autoUpgradeMinorVersion;
_resultValue.name = name;
_resultValue.protectedSettings = protectedSettings;
_resultValue.provisionAfterExtensions = provisionAfterExtensions;
_resultValue.publisher = publisher;
_resultValue.settingsJson = settingsJson;
_resultValue.type = type;
_resultValue.typeHandlerVersion = typeHandlerVersion;
return _resultValue;
}
}
}