
com.pulumi.azurenative.virtualmachineimages.outputs.ImageTemplateManagedImageDistributorResponse 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.virtualmachineimages.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class ImageTemplateManagedImageDistributorResponse {
/**
* @return Tags that will be applied to the artifact once it has been created/updated by the distributor.
*
*/
private @Nullable Map artifactTags;
/**
* @return Resource Id of the Managed Disk Image
*
*/
private String imageId;
/**
* @return Azure location for the image, should match if image already exists
*
*/
private String location;
/**
* @return The name to be used for the associated RunOutput.
*
*/
private String runOutputName;
/**
* @return Type of distribution.
* Expected value is 'ManagedImage'.
*
*/
private String type;
private ImageTemplateManagedImageDistributorResponse() {}
/**
* @return Tags that will be applied to the artifact once it has been created/updated by the distributor.
*
*/
public Map artifactTags() {
return this.artifactTags == null ? Map.of() : this.artifactTags;
}
/**
* @return Resource Id of the Managed Disk Image
*
*/
public String imageId() {
return this.imageId;
}
/**
* @return Azure location for the image, should match if image already exists
*
*/
public String location() {
return this.location;
}
/**
* @return The name to be used for the associated RunOutput.
*
*/
public String runOutputName() {
return this.runOutputName;
}
/**
* @return Type of distribution.
* Expected value is 'ManagedImage'.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ImageTemplateManagedImageDistributorResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Map artifactTags;
private String imageId;
private String location;
private String runOutputName;
private String type;
public Builder() {}
public Builder(ImageTemplateManagedImageDistributorResponse defaults) {
Objects.requireNonNull(defaults);
this.artifactTags = defaults.artifactTags;
this.imageId = defaults.imageId;
this.location = defaults.location;
this.runOutputName = defaults.runOutputName;
this.type = defaults.type;
}
@CustomType.Setter
public Builder artifactTags(@Nullable Map artifactTags) {
this.artifactTags = artifactTags;
return this;
}
@CustomType.Setter
public Builder imageId(String imageId) {
if (imageId == null) {
throw new MissingRequiredPropertyException("ImageTemplateManagedImageDistributorResponse", "imageId");
}
this.imageId = imageId;
return this;
}
@CustomType.Setter
public Builder location(String location) {
if (location == null) {
throw new MissingRequiredPropertyException("ImageTemplateManagedImageDistributorResponse", "location");
}
this.location = location;
return this;
}
@CustomType.Setter
public Builder runOutputName(String runOutputName) {
if (runOutputName == null) {
throw new MissingRequiredPropertyException("ImageTemplateManagedImageDistributorResponse", "runOutputName");
}
this.runOutputName = runOutputName;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("ImageTemplateManagedImageDistributorResponse", "type");
}
this.type = type;
return this;
}
public ImageTemplateManagedImageDistributorResponse build() {
final var _resultValue = new ImageTemplateManagedImageDistributorResponse();
_resultValue.artifactTags = artifactTags;
_resultValue.imageId = imageId;
_resultValue.location = location;
_resultValue.runOutputName = runOutputName;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy