com.microsoft.graph.generated.models.IosiPadOSWebClip Maven / Gradle / Ivy
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;
/**
* 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("useManagedBrowser", (n) -> { this.setUseManagedBrowser(n.getBooleanValue()); });
return deserializerMap;
}
/**
* 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("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 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);
}
}