com.microsoft.graph.generated.models.ManagedIOSLobApp 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.time.OffsetDateTime;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/**
* Contains properties and inherited properties for Managed iOS Line Of Business apps.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class ManagedIOSLobApp extends ManagedMobileLobApp implements Parsable {
/**
* Instantiates a new {@link ManagedIOSLobApp} and sets the default values.
*/
public ManagedIOSLobApp() {
super();
this.setOdataType("#microsoft.graph.managedIOSLobApp");
}
/**
* 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 ManagedIOSLobApp}
*/
@jakarta.annotation.Nonnull
public static ManagedIOSLobApp createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new ManagedIOSLobApp();
}
/**
* Gets the applicableDeviceType property value. Contains properties of the possible iOS device types the mobile app can run on.
* @return a {@link IosDeviceType}
*/
@jakarta.annotation.Nullable
public IosDeviceType getApplicableDeviceType() {
return this.backingStore.get("applicableDeviceType");
}
/**
* Gets the buildNumber property value. The build number of managed iOS Line of Business (LoB) app.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getBuildNumber() {
return this.backingStore.get("buildNumber");
}
/**
* Gets the bundleId property value. The Identity Name.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getBundleId() {
return this.backingStore.get("bundleId");
}
/**
* Gets the expirationDateTime property value. The expiration time.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getExpirationDateTime() {
return this.backingStore.get("expirationDateTime");
}
/**
* 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("applicableDeviceType", (n) -> { this.setApplicableDeviceType(n.getObjectValue(IosDeviceType::createFromDiscriminatorValue)); });
deserializerMap.put("buildNumber", (n) -> { this.setBuildNumber(n.getStringValue()); });
deserializerMap.put("bundleId", (n) -> { this.setBundleId(n.getStringValue()); });
deserializerMap.put("expirationDateTime", (n) -> { this.setExpirationDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("minimumSupportedOperatingSystem", (n) -> { this.setMinimumSupportedOperatingSystem(n.getObjectValue(IosMinimumOperatingSystem::createFromDiscriminatorValue)); });
deserializerMap.put("versionNumber", (n) -> { this.setVersionNumber(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the minimumSupportedOperatingSystem property value. The value for the minimum applicable operating system.
* @return a {@link IosMinimumOperatingSystem}
*/
@jakarta.annotation.Nullable
public IosMinimumOperatingSystem getMinimumSupportedOperatingSystem() {
return this.backingStore.get("minimumSupportedOperatingSystem");
}
/**
* Gets the versionNumber property value. The version number of managed iOS Line of Business (LoB) app.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getVersionNumber() {
return this.backingStore.get("versionNumber");
}
/**
* 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("applicableDeviceType", this.getApplicableDeviceType());
writer.writeStringValue("buildNumber", this.getBuildNumber());
writer.writeStringValue("bundleId", this.getBundleId());
writer.writeOffsetDateTimeValue("expirationDateTime", this.getExpirationDateTime());
writer.writeObjectValue("minimumSupportedOperatingSystem", this.getMinimumSupportedOperatingSystem());
writer.writeStringValue("versionNumber", this.getVersionNumber());
}
/**
* Sets the applicableDeviceType property value. Contains properties of the possible iOS device types the mobile app can run on.
* @param value Value to set for the applicableDeviceType property.
*/
public void setApplicableDeviceType(@jakarta.annotation.Nullable final IosDeviceType value) {
this.backingStore.set("applicableDeviceType", value);
}
/**
* Sets the buildNumber property value. The build number of managed iOS Line of Business (LoB) app.
* @param value Value to set for the buildNumber property.
*/
public void setBuildNumber(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("buildNumber", value);
}
/**
* Sets the bundleId property value. The Identity Name.
* @param value Value to set for the bundleId property.
*/
public void setBundleId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("bundleId", value);
}
/**
* Sets the expirationDateTime property value. The expiration time.
* @param value Value to set for the expirationDateTime property.
*/
public void setExpirationDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("expirationDateTime", value);
}
/**
* Sets the minimumSupportedOperatingSystem property value. The value for the minimum applicable operating system.
* @param value Value to set for the minimumSupportedOperatingSystem property.
*/
public void setMinimumSupportedOperatingSystem(@jakarta.annotation.Nullable final IosMinimumOperatingSystem value) {
this.backingStore.set("minimumSupportedOperatingSystem", value);
}
/**
* Sets the versionNumber property value. The version number of managed iOS Line of Business (LoB) app.
* @param value Value to set for the versionNumber property.
*/
public void setVersionNumber(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("versionNumber", value);
}
}