com.microsoft.graph.beta.generated.models.MatchingLabel Maven / Gradle / Ivy
package com.microsoft.graph.beta.models;
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 MatchingLabel implements AdditionalDataHolder, BackedModel, Parsable {
/**
* Stores model information.
*/
@jakarta.annotation.Nonnull
protected BackingStore backingStore;
/**
* Instantiates a new {@link MatchingLabel} and sets the default values.
*/
public MatchingLabel() {
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 MatchingLabel}
*/
@jakarta.annotation.Nonnull
public static MatchingLabel createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new MatchingLabel();
}
/**
* 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 applicationMode property value. The applicationMode property
* @return a {@link ApplicationMode}
*/
@jakarta.annotation.Nullable
public ApplicationMode getApplicationMode() {
return this.backingStore.get("applicationMode");
}
/**
* Gets the backingStore property value. Stores model information.
* @return a {@link BackingStore}
*/
@jakarta.annotation.Nonnull
public BackingStore getBackingStore() {
return this.backingStore;
}
/**
* Gets the description property value. The description property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDescription() {
return this.backingStore.get("description");
}
/**
* Gets the displayName property value. The displayName property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDisplayName() {
return this.backingStore.get("displayName");
}
/**
* 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("applicationMode", (n) -> { this.setApplicationMode(n.getEnumValue(ApplicationMode::forValue)); });
deserializerMap.put("description", (n) -> { this.setDescription(n.getStringValue()); });
deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); });
deserializerMap.put("id", (n) -> { this.setId(n.getStringValue()); });
deserializerMap.put("isEndpointProtectionEnabled", (n) -> { this.setIsEndpointProtectionEnabled(n.getBooleanValue()); });
deserializerMap.put("labelActions", (n) -> { this.setLabelActions(n.getCollectionOfObjectValues(LabelActionBase::createFromDiscriminatorValue)); });
deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); });
deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); });
deserializerMap.put("policyTip", (n) -> { this.setPolicyTip(n.getStringValue()); });
deserializerMap.put("priority", (n) -> { this.setPriority(n.getIntegerValue()); });
deserializerMap.put("toolTip", (n) -> { this.setToolTip(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the id property value. The id property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getId() {
return this.backingStore.get("id");
}
/**
* Gets the isEndpointProtectionEnabled property value. The isEndpointProtectionEnabled property
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getIsEndpointProtectionEnabled() {
return this.backingStore.get("isEndpointProtectionEnabled");
}
/**
* Gets the labelActions property value. The labelActions property
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getLabelActions() {
return this.backingStore.get("labelActions");
}
/**
* Gets the name property value. The name property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getName() {
return this.backingStore.get("name");
}
/**
* Gets the @odata.type property value. The OdataType property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getOdataType() {
return this.backingStore.get("odataType");
}
/**
* Gets the policyTip property value. The policyTip property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getPolicyTip() {
return this.backingStore.get("policyTip");
}
/**
* Gets the priority property value. The priority property
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getPriority() {
return this.backingStore.get("priority");
}
/**
* Gets the toolTip property value. The toolTip property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getToolTip() {
return this.backingStore.get("toolTip");
}
/**
* Serializes information the current object
* @param writer Serialization writer to use to serialize this model
*/
public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) {
Objects.requireNonNull(writer);
writer.writeEnumValue("applicationMode", this.getApplicationMode());
writer.writeStringValue("description", this.getDescription());
writer.writeStringValue("displayName", this.getDisplayName());
writer.writeStringValue("id", this.getId());
writer.writeBooleanValue("isEndpointProtectionEnabled", this.getIsEndpointProtectionEnabled());
writer.writeCollectionOfObjectValues("labelActions", this.getLabelActions());
writer.writeStringValue("name", this.getName());
writer.writeStringValue("@odata.type", this.getOdataType());
writer.writeStringValue("policyTip", this.getPolicyTip());
writer.writeIntegerValue("priority", this.getPriority());
writer.writeStringValue("toolTip", this.getToolTip());
writer.writeAdditionalData(this.getAdditionalData());
}
/**
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
* @param value Value to set for the AdditionalData property.
*/
public void setAdditionalData(@jakarta.annotation.Nullable final Map value) {
this.backingStore.set("additionalData", value);
}
/**
* Sets the applicationMode property value. The applicationMode property
* @param value Value to set for the applicationMode property.
*/
public void setApplicationMode(@jakarta.annotation.Nullable final ApplicationMode value) {
this.backingStore.set("applicationMode", value);
}
/**
* Sets the backingStore property value. Stores model information.
* @param value Value to set for the backingStore property.
*/
public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) {
Objects.requireNonNull(value);
this.backingStore = value;
}
/**
* Sets the description property value. The description property
* @param value Value to set for the description property.
*/
public void setDescription(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("description", value);
}
/**
* Sets the displayName property value. The displayName property
* @param value Value to set for the displayName property.
*/
public void setDisplayName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("displayName", value);
}
/**
* Sets the id property value. The id property
* @param value Value to set for the id property.
*/
public void setId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("id", value);
}
/**
* Sets the isEndpointProtectionEnabled property value. The isEndpointProtectionEnabled property
* @param value Value to set for the isEndpointProtectionEnabled property.
*/
public void setIsEndpointProtectionEnabled(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("isEndpointProtectionEnabled", value);
}
/**
* Sets the labelActions property value. The labelActions property
* @param value Value to set for the labelActions property.
*/
public void setLabelActions(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("labelActions", value);
}
/**
* Sets the name property value. The name property
* @param value Value to set for the name property.
*/
public void setName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("name", value);
}
/**
* Sets the @odata.type property value. The OdataType property
* @param value Value to set for the @odata.type property.
*/
public void setOdataType(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("odataType", value);
}
/**
* Sets the policyTip property value. The policyTip property
* @param value Value to set for the policyTip property.
*/
public void setPolicyTip(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("policyTip", value);
}
/**
* Sets the priority property value. The priority property
* @param value Value to set for the priority property.
*/
public void setPriority(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("priority", value);
}
/**
* Sets the toolTip property value. The toolTip property
* @param value Value to set for the toolTip property.
*/
public void setToolTip(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("toolTip", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy