com.pulumi.azurenative.app.outputs.PreBuildStepResponse 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.app.outputs;
import com.pulumi.azurenative.app.outputs.HttpGetResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class PreBuildStepResponse {
/**
* @return Description of the pre-build step.
*
*/
private @Nullable String description;
/**
* @return Http get request to send before the build.
*
*/
private @Nullable HttpGetResponse httpGet;
/**
* @return List of custom commands to run.
*
*/
private @Nullable List scripts;
private PreBuildStepResponse() {}
/**
* @return Description of the pre-build step.
*
*/
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return Http get request to send before the build.
*
*/
public Optional httpGet() {
return Optional.ofNullable(this.httpGet);
}
/**
* @return List of custom commands to run.
*
*/
public List scripts() {
return this.scripts == null ? List.of() : this.scripts;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PreBuildStepResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String description;
private @Nullable HttpGetResponse httpGet;
private @Nullable List scripts;
public Builder() {}
public Builder(PreBuildStepResponse defaults) {
Objects.requireNonNull(defaults);
this.description = defaults.description;
this.httpGet = defaults.httpGet;
this.scripts = defaults.scripts;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder httpGet(@Nullable HttpGetResponse httpGet) {
this.httpGet = httpGet;
return this;
}
@CustomType.Setter
public Builder scripts(@Nullable List scripts) {
this.scripts = scripts;
return this;
}
public Builder scripts(String... scripts) {
return scripts(List.of(scripts));
}
public PreBuildStepResponse build() {
final var _resultValue = new PreBuildStepResponse();
_resultValue.description = description;
_resultValue.httpGet = httpGet;
_resultValue.scripts = scripts;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy