com.microsoft.graph.beta.generated.models.MacOSWebClip Maven / Gradle / Ivy
package com.microsoft.graph.beta.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;
/**
* Contains properties and inherited properties for macOS web apps.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class MacOSWebClip extends MobileApp implements Parsable {
/**
* Instantiates a new {@link MacOSWebClip} and sets the default values.
*/
public MacOSWebClip() {
super();
this.setOdataType("#microsoft.graph.macOSWebClip");
}
/**
* 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 MacOSWebClip}
*/
@jakarta.annotation.Nonnull
public static MacOSWebClip createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new MacOSWebClip();
}
/**
* Gets the appUrl property value. The web app URL starting with http:// or https://, such as https://learn.microsoft.com/mem/.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getAppUrl() {
return this.backingStore.get("appUrl");
}
/**
* 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("appUrl", (n) -> { this.setAppUrl(n.getStringValue()); });
deserializerMap.put("fullScreenEnabled", (n) -> { this.setFullScreenEnabled(n.getBooleanValue()); });
deserializerMap.put("preComposedIconEnabled", (n) -> { this.setPreComposedIconEnabled(n.getBooleanValue()); });
return deserializerMap;
}
/**
* Gets the fullScreenEnabled property value. Whether or not to open the web clip as a full-screen web app. Defaults to false. If TRUE, opens the web clip as a full-screen web app. If FALSE, the web clip opens inside of another app.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getFullScreenEnabled() {
return this.backingStore.get("fullScreenEnabled");
}
/**
* Gets the preComposedIconEnabled property value. Whether or not the icon for the app is precomosed. Defaults to false. If TRUE, prevents SpringBoard from adding 'shine' to the icon. If FALSE, SpringBoard can add 'shine'.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getPreComposedIconEnabled() {
return this.backingStore.get("preComposedIconEnabled");
}
/**
* 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.writeStringValue("appUrl", this.getAppUrl());
writer.writeBooleanValue("fullScreenEnabled", this.getFullScreenEnabled());
writer.writeBooleanValue("preComposedIconEnabled", this.getPreComposedIconEnabled());
}
/**
* Sets the appUrl property value. The web app URL starting with http:// or https://, such as https://learn.microsoft.com/mem/.
* @param value Value to set for the appUrl property.
*/
public void setAppUrl(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("appUrl", value);
}
/**
* Sets the fullScreenEnabled property value. Whether or not to open the web clip as a full-screen web app. Defaults to false. If TRUE, opens the web clip as a full-screen web app. If FALSE, the web clip opens inside of another app.
* @param value Value to set for the fullScreenEnabled property.
*/
public void setFullScreenEnabled(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("fullScreenEnabled", value);
}
/**
* Sets the preComposedIconEnabled property value. Whether or not the icon for the app is precomosed. Defaults to false. If TRUE, prevents SpringBoard from adding 'shine' to the icon. If FALSE, SpringBoard can add 'shine'.
* @param value Value to set for the preComposedIconEnabled property.
*/
public void setPreComposedIconEnabled(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("preComposedIconEnabled", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy