com.pulumi.azurenative.compute.outputs.GalleryApplicationCustomActionParameterResponse 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.compute.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GalleryApplicationCustomActionParameterResponse {
/**
* @return The default value of the parameter. Only applies to string types
*
*/
private @Nullable String defaultValue;
/**
* @return A description to help users understand what this parameter means
*
*/
private @Nullable String description;
/**
* @return The name of the custom action. Must be unique within the Gallery Application Version.
*
*/
private String name;
/**
* @return Indicates whether this parameter must be passed when running the custom action.
*
*/
private @Nullable Boolean required;
/**
* @return Specifies the type of the custom action parameter. Possible values are: String, ConfigurationDataBlob or LogOutputBlob
*
*/
private @Nullable String type;
private GalleryApplicationCustomActionParameterResponse() {}
/**
* @return The default value of the parameter. Only applies to string types
*
*/
public Optional defaultValue() {
return Optional.ofNullable(this.defaultValue);
}
/**
* @return A description to help users understand what this parameter means
*
*/
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return The name of the custom action. Must be unique within the Gallery Application Version.
*
*/
public String name() {
return this.name;
}
/**
* @return Indicates whether this parameter must be passed when running the custom action.
*
*/
public Optional required() {
return Optional.ofNullable(this.required);
}
/**
* @return Specifies the type of the custom action parameter. Possible values are: String, ConfigurationDataBlob or LogOutputBlob
*
*/
public Optional type() {
return Optional.ofNullable(this.type);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GalleryApplicationCustomActionParameterResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String defaultValue;
private @Nullable String description;
private String name;
private @Nullable Boolean required;
private @Nullable String type;
public Builder() {}
public Builder(GalleryApplicationCustomActionParameterResponse defaults) {
Objects.requireNonNull(defaults);
this.defaultValue = defaults.defaultValue;
this.description = defaults.description;
this.name = defaults.name;
this.required = defaults.required;
this.type = defaults.type;
}
@CustomType.Setter
public Builder defaultValue(@Nullable String defaultValue) {
this.defaultValue = defaultValue;
return this;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GalleryApplicationCustomActionParameterResponse", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder required(@Nullable Boolean required) {
this.required = required;
return this;
}
@CustomType.Setter
public Builder type(@Nullable String type) {
this.type = type;
return this;
}
public GalleryApplicationCustomActionParameterResponse build() {
final var _resultValue = new GalleryApplicationCustomActionParameterResponse();
_resultValue.defaultValue = defaultValue;
_resultValue.description = description;
_resultValue.name = name;
_resultValue.required = required;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy