// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.resourcehealth.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;

/** Banner type of emerging issue. */
@Fluent
public final class StatusBanner {
    /*
     * The banner title.
     */
    @JsonProperty(value = "title")
    private String title;

    /*
     * The details of banner.
     */
    @JsonProperty(value = "message")
    private String message;

    /*
     * The cloud type of this banner.
     */
    @JsonProperty(value = "cloud")
    private String cloud;

    /*
     * The last time modified on this banner.
     */
    @JsonProperty(value = "lastModifiedTime")
    private OffsetDateTime lastModifiedTime;

    /** Creates an instance of StatusBanner class. */
    public StatusBanner() {
    }

    /**
     * Get the title property: The banner title.
     *
     * @return the title value.
     */
    public String title() {
        return this.title;
    }

    /**
     * Set the title property: The banner title.
     *
     * @param title the title value to set.
     * @return the StatusBanner object itself.
     */
    public StatusBanner withTitle(String title) {
        this.title = title;
        return this;
    }

    /**
     * Get the message property: The details of banner.
     *
     * @return the message value.
     */
    public String message() {
        return this.message;
    }

    /**
     * Set the message property: The details of banner.
     *
     * @param message the message value to set.
     * @return the StatusBanner object itself.
     */
    public StatusBanner withMessage(String message) {
        this.message = message;
        return this;
    }

    /**
     * Get the cloud property: The cloud type of this banner.
     *
     * @return the cloud value.
     */
    public String cloud() {
        return this.cloud;
    }

    /**
     * Set the cloud property: The cloud type of this banner.
     *
     * @param cloud the cloud value to set.
     * @return the StatusBanner object itself.
     */
    public StatusBanner withCloud(String cloud) {
        this.cloud = cloud;
        return this;
    }

    /**
     * Get the lastModifiedTime property: The last time modified on this banner.
     *
     * @return the lastModifiedTime value.
     */
    public OffsetDateTime lastModifiedTime() {
        return this.lastModifiedTime;
    }

    /**
     * Set the lastModifiedTime property: The last time modified on this banner.
     *
     * @param lastModifiedTime the lastModifiedTime value to set.
     * @return the StatusBanner object itself.
     */
    public StatusBanner withLastModifiedTime(OffsetDateTime lastModifiedTime) {
        this.lastModifiedTime = lastModifiedTime;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
