com.microsoft.graph.models.ManagedDeviceMobileAppConfiguration 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.ManagedDeviceMobileAppConfigurationDeviceSummary;
import com.microsoft.graph.models.ManagedDeviceMobileAppConfigurationUserSummary;
import com.microsoft.graph.models.Entity;
import com.microsoft.graph.requests.ManagedDeviceMobileAppConfigurationAssignmentCollectionPage;
import com.microsoft.graph.requests.ManagedDeviceMobileAppConfigurationDeviceStatusCollectionPage;
import com.microsoft.graph.requests.ManagedDeviceMobileAppConfigurationUserStatusCollectionPage;
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 Managed Device Mobile App Configuration.
*/
public class ManagedDeviceMobileAppConfiguration extends Entity implements IJsonBackedObject {
/**
* The Created Date Time.
* DateTime the object was created.
*/
@SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"})
@Expose
@Nullable
public java.time.OffsetDateTime createdDateTime;
/**
* The Description.
* Admin provided description of the Device Configuration.
*/
@SerializedName(value = "description", alternate = {"Description"})
@Expose
@Nullable
public String description;
/**
* The Display Name.
* Admin provided name of the device configuration.
*/
@SerializedName(value = "displayName", alternate = {"DisplayName"})
@Expose
@Nullable
public String displayName;
/**
* The Last Modified Date Time.
* DateTime the object was last modified.
*/
@SerializedName(value = "lastModifiedDateTime", alternate = {"LastModifiedDateTime"})
@Expose
@Nullable
public java.time.OffsetDateTime lastModifiedDateTime;
/**
* The Targeted Mobile Apps.
* the associated app.
*/
@SerializedName(value = "targetedMobileApps", alternate = {"TargetedMobileApps"})
@Expose
@Nullable
public java.util.List targetedMobileApps;
/**
* The Version.
* Version of the device configuration.
*/
@SerializedName(value = "version", alternate = {"Version"})
@Expose
@Nullable
public Integer version;
/**
* The Assignments.
* The list of group assignemenets for app configration.
*/
@SerializedName(value = "assignments", alternate = {"Assignments"})
@Expose
@Nullable
public com.microsoft.graph.requests.ManagedDeviceMobileAppConfigurationAssignmentCollectionPage assignments;
/**
* The Device Statuses.
* List of ManagedDeviceMobileAppConfigurationDeviceStatus.
*/
@SerializedName(value = "deviceStatuses", alternate = {"DeviceStatuses"})
@Expose
@Nullable
public com.microsoft.graph.requests.ManagedDeviceMobileAppConfigurationDeviceStatusCollectionPage deviceStatuses;
/**
* The Device Status Summary.
* App configuration device status summary.
*/
@SerializedName(value = "deviceStatusSummary", alternate = {"DeviceStatusSummary"})
@Expose
@Nullable
public ManagedDeviceMobileAppConfigurationDeviceSummary deviceStatusSummary;
/**
* The User Statuses.
* List of ManagedDeviceMobileAppConfigurationUserStatus.
*/
@SerializedName(value = "userStatuses", alternate = {"UserStatuses"})
@Expose
@Nullable
public com.microsoft.graph.requests.ManagedDeviceMobileAppConfigurationUserStatusCollectionPage userStatuses;
/**
* The User Status Summary.
* App configuration user status summary.
*/
@SerializedName(value = "userStatusSummary", alternate = {"UserStatusSummary"})
@Expose
@Nullable
public ManagedDeviceMobileAppConfigurationUserSummary userStatusSummary;
/**
* 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("assignments")) {
assignments = serializer.deserializeObject(json.get("assignments"), com.microsoft.graph.requests.ManagedDeviceMobileAppConfigurationAssignmentCollectionPage.class);
}
if (json.has("deviceStatuses")) {
deviceStatuses = serializer.deserializeObject(json.get("deviceStatuses"), com.microsoft.graph.requests.ManagedDeviceMobileAppConfigurationDeviceStatusCollectionPage.class);
}
if (json.has("userStatuses")) {
userStatuses = serializer.deserializeObject(json.get("userStatuses"), com.microsoft.graph.requests.ManagedDeviceMobileAppConfigurationUserStatusCollectionPage.class);
}
}
}