com.pulumi.docker.outputs.GetRemoteImageResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docker Show documentation
Show all versions of docker Show documentation
A Pulumi package for interacting with Docker in Pulumi programs
// *** 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.docker.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetRemoteImageResult {
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return The name of the Docker image, including any tags or SHA256 repo digests.
*
*/
private String name;
/**
* @return The image sha256 digest in the form of `repo[:tag]{@literal @}sha256:<hash>`. It may be empty in the edge case where the local image was pulled from a repo, tagged locally, and then referred to in the data source by that local name/tag.
*
*/
private String repoDigest;
private GetRemoteImageResult() {}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return The name of the Docker image, including any tags or SHA256 repo digests.
*
*/
public String name() {
return this.name;
}
/**
* @return The image sha256 digest in the form of `repo[:tag]{@literal @}sha256:<hash>`. It may be empty in the edge case where the local image was pulled from a repo, tagged locally, and then referred to in the data source by that local name/tag.
*
*/
public String repoDigest() {
return this.repoDigest;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetRemoteImageResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private String name;
private String repoDigest;
public Builder() {}
public Builder(GetRemoteImageResult defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.name = defaults.name;
this.repoDigest = defaults.repoDigest;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetRemoteImageResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetRemoteImageResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder repoDigest(String repoDigest) {
if (repoDigest == null) {
throw new MissingRequiredPropertyException("GetRemoteImageResult", "repoDigest");
}
this.repoDigest = repoDigest;
return this;
}
public GetRemoteImageResult build() {
final var _resultValue = new GetRemoteImageResult();
_resultValue.id = id;
_resultValue.name = name;
_resultValue.repoDigest = repoDigest;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy