com.pulumi.aws.imagebuilder.outputs.GetImageRecipeResult 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.GetImageRecipeBlockDeviceMapping;
import com.pulumi.aws.imagebuilder.outputs.GetImageRecipeComponent;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class GetImageRecipeResult {
private String arn;
/**
* @return Set of objects with block device mappings for the image recipe.
*
*/
private List blockDeviceMappings;
/**
* @return List of objects with components for the image recipe.
*
*/
private List components;
/**
* @return Date the image recipe was created.
*
*/
private String dateCreated;
/**
* @return Description of the image recipe.
*
*/
private String description;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return Name of the image recipe.
*
*/
private String name;
/**
* @return Owner of the image recipe.
*
*/
private String owner;
/**
* @return Base image of the image recipe.
*
*/
private String parentImage;
/**
* @return Platform of the image recipe.
*
*/
private String platform;
/**
* @return Key-value map of resource tags for the image recipe.
*
*/
private @Nullable Map tags;
/**
* @return Base64 encoded contents of user data. Commands or a command script to run when build instance is launched.
*
*/
private String userDataBase64;
/**
* @return Version of the image recipe.
*
*/
private String version;
/**
* @return Working directory used during build and test workflows.
*
*/
private String workingDirectory;
private GetImageRecipeResult() {}
public String arn() {
return this.arn;
}
/**
* @return Set of objects with block device mappings for the image recipe.
*
*/
public List blockDeviceMappings() {
return this.blockDeviceMappings;
}
/**
* @return List of objects with components for the image recipe.
*
*/
public List components() {
return this.components;
}
/**
* @return Date the image recipe was created.
*
*/
public String dateCreated() {
return this.dateCreated;
}
/**
* @return Description of the image recipe.
*
*/
public String description() {
return this.description;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return Name of the image recipe.
*
*/
public String name() {
return this.name;
}
/**
* @return Owner of the image recipe.
*
*/
public String owner() {
return this.owner;
}
/**
* @return Base image of the image recipe.
*
*/
public String parentImage() {
return this.parentImage;
}
/**
* @return Platform of the image recipe.
*
*/
public String platform() {
return this.platform;
}
/**
* @return Key-value map of resource tags for the image recipe.
*
*/
public Map tags() {
return this.tags == null ? Map.of() : this.tags;
}
/**
* @return Base64 encoded contents of user data. Commands or a command script to run when build instance is launched.
*
*/
public String userDataBase64() {
return this.userDataBase64;
}
/**
* @return Version of the image recipe.
*
*/
public String version() {
return this.version;
}
/**
* @return Working directory used during build and test workflows.
*
*/
public String workingDirectory() {
return this.workingDirectory;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetImageRecipeResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String arn;
private List blockDeviceMappings;
private List components;
private String dateCreated;
private String description;
private String id;
private String name;
private String owner;
private String parentImage;
private String platform;
private @Nullable Map tags;
private String userDataBase64;
private String version;
private String workingDirectory;
public Builder() {}
public Builder(GetImageRecipeResult defaults) {
Objects.requireNonNull(defaults);
this.arn = defaults.arn;
this.blockDeviceMappings = defaults.blockDeviceMappings;
this.components = defaults.components;
this.dateCreated = defaults.dateCreated;
this.description = defaults.description;
this.id = defaults.id;
this.name = defaults.name;
this.owner = defaults.owner;
this.parentImage = defaults.parentImage;
this.platform = defaults.platform;
this.tags = defaults.tags;
this.userDataBase64 = defaults.userDataBase64;
this.version = defaults.version;
this.workingDirectory = defaults.workingDirectory;
}
@CustomType.Setter
public Builder arn(String arn) {
if (arn == null) {
throw new MissingRequiredPropertyException("GetImageRecipeResult", "arn");
}
this.arn = arn;
return this;
}
@CustomType.Setter
public Builder blockDeviceMappings(List blockDeviceMappings) {
if (blockDeviceMappings == null) {
throw new MissingRequiredPropertyException("GetImageRecipeResult", "blockDeviceMappings");
}
this.blockDeviceMappings = blockDeviceMappings;
return this;
}
public Builder blockDeviceMappings(GetImageRecipeBlockDeviceMapping... blockDeviceMappings) {
return blockDeviceMappings(List.of(blockDeviceMappings));
}
@CustomType.Setter
public Builder components(List components) {
if (components == null) {
throw new MissingRequiredPropertyException("GetImageRecipeResult", "components");
}
this.components = components;
return this;
}
public Builder components(GetImageRecipeComponent... components) {
return components(List.of(components));
}
@CustomType.Setter
public Builder dateCreated(String dateCreated) {
if (dateCreated == null) {
throw new MissingRequiredPropertyException("GetImageRecipeResult", "dateCreated");
}
this.dateCreated = dateCreated;
return this;
}
@CustomType.Setter
public Builder description(String description) {
if (description == null) {
throw new MissingRequiredPropertyException("GetImageRecipeResult", "description");
}
this.description = description;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetImageRecipeResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetImageRecipeResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder owner(String owner) {
if (owner == null) {
throw new MissingRequiredPropertyException("GetImageRecipeResult", "owner");
}
this.owner = owner;
return this;
}
@CustomType.Setter
public Builder parentImage(String parentImage) {
if (parentImage == null) {
throw new MissingRequiredPropertyException("GetImageRecipeResult", "parentImage");
}
this.parentImage = parentImage;
return this;
}
@CustomType.Setter
public Builder platform(String platform) {
if (platform == null) {
throw new MissingRequiredPropertyException("GetImageRecipeResult", "platform");
}
this.platform = platform;
return this;
}
@CustomType.Setter
public Builder tags(@Nullable Map tags) {
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder userDataBase64(String userDataBase64) {
if (userDataBase64 == null) {
throw new MissingRequiredPropertyException("GetImageRecipeResult", "userDataBase64");
}
this.userDataBase64 = userDataBase64;
return this;
}
@CustomType.Setter
public Builder version(String version) {
if (version == null) {
throw new MissingRequiredPropertyException("GetImageRecipeResult", "version");
}
this.version = version;
return this;
}
@CustomType.Setter
public Builder workingDirectory(String workingDirectory) {
if (workingDirectory == null) {
throw new MissingRequiredPropertyException("GetImageRecipeResult", "workingDirectory");
}
this.workingDirectory = workingDirectory;
return this;
}
public GetImageRecipeResult build() {
final var _resultValue = new GetImageRecipeResult();
_resultValue.arn = arn;
_resultValue.blockDeviceMappings = blockDeviceMappings;
_resultValue.components = components;
_resultValue.dateCreated = dateCreated;
_resultValue.description = description;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.owner = owner;
_resultValue.parentImage = parentImage;
_resultValue.platform = platform;
_resultValue.tags = tags;
_resultValue.userDataBase64 = userDataBase64;
_resultValue.version = version;
_resultValue.workingDirectory = workingDirectory;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy