
com.pulumi.aws.ecr.outputs.GetImageResult Maven / Gradle / Ivy
// *** 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.aws.ecr.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetImageResult {
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
private String imageDigest;
/**
* @return Date and time, expressed as a unix timestamp, at which the current image was pushed to the repository.
*
*/
private Integer imagePushedAt;
/**
* @return Size, in bytes, of the image in the repository.
*
*/
private Integer imageSizeInBytes;
private @Nullable String imageTag;
/**
* @return List of tags associated with this image.
*
*/
private List imageTags;
/**
* @return The URI for the specific image version specified by `image_tag` or `image_digest`.
*
*/
private String imageUri;
private @Nullable Boolean mostRecent;
private String registryId;
private String repositoryName;
private GetImageResult() {}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
public String imageDigest() {
return this.imageDigest;
}
/**
* @return Date and time, expressed as a unix timestamp, at which the current image was pushed to the repository.
*
*/
public Integer imagePushedAt() {
return this.imagePushedAt;
}
/**
* @return Size, in bytes, of the image in the repository.
*
*/
public Integer imageSizeInBytes() {
return this.imageSizeInBytes;
}
public Optional imageTag() {
return Optional.ofNullable(this.imageTag);
}
/**
* @return List of tags associated with this image.
*
*/
public List imageTags() {
return this.imageTags;
}
/**
* @return The URI for the specific image version specified by `image_tag` or `image_digest`.
*
*/
public String imageUri() {
return this.imageUri;
}
public Optional mostRecent() {
return Optional.ofNullable(this.mostRecent);
}
public String registryId() {
return this.registryId;
}
public String repositoryName() {
return this.repositoryName;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetImageResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private String imageDigest;
private Integer imagePushedAt;
private Integer imageSizeInBytes;
private @Nullable String imageTag;
private List imageTags;
private String imageUri;
private @Nullable Boolean mostRecent;
private String registryId;
private String repositoryName;
public Builder() {}
public Builder(GetImageResult defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.imageDigest = defaults.imageDigest;
this.imagePushedAt = defaults.imagePushedAt;
this.imageSizeInBytes = defaults.imageSizeInBytes;
this.imageTag = defaults.imageTag;
this.imageTags = defaults.imageTags;
this.imageUri = defaults.imageUri;
this.mostRecent = defaults.mostRecent;
this.registryId = defaults.registryId;
this.repositoryName = defaults.repositoryName;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetImageResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder imageDigest(String imageDigest) {
if (imageDigest == null) {
throw new MissingRequiredPropertyException("GetImageResult", "imageDigest");
}
this.imageDigest = imageDigest;
return this;
}
@CustomType.Setter
public Builder imagePushedAt(Integer imagePushedAt) {
if (imagePushedAt == null) {
throw new MissingRequiredPropertyException("GetImageResult", "imagePushedAt");
}
this.imagePushedAt = imagePushedAt;
return this;
}
@CustomType.Setter
public Builder imageSizeInBytes(Integer imageSizeInBytes) {
if (imageSizeInBytes == null) {
throw new MissingRequiredPropertyException("GetImageResult", "imageSizeInBytes");
}
this.imageSizeInBytes = imageSizeInBytes;
return this;
}
@CustomType.Setter
public Builder imageTag(@Nullable String imageTag) {
this.imageTag = imageTag;
return this;
}
@CustomType.Setter
public Builder imageTags(List imageTags) {
if (imageTags == null) {
throw new MissingRequiredPropertyException("GetImageResult", "imageTags");
}
this.imageTags = imageTags;
return this;
}
public Builder imageTags(String... imageTags) {
return imageTags(List.of(imageTags));
}
@CustomType.Setter
public Builder imageUri(String imageUri) {
if (imageUri == null) {
throw new MissingRequiredPropertyException("GetImageResult", "imageUri");
}
this.imageUri = imageUri;
return this;
}
@CustomType.Setter
public Builder mostRecent(@Nullable Boolean mostRecent) {
this.mostRecent = mostRecent;
return this;
}
@CustomType.Setter
public Builder registryId(String registryId) {
if (registryId == null) {
throw new MissingRequiredPropertyException("GetImageResult", "registryId");
}
this.registryId = registryId;
return this;
}
@CustomType.Setter
public Builder repositoryName(String repositoryName) {
if (repositoryName == null) {
throw new MissingRequiredPropertyException("GetImageResult", "repositoryName");
}
this.repositoryName = repositoryName;
return this;
}
public GetImageResult build() {
final var _resultValue = new GetImageResult();
_resultValue.id = id;
_resultValue.imageDigest = imageDigest;
_resultValue.imagePushedAt = imagePushedAt;
_resultValue.imageSizeInBytes = imageSizeInBytes;
_resultValue.imageTag = imageTag;
_resultValue.imageTags = imageTags;
_resultValue.imageUri = imageUri;
_resultValue.mostRecent = mostRecent;
_resultValue.registryId = registryId;
_resultValue.repositoryName = repositoryName;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy