com.pulumi.aws.lex.outputs.V2modelsIntentClosingSettingClosingResponseMessageGroupVariationImageResponseCard 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.lex.outputs;
import com.pulumi.aws.lex.outputs.V2modelsIntentClosingSettingClosingResponseMessageGroupVariationImageResponseCardButton;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class V2modelsIntentClosingSettingClosingResponseMessageGroupVariationImageResponseCard {
/**
* @return Configuration blocks for buttons that should be displayed on the response card. The arrangement of the buttons is determined by the platform that displays the button. See `button`.
*
*/
private @Nullable List buttons;
/**
* @return URL of an image to display on the response card. The image URL must be publicly available so that the platform displaying the response card has access to the image.
*
*/
private @Nullable String imageUrl;
/**
* @return Subtitle to display on the response card. The format of the subtitle is determined by the platform displaying the response card.
*
*/
private @Nullable String subtitle;
/**
* @return Title to display on the response card. The format of the title is determined by the platform displaying the response card.
*
*/
private String title;
private V2modelsIntentClosingSettingClosingResponseMessageGroupVariationImageResponseCard() {}
/**
* @return Configuration blocks for buttons that should be displayed on the response card. The arrangement of the buttons is determined by the platform that displays the button. See `button`.
*
*/
public List buttons() {
return this.buttons == null ? List.of() : this.buttons;
}
/**
* @return URL of an image to display on the response card. The image URL must be publicly available so that the platform displaying the response card has access to the image.
*
*/
public Optional imageUrl() {
return Optional.ofNullable(this.imageUrl);
}
/**
* @return Subtitle to display on the response card. The format of the subtitle is determined by the platform displaying the response card.
*
*/
public Optional subtitle() {
return Optional.ofNullable(this.subtitle);
}
/**
* @return Title to display on the response card. The format of the title is determined by the platform displaying the response card.
*
*/
public String title() {
return this.title;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(V2modelsIntentClosingSettingClosingResponseMessageGroupVariationImageResponseCard defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List buttons;
private @Nullable String imageUrl;
private @Nullable String subtitle;
private String title;
public Builder() {}
public Builder(V2modelsIntentClosingSettingClosingResponseMessageGroupVariationImageResponseCard defaults) {
Objects.requireNonNull(defaults);
this.buttons = defaults.buttons;
this.imageUrl = defaults.imageUrl;
this.subtitle = defaults.subtitle;
this.title = defaults.title;
}
@CustomType.Setter
public Builder buttons(@Nullable List buttons) {
this.buttons = buttons;
return this;
}
public Builder buttons(V2modelsIntentClosingSettingClosingResponseMessageGroupVariationImageResponseCardButton... buttons) {
return buttons(List.of(buttons));
}
@CustomType.Setter
public Builder imageUrl(@Nullable String imageUrl) {
this.imageUrl = imageUrl;
return this;
}
@CustomType.Setter
public Builder subtitle(@Nullable String subtitle) {
this.subtitle = subtitle;
return this;
}
@CustomType.Setter
public Builder title(String title) {
if (title == null) {
throw new MissingRequiredPropertyException("V2modelsIntentClosingSettingClosingResponseMessageGroupVariationImageResponseCard", "title");
}
this.title = title;
return this;
}
public V2modelsIntentClosingSettingClosingResponseMessageGroupVariationImageResponseCard build() {
final var _resultValue = new V2modelsIntentClosingSettingClosingResponseMessageGroupVariationImageResponseCard();
_resultValue.buttons = buttons;
_resultValue.imageUrl = imageUrl;
_resultValue.subtitle = subtitle;
_resultValue.title = title;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy