com.microsoft.graph.generated.models.ManagedAndroidStoreApp 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 Android store apps that you can manage with an Intune app protection policy.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class ManagedAndroidStoreApp extends ManagedApp implements Parsable {
/**
* Instantiates a new {@link ManagedAndroidStoreApp} and sets the default values.
*/
public ManagedAndroidStoreApp() {
super();
this.setOdataType("#microsoft.graph.managedAndroidStoreApp");
}
/**
* 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 ManagedAndroidStoreApp}
*/
@jakarta.annotation.Nonnull
public static ManagedAndroidStoreApp createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new ManagedAndroidStoreApp();
}
/**
* Gets the appStoreUrl property value. The Android AppStoreUrl.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getAppStoreUrl() {
return this.backingStore.get("appStoreUrl");
}
/**
* 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("appStoreUrl", (n) -> { this.setAppStoreUrl(n.getStringValue()); });
deserializerMap.put("minimumSupportedOperatingSystem", (n) -> { this.setMinimumSupportedOperatingSystem(n.getObjectValue(AndroidMinimumOperatingSystem::createFromDiscriminatorValue)); });
deserializerMap.put("packageId", (n) -> { this.setPackageId(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the minimumSupportedOperatingSystem property value. Contains properties for the minimum operating system required for an Android mobile app.
* @return a {@link AndroidMinimumOperatingSystem}
*/
@jakarta.annotation.Nullable
public AndroidMinimumOperatingSystem getMinimumSupportedOperatingSystem() {
return this.backingStore.get("minimumSupportedOperatingSystem");
}
/**
* Gets the packageId property value. The app's package ID.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getPackageId() {
return this.backingStore.get("packageId");
}
/**
* 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("appStoreUrl", this.getAppStoreUrl());
writer.writeObjectValue("minimumSupportedOperatingSystem", this.getMinimumSupportedOperatingSystem());
writer.writeStringValue("packageId", this.getPackageId());
}
/**
* Sets the appStoreUrl property value. The Android AppStoreUrl.
* @param value Value to set for the appStoreUrl property.
*/
public void setAppStoreUrl(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("appStoreUrl", value);
}
/**
* Sets the minimumSupportedOperatingSystem property value. Contains properties for the minimum operating system required for an Android mobile app.
* @param value Value to set for the minimumSupportedOperatingSystem property.
*/
public void setMinimumSupportedOperatingSystem(@jakarta.annotation.Nullable final AndroidMinimumOperatingSystem value) {
this.backingStore.set("minimumSupportedOperatingSystem", value);
}
/**
* Sets the packageId property value. The app's package ID.
* @param value Value to set for the packageId property.
*/
public void setPackageId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("packageId", value);
}
}