com.pulumi.aws.imagebuilder.outputs.ImageOutputResource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud 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.aws.imagebuilder.outputs;
import com.pulumi.aws.imagebuilder.outputs.ImageOutputResourceAmi;
import com.pulumi.aws.imagebuilder.outputs.ImageOutputResourceContainer;
import com.pulumi.core.annotations.CustomType;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class ImageOutputResource {
/**
* @return Set of objects with each Amazon Machine Image (AMI) created.
*
*/
private @Nullable List amis;
/**
* @return Set of objects with each container image created and stored in the output repository.
*
*/
private @Nullable List containers;
private ImageOutputResource() {}
/**
* @return Set of objects with each Amazon Machine Image (AMI) created.
*
*/
public List amis() {
return this.amis == null ? List.of() : this.amis;
}
/**
* @return Set of objects with each container image created and stored in the output repository.
*
*/
public List containers() {
return this.containers == null ? List.of() : this.containers;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ImageOutputResource defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List amis;
private @Nullable List containers;
public Builder() {}
public Builder(ImageOutputResource defaults) {
Objects.requireNonNull(defaults);
this.amis = defaults.amis;
this.containers = defaults.containers;
}
@CustomType.Setter
public Builder amis(@Nullable List amis) {
this.amis = amis;
return this;
}
public Builder amis(ImageOutputResourceAmi... amis) {
return amis(List.of(amis));
}
@CustomType.Setter
public Builder containers(@Nullable List containers) {
this.containers = containers;
return this;
}
public Builder containers(ImageOutputResourceContainer... containers) {
return containers(List.of(containers));
}
public ImageOutputResource build() {
final var _resultValue = new ImageOutputResource();
_resultValue.amis = amis;
_resultValue.containers = containers;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy