Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package com.microsoft.graph.beta.models.externalconnectors;
import com.microsoft.kiota.serialization.AdditionalDataHolder;
import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import com.microsoft.kiota.store.BackedModel;
import com.microsoft.kiota.store.BackingStore;
import com.microsoft.kiota.store.BackingStoreFactorySingleton;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class Property implements AdditionalDataHolder, BackedModel, Parsable {
/**
* Stores model information.
*/
@jakarta.annotation.Nonnull
protected BackingStore backingStore;
/**
* Instantiates a new {@link Property} and sets the default values.
*/
public Property() {
this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore();
this.setAdditionalData(new HashMap<>());
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @return a {@link Property}
*/
@jakarta.annotation.Nonnull
public static Property createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new Property();
}
/**
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
* @return a {@link Map}
*/
@jakarta.annotation.Nonnull
public Map getAdditionalData() {
Map value = this.backingStore.get("additionalData");
if(value == null) {
value = new HashMap<>();
this.setAdditionalData(value);
}
return value;
}
/**
* Gets the aliases property value. A set of aliases or friendly names for the property. Maximum 32 characters. Only alphanumeric characters allowed. For example, each string might not contain control characters, whitespace, or any of the following: :, ;, ,, (, ), [, ], {, }, %, $, +, !, *, =, &, ?, @, #, /, ~, ', ', <, >, `, ^. Optional.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getAliases() {
return this.backingStore.get("aliases");
}
/**
* Gets the backingStore property value. Stores model information.
* @return a {@link BackingStore}
*/
@jakarta.annotation.Nonnull
public BackingStore getBackingStore() {
return this.backingStore;
}
/**
* The deserialization information for the current model
* @return a {@link Map>}
*/
@jakarta.annotation.Nonnull
public Map> getFieldDeserializers() {
final HashMap> deserializerMap = new HashMap>(11);
deserializerMap.put("aliases", (n) -> { this.setAliases(n.getCollectionOfPrimitiveValues(String.class)); });
deserializerMap.put("isExactMatchRequired", (n) -> { this.setIsExactMatchRequired(n.getBooleanValue()); });
deserializerMap.put("isQueryable", (n) -> { this.setIsQueryable(n.getBooleanValue()); });
deserializerMap.put("isRefinable", (n) -> { this.setIsRefinable(n.getBooleanValue()); });
deserializerMap.put("isRetrievable", (n) -> { this.setIsRetrievable(n.getBooleanValue()); });
deserializerMap.put("isSearchable", (n) -> { this.setIsSearchable(n.getBooleanValue()); });
deserializerMap.put("labels", (n) -> { this.setLabels(n.getCollectionOfEnumValues(Label::forValue)); });
deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); });
deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); });
deserializerMap.put("rankingHint", (n) -> { this.setRankingHint(n.getObjectValue(RankingHint::createFromDiscriminatorValue)); });
deserializerMap.put("type", (n) -> { this.setType(n.getEnumValue(PropertyType::forValue)); });
return deserializerMap;
}
/**
* Gets the isExactMatchRequired property value. Specifies if the property will be matched exactly for queries. Exact matching can only be set to true for non-searchable properties of type string or stringCollection. Optional.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getIsExactMatchRequired() {
return this.backingStore.get("isExactMatchRequired");
}
/**
* Gets the isQueryable property value. Specifies if the property is queryable. Queryable properties can be used in Keyword Query Language (KQL) queries. Optional.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getIsQueryable() {
return this.backingStore.get("isQueryable");
}
/**
* Gets the isRefinable property value. Specifies if the property is refinable. Refinable properties can be used to filter search results in the Search API and add a refiner control in the Microsoft Search user experience. Optional.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getIsRefinable() {
return this.backingStore.get("isRefinable");
}
/**
* Gets the isRetrievable property value. Specifies if the property is retrievable. Retrievable properties are returned in the result set when items are returned by the search API. Retrievable properties are also available to add to the display template used to render search results. Optional.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getIsRetrievable() {
return this.backingStore.get("isRetrievable");
}
/**
* Gets the isSearchable property value. Specifies if the property is searchable. Only properties of type string or stringCollection can be searchable. Non-searchable properties aren't added to the search index. Optional.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getIsSearchable() {
return this.backingStore.get("isSearchable");
}
/**
* Gets the labels property value. Specifies one or more well-known tags added against a property. Labels help Microsoft Search understand the semantics of the data in the connection. Adding appropriate labels would result in an enhanced search experience (for example, better relevance). Optional.The possible values are: title, url, createdBy, lastModifiedBy, authors, createdDateTime, lastModifiedDateTime, fileName, fileExtension, unknownFutureValue, containerName, containerUrl, iconUrl. You must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: containerName, containerUrl, iconUrl.
* @return a {@link java.util.List