All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.graph.externalconnectors.models.ExternalConnection 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.externalconnectors.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.externalconnectors.models.ActivitySettings;
import com.microsoft.graph.externalconnectors.models.Configuration;
import com.microsoft.graph.externalconnectors.models.SearchSettings;
import com.microsoft.graph.externalconnectors.models.ConnectionState;
import com.microsoft.graph.externalconnectors.models.Schema;
import com.microsoft.graph.models.Entity;
import com.microsoft.graph.externalconnectors.requests.ExternalGroupCollectionPage;
import com.microsoft.graph.externalconnectors.requests.ExternalItemCollectionPage;
import com.microsoft.graph.externalconnectors.requests.ConnectionOperationCollectionPage;


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 External Connection.
 */
public class ExternalConnection extends Entity implements IJsonBackedObject {


    /**
     * The Activity Settings.
     * Collects configurable settings related to activities involving connector content.
     */
    @SerializedName(value = "activitySettings", alternate = {"ActivitySettings"})
    @Expose
	@Nullable
    public ActivitySettings activitySettings;

    /**
     * The Configuration.
     * Specifies additional application IDs that are allowed to manage the connection and to index content in the connection. Optional.
     */
    @SerializedName(value = "configuration", alternate = {"Configuration"})
    @Expose
	@Nullable
    public Configuration configuration;

    /**
     * The Description.
     * Description of the connection displayed in the Microsoft 365 admin center. Optional.
     */
    @SerializedName(value = "description", alternate = {"Description"})
    @Expose
	@Nullable
    public String description;

    /**
     * The Name.
     * The display name of the connection to be displayed in the Microsoft 365 admin center. Maximum length of 128 characters. Required.
     */
    @SerializedName(value = "name", alternate = {"Name"})
    @Expose
	@Nullable
    public String name;

    /**
     * The Search Settings.
     * The settings configuring the search experience for content in this connection, such as the display templates for search results.
     */
    @SerializedName(value = "searchSettings", alternate = {"SearchSettings"})
    @Expose
	@Nullable
    public SearchSettings searchSettings;

    /**
     * The State.
     * Indicates the current state of the connection. Possible values are: draft, ready, obsolete, limitExceeded, unknownFutureValue.
     */
    @SerializedName(value = "state", alternate = {"State"})
    @Expose
	@Nullable
    public ConnectionState state;

    /**
     * The Groups.
     * 
     */
    @SerializedName(value = "groups", alternate = {"Groups"})
    @Expose
	@Nullable
    public com.microsoft.graph.externalconnectors.requests.ExternalGroupCollectionPage groups;

    /**
     * The Items.
     * 
     */
    @SerializedName(value = "items", alternate = {"Items"})
    @Expose
	@Nullable
    public com.microsoft.graph.externalconnectors.requests.ExternalItemCollectionPage items;

    /**
     * The Operations.
     * 
     */
    @SerializedName(value = "operations", alternate = {"Operations"})
    @Expose
	@Nullable
    public com.microsoft.graph.externalconnectors.requests.ConnectionOperationCollectionPage operations;

    /**
     * The Schema.
     * 
     */
    @SerializedName(value = "schema", alternate = {"Schema"})
    @Expose
	@Nullable
    public Schema schema;


    /**
     * 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("groups")) {
            groups = serializer.deserializeObject(json.get("groups"), com.microsoft.graph.externalconnectors.requests.ExternalGroupCollectionPage.class);
        }

        if (json.has("items")) {
            items = serializer.deserializeObject(json.get("items"), com.microsoft.graph.externalconnectors.requests.ExternalItemCollectionPage.class);
        }

        if (json.has("operations")) {
            operations = serializer.deserializeObject(json.get("operations"), com.microsoft.graph.externalconnectors.requests.ConnectionOperationCollectionPage.class);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy