All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.lex.outputs.V2modelsIntentInitialResponseSettingCodeHookPostCodeHookSpecificationFailureResponseMessageGroupVariationImageResponseCard Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
Show newest version
// *** 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.V2modelsIntentInitialResponseSettingCodeHookPostCodeHookSpecificationFailureResponseMessageGroupVariationImageResponseCardButton;
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 V2modelsIntentInitialResponseSettingCodeHookPostCodeHookSpecificationFailureResponseMessageGroupVariationImageResponseCard {
    /**
     * @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 V2modelsIntentInitialResponseSettingCodeHookPostCodeHookSpecificationFailureResponseMessageGroupVariationImageResponseCard() {}
    /**
     * @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(V2modelsIntentInitialResponseSettingCodeHookPostCodeHookSpecificationFailureResponseMessageGroupVariationImageResponseCard 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(V2modelsIntentInitialResponseSettingCodeHookPostCodeHookSpecificationFailureResponseMessageGroupVariationImageResponseCard 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(V2modelsIntentInitialResponseSettingCodeHookPostCodeHookSpecificationFailureResponseMessageGroupVariationImageResponseCardButton... 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("V2modelsIntentInitialResponseSettingCodeHookPostCodeHookSpecificationFailureResponseMessageGroupVariationImageResponseCard", "title");
            }
            this.title = title;
            return this;
        }
        public V2modelsIntentInitialResponseSettingCodeHookPostCodeHookSpecificationFailureResponseMessageGroupVariationImageResponseCard build() {
            final var _resultValue = new V2modelsIntentInitialResponseSettingCodeHookPostCodeHookSpecificationFailureResponseMessageGroupVariationImageResponseCard();
            _resultValue.buttons = buttons;
            _resultValue.imageUrl = imageUrl;
            _resultValue.subtitle = subtitle;
            _resultValue.title = title;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy