com.pulumi.azurenative.machinelearningservices.outputs.CodeVersionResponse 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.machinelearningservices.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class CodeVersionResponse {
/**
* @return Uri where code is located
*
*/
private @Nullable String codeUri;
/**
* @return The asset description text.
*
*/
private @Nullable String description;
/**
* @return If the name version are system generated (anonymous registration).
*
*/
private @Nullable Boolean isAnonymous;
/**
* @return Is the asset archived?
*
*/
private @Nullable Boolean isArchived;
/**
* @return The asset property dictionary.
*
*/
private @Nullable Map properties;
/**
* @return Provisioning state for the code version.
*
*/
private String provisioningState;
/**
* @return Tag dictionary. Tags can be added, removed, and updated.
*
*/
private @Nullable Map tags;
private CodeVersionResponse() {}
/**
* @return Uri where code is located
*
*/
public Optional codeUri() {
return Optional.ofNullable(this.codeUri);
}
/**
* @return The asset description text.
*
*/
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return If the name version are system generated (anonymous registration).
*
*/
public Optional isAnonymous() {
return Optional.ofNullable(this.isAnonymous);
}
/**
* @return Is the asset archived?
*
*/
public Optional isArchived() {
return Optional.ofNullable(this.isArchived);
}
/**
* @return The asset property dictionary.
*
*/
public Map properties() {
return this.properties == null ? Map.of() : this.properties;
}
/**
* @return Provisioning state for the code version.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return Tag dictionary. Tags can be added, removed, and updated.
*
*/
public Map tags() {
return this.tags == null ? Map.of() : this.tags;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(CodeVersionResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String codeUri;
private @Nullable String description;
private @Nullable Boolean isAnonymous;
private @Nullable Boolean isArchived;
private @Nullable Map properties;
private String provisioningState;
private @Nullable Map tags;
public Builder() {}
public Builder(CodeVersionResponse defaults) {
Objects.requireNonNull(defaults);
this.codeUri = defaults.codeUri;
this.description = defaults.description;
this.isAnonymous = defaults.isAnonymous;
this.isArchived = defaults.isArchived;
this.properties = defaults.properties;
this.provisioningState = defaults.provisioningState;
this.tags = defaults.tags;
}
@CustomType.Setter
public Builder codeUri(@Nullable String codeUri) {
this.codeUri = codeUri;
return this;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder isAnonymous(@Nullable Boolean isAnonymous) {
this.isAnonymous = isAnonymous;
return this;
}
@CustomType.Setter
public Builder isArchived(@Nullable Boolean isArchived) {
this.isArchived = isArchived;
return this;
}
@CustomType.Setter
public Builder properties(@Nullable Map properties) {
this.properties = properties;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("CodeVersionResponse", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder tags(@Nullable Map tags) {
this.tags = tags;
return this;
}
public CodeVersionResponse build() {
final var _resultValue = new CodeVersionResponse();
_resultValue.codeUri = codeUri;
_resultValue.description = description;
_resultValue.isAnonymous = isAnonymous;
_resultValue.isArchived = isArchived;
_resultValue.properties = properties;
_resultValue.provisioningState = provisioningState;
_resultValue.tags = tags;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy