com.microsoft.graph.models.EndUserNotification Maven / Gradle / Ivy
// Template Source: BaseEntity.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
package com.microsoft.graph.models;
import com.microsoft.graph.serializer.ISerializer;
import com.microsoft.graph.serializer.IJsonBackedObject;
import com.microsoft.graph.serializer.AdditionalDataManager;
import java.util.EnumSet;
import com.microsoft.graph.http.BaseCollectionPage;
import com.microsoft.graph.models.EmailIdentity;
import com.microsoft.graph.models.EndUserNotificationType;
import com.microsoft.graph.models.SimulationContentSource;
import com.microsoft.graph.models.SimulationContentStatus;
import com.microsoft.graph.models.Entity;
import com.microsoft.graph.requests.EndUserNotificationDetailCollectionPage;
import com.google.gson.JsonObject;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import javax.annotation.Nullable;
import javax.annotation.Nonnull;
// **NOTE** This file was generated by a tool and any changes will be overwritten.
/**
* The class for the End User Notification.
*/
public class EndUserNotification extends Entity implements IJsonBackedObject {
/**
* The Created By.
*
*/
@SerializedName(value = "createdBy", alternate = {"CreatedBy"})
@Expose
@Nullable
public EmailIdentity createdBy;
/**
* The Created Date Time.
*
*/
@SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"})
@Expose
@Nullable
public java.time.OffsetDateTime createdDateTime;
/**
* The Description.
*
*/
@SerializedName(value = "description", alternate = {"Description"})
@Expose
@Nullable
public String description;
/**
* The Display Name.
*
*/
@SerializedName(value = "displayName", alternate = {"DisplayName"})
@Expose
@Nullable
public String displayName;
/**
* The Last Modified By.
*
*/
@SerializedName(value = "lastModifiedBy", alternate = {"LastModifiedBy"})
@Expose
@Nullable
public EmailIdentity lastModifiedBy;
/**
* The Last Modified Date Time.
*
*/
@SerializedName(value = "lastModifiedDateTime", alternate = {"LastModifiedDateTime"})
@Expose
@Nullable
public java.time.OffsetDateTime lastModifiedDateTime;
/**
* The Notification Type.
*
*/
@SerializedName(value = "notificationType", alternate = {"NotificationType"})
@Expose
@Nullable
public EndUserNotificationType notificationType;
/**
* The Source.
*
*/
@SerializedName(value = "source", alternate = {"Source"})
@Expose
@Nullable
public SimulationContentSource source;
/**
* The Status.
*
*/
@SerializedName(value = "status", alternate = {"Status"})
@Expose
@Nullable
public SimulationContentStatus status;
/**
* The Supported Locales.
*
*/
@SerializedName(value = "supportedLocales", alternate = {"SupportedLocales"})
@Expose
@Nullable
public java.util.List supportedLocales;
/**
* The Details.
*
*/
@SerializedName(value = "details", alternate = {"Details"})
@Expose
@Nullable
public com.microsoft.graph.requests.EndUserNotificationDetailCollectionPage details;
/**
* Sets the raw JSON object
*
* @param serializer the serializer
* @param json the JSON object to set this object to
*/
public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {
if (json.has("details")) {
details = serializer.deserializeObject(json.get("details"), com.microsoft.graph.requests.EndUserNotificationDetailCollectionPage.class);
}
}
}