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

com.microsoft.graph.generated.models.ThumbnailSet Maven / Gradle / Ivy

There is a newer version: 6.20.0
Show newest version
package com.microsoft.graph.models;

import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class ThumbnailSet extends Entity implements Parsable {
    /**
     * Instantiates a new {@link ThumbnailSet} and sets the default values.
     */
    public ThumbnailSet() {
        super();
    }
    /**
     * 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 ThumbnailSet}
     */
    @jakarta.annotation.Nonnull
    public static ThumbnailSet createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
        Objects.requireNonNull(parseNode);
        return new ThumbnailSet();
    }
    /**
     * The deserialization information for the current model
     * @return a {@link Map>}
     */
    @jakarta.annotation.Nonnull
    public Map> getFieldDeserializers() {
        final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers());
        deserializerMap.put("large", (n) -> { this.setLarge(n.getObjectValue(Thumbnail::createFromDiscriminatorValue)); });
        deserializerMap.put("medium", (n) -> { this.setMedium(n.getObjectValue(Thumbnail::createFromDiscriminatorValue)); });
        deserializerMap.put("small", (n) -> { this.setSmall(n.getObjectValue(Thumbnail::createFromDiscriminatorValue)); });
        deserializerMap.put("source", (n) -> { this.setSource(n.getObjectValue(Thumbnail::createFromDiscriminatorValue)); });
        return deserializerMap;
    }
    /**
     * Gets the large property value. A 1920x1920 scaled thumbnail.
     * @return a {@link Thumbnail}
     */
    @jakarta.annotation.Nullable
    public Thumbnail getLarge() {
        return this.backingStore.get("large");
    }
    /**
     * Gets the medium property value. A 176x176 scaled thumbnail.
     * @return a {@link Thumbnail}
     */
    @jakarta.annotation.Nullable
    public Thumbnail getMedium() {
        return this.backingStore.get("medium");
    }
    /**
     * Gets the small property value. A 48x48 cropped thumbnail.
     * @return a {@link Thumbnail}
     */
    @jakarta.annotation.Nullable
    public Thumbnail getSmall() {
        return this.backingStore.get("small");
    }
    /**
     * Gets the source property value. A custom thumbnail image or the original image used to generate other thumbnails.
     * @return a {@link Thumbnail}
     */
    @jakarta.annotation.Nullable
    public Thumbnail getSource() {
        return this.backingStore.get("source");
    }
    /**
     * 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);
        super.serialize(writer);
        writer.writeObjectValue("large", this.getLarge());
        writer.writeObjectValue("medium", this.getMedium());
        writer.writeObjectValue("small", this.getSmall());
        writer.writeObjectValue("source", this.getSource());
    }
    /**
     * Sets the large property value. A 1920x1920 scaled thumbnail.
     * @param value Value to set for the large property.
     */
    public void setLarge(@jakarta.annotation.Nullable final Thumbnail value) {
        this.backingStore.set("large", value);
    }
    /**
     * Sets the medium property value. A 176x176 scaled thumbnail.
     * @param value Value to set for the medium property.
     */
    public void setMedium(@jakarta.annotation.Nullable final Thumbnail value) {
        this.backingStore.set("medium", value);
    }
    /**
     * Sets the small property value. A 48x48 cropped thumbnail.
     * @param value Value to set for the small property.
     */
    public void setSmall(@jakarta.annotation.Nullable final Thumbnail value) {
        this.backingStore.set("small", value);
    }
    /**
     * Sets the source property value. A custom thumbnail image or the original image used to generate other thumbnails.
     * @param value Value to set for the source property.
     */
    public void setSource(@jakarta.annotation.Nullable final Thumbnail value) {
        this.backingStore.set("source", value);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy