com.microsoft.graph.beta.generated.models.IosiPadOSWebClip 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 iOS web apps.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class IosiPadOSWebClip extends MobileApp implements Parsable {
/**
* Instantiates a new {@link IosiPadOSWebClip} and sets the default values.
*/
public IosiPadOSWebClip() {
super();
this.setOdataType("#microsoft.graph.iosiPadOSWebClip");
}
/**
* 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 IosiPadOSWebClip}
*/
@jakarta.annotation.Nonnull
public static IosiPadOSWebClip createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new IosiPadOSWebClip();
}
/**
* Gets the appUrl property value. Indicates iOS/iPadOS web clip app URL. Example: 'https://www.contoso.com'
* @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("ignoreManifestScope", (n) -> { this.setIgnoreManifestScope(n.getBooleanValue()); });
deserializerMap.put("preComposedIconEnabled", (n) -> { this.setPreComposedIconEnabled(n.getBooleanValue()); });
deserializerMap.put("targetApplicationBundleIdentifier", (n) -> { this.setTargetApplicationBundleIdentifier(n.getStringValue()); });
deserializerMap.put("useManagedBrowser", (n) -> { this.setUseManagedBrowser(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, such as Safari or the app specified with targetApplicationBundleIdentifier.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getFullScreenEnabled() {
return this.backingStore.get("fullScreenEnabled");
}
/**
* Gets the ignoreManifestScope property value. Whether or not a full screen web clip can navigate to an external web site without showing the Safari UI. Defaults to false. If FALSE, the Safari UI appears when navigating away. If TRUE, the Safari UI will not be shown.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getIgnoreManifestScope() {
return this.backingStore.get("ignoreManifestScope");
}
/**
* 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");
}
/**
* Gets the targetApplicationBundleIdentifier property value. Specifies the application bundle identifier which opens the URL. Available in iOS 14 and later.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getTargetApplicationBundleIdentifier() {
return this.backingStore.get("targetApplicationBundleIdentifier");
}
/**
* Gets the useManagedBrowser property value. Whether or not to use managed browser. When TRUE, the app will be required to be opened in Microsoft Edge. When FALSE, the app will not be required to be opened in Microsoft Edge. By default, this property is set to FALSE.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getUseManagedBrowser() {
return this.backingStore.get("useManagedBrowser");
}
/**
* 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("ignoreManifestScope", this.getIgnoreManifestScope());
writer.writeBooleanValue("preComposedIconEnabled", this.getPreComposedIconEnabled());
writer.writeStringValue("targetApplicationBundleIdentifier", this.getTargetApplicationBundleIdentifier());
writer.writeBooleanValue("useManagedBrowser", this.getUseManagedBrowser());
}
/**
* Sets the appUrl property value. Indicates iOS/iPadOS web clip app URL. Example: 'https://www.contoso.com'
* @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, such as Safari or the app specified with targetApplicationBundleIdentifier.
* @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 ignoreManifestScope property value. Whether or not a full screen web clip can navigate to an external web site without showing the Safari UI. Defaults to false. If FALSE, the Safari UI appears when navigating away. If TRUE, the Safari UI will not be shown.
* @param value Value to set for the ignoreManifestScope property.
*/
public void setIgnoreManifestScope(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("ignoreManifestScope", 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);
}
/**
* Sets the targetApplicationBundleIdentifier property value. Specifies the application bundle identifier which opens the URL. Available in iOS 14 and later.
* @param value Value to set for the targetApplicationBundleIdentifier property.
*/
public void setTargetApplicationBundleIdentifier(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("targetApplicationBundleIdentifier", value);
}
/**
* Sets the useManagedBrowser property value. Whether or not to use managed browser. When TRUE, the app will be required to be opened in Microsoft Edge. When FALSE, the app will not be required to be opened in Microsoft Edge. By default, this property is set to FALSE.
* @param value Value to set for the useManagedBrowser property.
*/
public void setUseManagedBrowser(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("useManagedBrowser", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy