
com.pulumi.azurenative.machinelearning.outputs.AssetItemResponse 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.machinelearning.outputs;
import com.pulumi.azurenative.machinelearning.outputs.BlobLocationResponse;
import com.pulumi.azurenative.machinelearning.outputs.InputPortResponse;
import com.pulumi.azurenative.machinelearning.outputs.ModuleAssetParameterResponse;
import com.pulumi.azurenative.machinelearning.outputs.OutputPortResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class AssetItemResponse {
/**
* @return Asset's Id.
*
*/
private @Nullable String id;
/**
* @return Information about the asset's input ports.
*
*/
private @Nullable Map inputPorts;
/**
* @return Access information for the asset.
*
*/
private BlobLocationResponse locationInfo;
/**
* @return If the asset is a custom module, this holds the module's metadata.
*
*/
private @Nullable Map metadata;
/**
* @return Asset's friendly name.
*
*/
private String name;
/**
* @return Information about the asset's output ports.
*
*/
private @Nullable Map outputPorts;
/**
* @return If the asset is a custom module, this holds the module's parameters.
*
*/
private @Nullable List parameters;
/**
* @return Asset's type.
*
*/
private String type;
private AssetItemResponse() {}
/**
* @return Asset's Id.
*
*/
public Optional id() {
return Optional.ofNullable(this.id);
}
/**
* @return Information about the asset's input ports.
*
*/
public Map inputPorts() {
return this.inputPorts == null ? Map.of() : this.inputPorts;
}
/**
* @return Access information for the asset.
*
*/
public BlobLocationResponse locationInfo() {
return this.locationInfo;
}
/**
* @return If the asset is a custom module, this holds the module's metadata.
*
*/
public Map metadata() {
return this.metadata == null ? Map.of() : this.metadata;
}
/**
* @return Asset's friendly name.
*
*/
public String name() {
return this.name;
}
/**
* @return Information about the asset's output ports.
*
*/
public Map outputPorts() {
return this.outputPorts == null ? Map.of() : this.outputPorts;
}
/**
* @return If the asset is a custom module, this holds the module's parameters.
*
*/
public List parameters() {
return this.parameters == null ? List.of() : this.parameters;
}
/**
* @return Asset's type.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AssetItemResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String id;
private @Nullable Map inputPorts;
private BlobLocationResponse locationInfo;
private @Nullable Map metadata;
private String name;
private @Nullable Map outputPorts;
private @Nullable List parameters;
private String type;
public Builder() {}
public Builder(AssetItemResponse defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.inputPorts = defaults.inputPorts;
this.locationInfo = defaults.locationInfo;
this.metadata = defaults.metadata;
this.name = defaults.name;
this.outputPorts = defaults.outputPorts;
this.parameters = defaults.parameters;
this.type = defaults.type;
}
@CustomType.Setter
public Builder id(@Nullable String id) {
this.id = id;
return this;
}
@CustomType.Setter
public Builder inputPorts(@Nullable Map inputPorts) {
this.inputPorts = inputPorts;
return this;
}
@CustomType.Setter
public Builder locationInfo(BlobLocationResponse locationInfo) {
if (locationInfo == null) {
throw new MissingRequiredPropertyException("AssetItemResponse", "locationInfo");
}
this.locationInfo = locationInfo;
return this;
}
@CustomType.Setter
public Builder metadata(@Nullable Map metadata) {
this.metadata = metadata;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("AssetItemResponse", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder outputPorts(@Nullable Map outputPorts) {
this.outputPorts = outputPorts;
return this;
}
@CustomType.Setter
public Builder parameters(@Nullable List parameters) {
this.parameters = parameters;
return this;
}
public Builder parameters(ModuleAssetParameterResponse... parameters) {
return parameters(List.of(parameters));
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("AssetItemResponse", "type");
}
this.type = type;
return this;
}
public AssetItemResponse build() {
final var _resultValue = new AssetItemResponse();
_resultValue.id = id;
_resultValue.inputPorts = inputPorts;
_resultValue.locationInfo = locationInfo;
_resultValue.metadata = metadata;
_resultValue.name = name;
_resultValue.outputPorts = outputPorts;
_resultValue.parameters = parameters;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy