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

com.pulumi.googlenative.dialogflow.v2beta1.outputs.GoogleCloudDialogflowV2beta1IntentMessageBasicCardResponse Maven / Gradle / Ivy

// *** 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.googlenative.dialogflow.v2beta1.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.googlenative.dialogflow.v2beta1.outputs.GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonResponse;
import com.pulumi.googlenative.dialogflow.v2beta1.outputs.GoogleCloudDialogflowV2beta1IntentMessageImageResponse;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GoogleCloudDialogflowV2beta1IntentMessageBasicCardResponse {
    /**
     * @return Optional. The collection of card buttons.
     * 
     */
    private List buttons;
    /**
     * @return Required, unless image is present. The body text of the card.
     * 
     */
    private String formattedText;
    /**
     * @return Optional. The image for the card.
     * 
     */
    private GoogleCloudDialogflowV2beta1IntentMessageImageResponse image;
    /**
     * @return Optional. The subtitle of the card.
     * 
     */
    private String subtitle;
    /**
     * @return Optional. The title of the card.
     * 
     */
    private String title;

    private GoogleCloudDialogflowV2beta1IntentMessageBasicCardResponse() {}
    /**
     * @return Optional. The collection of card buttons.
     * 
     */
    public List buttons() {
        return this.buttons;
    }
    /**
     * @return Required, unless image is present. The body text of the card.
     * 
     */
    public String formattedText() {
        return this.formattedText;
    }
    /**
     * @return Optional. The image for the card.
     * 
     */
    public GoogleCloudDialogflowV2beta1IntentMessageImageResponse image() {
        return this.image;
    }
    /**
     * @return Optional. The subtitle of the card.
     * 
     */
    public String subtitle() {
        return this.subtitle;
    }
    /**
     * @return Optional. The title of the card.
     * 
     */
    public String title() {
        return this.title;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(GoogleCloudDialogflowV2beta1IntentMessageBasicCardResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List buttons;
        private String formattedText;
        private GoogleCloudDialogflowV2beta1IntentMessageImageResponse image;
        private String subtitle;
        private String title;
        public Builder() {}
        public Builder(GoogleCloudDialogflowV2beta1IntentMessageBasicCardResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.buttons = defaults.buttons;
    	      this.formattedText = defaults.formattedText;
    	      this.image = defaults.image;
    	      this.subtitle = defaults.subtitle;
    	      this.title = defaults.title;
        }

        @CustomType.Setter
        public Builder buttons(List buttons) {
            this.buttons = Objects.requireNonNull(buttons);
            return this;
        }
        public Builder buttons(GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonResponse... buttons) {
            return buttons(List.of(buttons));
        }
        @CustomType.Setter
        public Builder formattedText(String formattedText) {
            this.formattedText = Objects.requireNonNull(formattedText);
            return this;
        }
        @CustomType.Setter
        public Builder image(GoogleCloudDialogflowV2beta1IntentMessageImageResponse image) {
            this.image = Objects.requireNonNull(image);
            return this;
        }
        @CustomType.Setter
        public Builder subtitle(String subtitle) {
            this.subtitle = Objects.requireNonNull(subtitle);
            return this;
        }
        @CustomType.Setter
        public Builder title(String title) {
            this.title = Objects.requireNonNull(title);
            return this;
        }
        public GoogleCloudDialogflowV2beta1IntentMessageBasicCardResponse build() {
            final var o = new GoogleCloudDialogflowV2beta1IntentMessageBasicCardResponse();
            o.buttons = buttons;
            o.formattedText = formattedText;
            o.image = image;
            o.subtitle = subtitle;
            o.title = title;
            return o;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy