|
| 1 | +// Template Source: BaseEntity.java.tt |
| 2 | +// ------------------------------------------------------------------------------ |
| 3 | +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. |
| 4 | +// ------------------------------------------------------------------------------ |
| 5 | + |
| 6 | +package com.microsoft.graph.externalconnectors.models; |
| 7 | +import com.microsoft.graph.serializer.ISerializer; |
| 8 | +import com.microsoft.graph.serializer.IJsonBackedObject; |
| 9 | +import com.microsoft.graph.serializer.AdditionalDataManager; |
| 10 | +import java.util.EnumSet; |
| 11 | +import com.microsoft.graph.http.BaseCollectionPage; |
| 12 | +import com.microsoft.graph.externalconnectors.models.PropertyRule; |
| 13 | + |
| 14 | + |
| 15 | +import com.google.gson.JsonObject; |
| 16 | +import com.google.gson.annotations.SerializedName; |
| 17 | +import com.google.gson.annotations.Expose; |
| 18 | +import javax.annotation.Nullable; |
| 19 | +import javax.annotation.Nonnull; |
| 20 | + |
| 21 | +// **NOTE** This file was generated by a tool and any changes will be overwritten. |
| 22 | + |
| 23 | +/** |
| 24 | + * The class for the Display Template. |
| 25 | + */ |
| 26 | +public class DisplayTemplate implements IJsonBackedObject { |
| 27 | + |
| 28 | + /** the OData type of the object as returned by the service */ |
| 29 | + @SerializedName("@odata.type") |
| 30 | + @Expose |
| 31 | + @Nullable |
| 32 | + public String oDataType; |
| 33 | + |
| 34 | + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); |
| 35 | + |
| 36 | + @Override |
| 37 | + @Nonnull |
| 38 | + public final AdditionalDataManager additionalDataManager() { |
| 39 | + return additionalDataManager; |
| 40 | + } |
| 41 | + |
| 42 | + /** |
| 43 | + * The Id. |
| 44 | + * The text identifier for the display template; for example, contosoTickets. Maximum 16 characters. Only alphanumeric characters allowed. |
| 45 | + */ |
| 46 | + @SerializedName(value = "id", alternate = {"Id"}) |
| 47 | + @Expose |
| 48 | + @Nullable |
| 49 | + public String id; |
| 50 | + |
| 51 | + /** |
| 52 | + * The Layout. |
| 53 | + * The definition of the content's appearance, represented by an Adaptive Card, which is a JSON-serialized card object model. |
| 54 | + */ |
| 55 | + @SerializedName(value = "layout", alternate = {"Layout"}) |
| 56 | + @Expose |
| 57 | + @Nullable |
| 58 | + public com.google.gson.JsonElement layout; |
| 59 | + |
| 60 | + /** |
| 61 | + * The Priority. |
| 62 | + * Defines the priority of a display template. A display template with priority 1 is evaluated before a template with priority 4. Gaps in priority values are supported. Must be positive value. |
| 63 | + */ |
| 64 | + @SerializedName(value = "priority", alternate = {"Priority"}) |
| 65 | + @Expose |
| 66 | + @Nullable |
| 67 | + public Integer priority; |
| 68 | + |
| 69 | + /** |
| 70 | + * The Rules. |
| 71 | + * Specifies additional rules for selecting this display template based on the item schema. Optional. |
| 72 | + */ |
| 73 | + @SerializedName(value = "rules", alternate = {"Rules"}) |
| 74 | + @Expose |
| 75 | + @Nullable |
| 76 | + public java.util.List<PropertyRule> rules; |
| 77 | + |
| 78 | + |
| 79 | + /** |
| 80 | + * Sets the raw JSON object |
| 81 | + * |
| 82 | + * @param serializer the serializer |
| 83 | + * @param json the JSON object to set this object to |
| 84 | + */ |
| 85 | + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { |
| 86 | + |
| 87 | + } |
| 88 | +} |
0 commit comments