com.pulumi.azure.automation.outputs.ModuleModuleLink 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.automation.outputs;
import com.pulumi.azure.automation.outputs.ModuleModuleLinkHash;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ModuleModuleLink {
/**
* @return A `hash` block as defined below.
*
*/
private @Nullable ModuleModuleLinkHash hash;
/**
* @return The URI of the module content (zip or nupkg).
*
*/
private String uri;
private ModuleModuleLink() {}
/**
* @return A `hash` block as defined below.
*
*/
public Optional hash() {
return Optional.ofNullable(this.hash);
}
/**
* @return The URI of the module content (zip or nupkg).
*
*/
public String uri() {
return this.uri;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ModuleModuleLink defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable ModuleModuleLinkHash hash;
private String uri;
public Builder() {}
public Builder(ModuleModuleLink defaults) {
Objects.requireNonNull(defaults);
this.hash = defaults.hash;
this.uri = defaults.uri;
}
@CustomType.Setter
public Builder hash(@Nullable ModuleModuleLinkHash hash) {
this.hash = hash;
return this;
}
@CustomType.Setter
public Builder uri(String uri) {
if (uri == null) {
throw new MissingRequiredPropertyException("ModuleModuleLink", "uri");
}
this.uri = uri;
return this;
}
public ModuleModuleLink build() {
final var _resultValue = new ModuleModuleLink();
_resultValue.hash = hash;
_resultValue.uri = uri;
return _resultValue;
}
}
}