
com.pulumi.azurenative.resources.outputs.DependencyResponse 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.resources.outputs;
import com.pulumi.azurenative.resources.outputs.BasicDependencyResponse;
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 DependencyResponse {
/**
* @return The list of dependencies.
*
*/
private @Nullable List dependsOn;
/**
* @return The ID of the dependency.
*
*/
private @Nullable String id;
/**
* @return The dependency resource name.
*
*/
private @Nullable String resourceName;
/**
* @return The dependency resource type.
*
*/
private @Nullable String resourceType;
private DependencyResponse() {}
/**
* @return The list of dependencies.
*
*/
public List dependsOn() {
return this.dependsOn == null ? List.of() : this.dependsOn;
}
/**
* @return The ID of the dependency.
*
*/
public Optional id() {
return Optional.ofNullable(this.id);
}
/**
* @return The dependency resource name.
*
*/
public Optional resourceName() {
return Optional.ofNullable(this.resourceName);
}
/**
* @return The dependency resource type.
*
*/
public Optional resourceType() {
return Optional.ofNullable(this.resourceType);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DependencyResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List dependsOn;
private @Nullable String id;
private @Nullable String resourceName;
private @Nullable String resourceType;
public Builder() {}
public Builder(DependencyResponse defaults) {
Objects.requireNonNull(defaults);
this.dependsOn = defaults.dependsOn;
this.id = defaults.id;
this.resourceName = defaults.resourceName;
this.resourceType = defaults.resourceType;
}
@CustomType.Setter
public Builder dependsOn(@Nullable List dependsOn) {
this.dependsOn = dependsOn;
return this;
}
public Builder dependsOn(BasicDependencyResponse... dependsOn) {
return dependsOn(List.of(dependsOn));
}
@CustomType.Setter
public Builder id(@Nullable String id) {
this.id = id;
return this;
}
@CustomType.Setter
public Builder resourceName(@Nullable String resourceName) {
this.resourceName = resourceName;
return this;
}
@CustomType.Setter
public Builder resourceType(@Nullable String resourceType) {
this.resourceType = resourceType;
return this;
}
public DependencyResponse build() {
final var _resultValue = new DependencyResponse();
_resultValue.dependsOn = dependsOn;
_resultValue.id = id;
_resultValue.resourceName = resourceName;
_resultValue.resourceType = resourceType;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy