|
| 1 | +// ------------------------------------------------------------------------------ |
| 2 | +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. |
| 3 | +// ------------------------------------------------------------------------------ |
| 4 | + |
| 5 | +package com.microsoft.graph.models.extensions; |
| 6 | +import com.microsoft.graph.serializer.ISerializer; |
| 7 | +import com.microsoft.graph.serializer.IJsonBackedObject; |
| 8 | +import com.microsoft.graph.serializer.AdditionalDataManager; |
| 9 | +import java.util.EnumSet; |
| 10 | +import com.microsoft.graph.models.extensions.ResourcePermission; |
| 11 | + |
| 12 | + |
| 13 | +import com.google.gson.JsonObject; |
| 14 | +import com.google.gson.annotations.SerializedName; |
| 15 | +import com.google.gson.annotations.Expose; |
| 16 | + |
| 17 | +// **NOTE** This file was generated by a tool and any changes will be overwritten. |
| 18 | + |
| 19 | +/** |
| 20 | + * The class for the Instance Resource Access. |
| 21 | + */ |
| 22 | +public class InstanceResourceAccess implements IJsonBackedObject { |
| 23 | + |
| 24 | + @SerializedName("@odata.type") |
| 25 | + @Expose |
| 26 | + public String oDataType; |
| 27 | + |
| 28 | + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); |
| 29 | + |
| 30 | + @Override |
| 31 | + public final AdditionalDataManager additionalDataManager() { |
| 32 | + return additionalDataManager; |
| 33 | + } |
| 34 | + |
| 35 | + /** |
| 36 | + * The Permissions. |
| 37 | + * |
| 38 | + */ |
| 39 | + @SerializedName(value = "permissions", alternate = {"Permissions"}) |
| 40 | + @Expose |
| 41 | + public java.util.List<ResourcePermission> permissions; |
| 42 | + |
| 43 | + /** |
| 44 | + * The Resource App Id. |
| 45 | + * |
| 46 | + */ |
| 47 | + @SerializedName(value = "resourceAppId", alternate = {"ResourceAppId"}) |
| 48 | + @Expose |
| 49 | + public String resourceAppId; |
| 50 | + |
| 51 | + |
| 52 | + /** |
| 53 | + * The raw representation of this class |
| 54 | + */ |
| 55 | + private JsonObject rawObject; |
| 56 | + |
| 57 | + /** |
| 58 | + * The serializer |
| 59 | + */ |
| 60 | + private ISerializer serializer; |
| 61 | + |
| 62 | + /** |
| 63 | + * Gets the raw representation of this class |
| 64 | + * |
| 65 | + * @return the raw representation of this class |
| 66 | + */ |
| 67 | + public JsonObject getRawObject() { |
| 68 | + return rawObject; |
| 69 | + } |
| 70 | + |
| 71 | + /** |
| 72 | + * Gets serializer |
| 73 | + * |
| 74 | + * @return the serializer |
| 75 | + */ |
| 76 | + protected ISerializer getSerializer() { |
| 77 | + return serializer; |
| 78 | + } |
| 79 | + |
| 80 | + /** |
| 81 | + * Sets the raw JSON object |
| 82 | + * |
| 83 | + * @param serializer the serializer |
| 84 | + * @param json the JSON object to set this object to |
| 85 | + */ |
| 86 | + public void setRawObject(final ISerializer serializer, final JsonObject json) { |
| 87 | + this.serializer = serializer; |
| 88 | + rawObject = json; |
| 89 | + |
| 90 | + } |
| 91 | +} |
0 commit comments