com.pulumi.aws.imagebuilder.outputs.ImageOutputResourceAmi 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.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ImageOutputResourceAmi {
/**
* @return Account identifier of the AMI.
*
*/
private @Nullable String accountId;
/**
* @return Description of the AMI.
*
*/
private @Nullable String description;
/**
* @return Identifier of the AMI.
*
*/
private @Nullable String image;
/**
* @return Name of the AMI.
*
*/
private @Nullable String name;
/**
* @return Region of the container image.
*
*/
private @Nullable String region;
private ImageOutputResourceAmi() {}
/**
* @return Account identifier of the AMI.
*
*/
public Optional accountId() {
return Optional.ofNullable(this.accountId);
}
/**
* @return Description of the AMI.
*
*/
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return Identifier of the AMI.
*
*/
public Optional image() {
return Optional.ofNullable(this.image);
}
/**
* @return Name of the AMI.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return Region of the container image.
*
*/
public Optional region() {
return Optional.ofNullable(this.region);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ImageOutputResourceAmi defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String accountId;
private @Nullable String description;
private @Nullable String image;
private @Nullable String name;
private @Nullable String region;
public Builder() {}
public Builder(ImageOutputResourceAmi defaults) {
Objects.requireNonNull(defaults);
this.accountId = defaults.accountId;
this.description = defaults.description;
this.image = defaults.image;
this.name = defaults.name;
this.region = defaults.region;
}
@CustomType.Setter
public Builder accountId(@Nullable String accountId) {
this.accountId = accountId;
return this;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder image(@Nullable String image) {
this.image = image;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder region(@Nullable String region) {
this.region = region;
return this;
}
public ImageOutputResourceAmi build() {
final var _resultValue = new ImageOutputResourceAmi();
_resultValue.accountId = accountId;
_resultValue.description = description;
_resultValue.image = image;
_resultValue.name = name;
_resultValue.region = region;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy