
com.pulumi.aws.appstream.inputs.GetImagePlainArgs 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.appstream.inputs;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class GetImagePlainArgs extends com.pulumi.resources.InvokeArgs {
public static final GetImagePlainArgs Empty = new GetImagePlainArgs();
/**
* Arn of the image being searched for. Cannot be used with name_regex or name.
*
*/
@Import(name="arn")
private @Nullable String arn;
/**
* @return Arn of the image being searched for. Cannot be used with name_regex or name.
*
*/
public Optional arn() {
return Optional.ofNullable(this.arn);
}
/**
* Boolean that if it is set to true and there are multiple images returned the most recent will be returned. If it is set to false and there are multiple images return the datasource will error.
*
*/
@Import(name="mostRecent")
private @Nullable Boolean mostRecent;
/**
* @return Boolean that if it is set to true and there are multiple images returned the most recent will be returned. If it is set to false and there are multiple images return the datasource will error.
*
*/
public Optional mostRecent() {
return Optional.ofNullable(this.mostRecent);
}
/**
* Name of the image being searched for. Cannot be used with name_regex or arn.
*
*/
@Import(name="name")
private @Nullable String name;
/**
* @return Name of the image being searched for. Cannot be used with name_regex or arn.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* Regular expression name of the image being searched for. Cannot be used with arn or name.
*
*/
@Import(name="nameRegex")
private @Nullable String nameRegex;
/**
* @return Regular expression name of the image being searched for. Cannot be used with arn or name.
*
*/
public Optional nameRegex() {
return Optional.ofNullable(this.nameRegex);
}
/**
* The type of image which must be (PUBLIC, PRIVATE, or SHARED).
*
*/
@Import(name="type")
private @Nullable String type;
/**
* @return The type of image which must be (PUBLIC, PRIVATE, or SHARED).
*
*/
public Optional type() {
return Optional.ofNullable(this.type);
}
private GetImagePlainArgs() {}
private GetImagePlainArgs(GetImagePlainArgs $) {
this.arn = $.arn;
this.mostRecent = $.mostRecent;
this.name = $.name;
this.nameRegex = $.nameRegex;
this.type = $.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetImagePlainArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetImagePlainArgs $;
public Builder() {
$ = new GetImagePlainArgs();
}
public Builder(GetImagePlainArgs defaults) {
$ = new GetImagePlainArgs(Objects.requireNonNull(defaults));
}
/**
* @param arn Arn of the image being searched for. Cannot be used with name_regex or name.
*
* @return builder
*
*/
public Builder arn(@Nullable String arn) {
$.arn = arn;
return this;
}
/**
* @param mostRecent Boolean that if it is set to true and there are multiple images returned the most recent will be returned. If it is set to false and there are multiple images return the datasource will error.
*
* @return builder
*
*/
public Builder mostRecent(@Nullable Boolean mostRecent) {
$.mostRecent = mostRecent;
return this;
}
/**
* @param name Name of the image being searched for. Cannot be used with name_regex or arn.
*
* @return builder
*
*/
public Builder name(@Nullable String name) {
$.name = name;
return this;
}
/**
* @param nameRegex Regular expression name of the image being searched for. Cannot be used with arn or name.
*
* @return builder
*
*/
public Builder nameRegex(@Nullable String nameRegex) {
$.nameRegex = nameRegex;
return this;
}
/**
* @param type The type of image which must be (PUBLIC, PRIVATE, or SHARED).
*
* @return builder
*
*/
public Builder type(@Nullable String type) {
$.type = type;
return this;
}
public GetImagePlainArgs build() {
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy