All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.graph.beta.generated.models.DeviceLocalCredentialInfo 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.time.OffsetDateTime;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class DeviceLocalCredentialInfo extends Entity implements Parsable {
    /**
     * Instantiates a new {@link DeviceLocalCredentialInfo} and sets the default values.
     */
    public DeviceLocalCredentialInfo() {
        super();
    }
    /**
     * 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 DeviceLocalCredentialInfo}
     */
    @jakarta.annotation.Nonnull
    public static DeviceLocalCredentialInfo createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
        Objects.requireNonNull(parseNode);
        return new DeviceLocalCredentialInfo();
    }
    /**
     * Gets the credentials property value. The credentials of the device's local administrator account backed up to Azure Active Directory.
     * @return a {@link java.util.List}
     */
    @jakarta.annotation.Nullable
    public java.util.List getCredentials() {
        return this.backingStore.get("credentials");
    }
    /**
     * Gets the deviceName property value. Display name of the device that the local credentials are associated with.
     * @return a {@link String}
     */
    @jakarta.annotation.Nullable
    public String getDeviceName() {
        return this.backingStore.get("deviceName");
    }
    /**
     * 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("credentials", (n) -> { this.setCredentials(n.getCollectionOfObjectValues(DeviceLocalCredential::createFromDiscriminatorValue)); });
        deserializerMap.put("deviceName", (n) -> { this.setDeviceName(n.getStringValue()); });
        deserializerMap.put("lastBackupDateTime", (n) -> { this.setLastBackupDateTime(n.getOffsetDateTimeValue()); });
        deserializerMap.put("refreshDateTime", (n) -> { this.setRefreshDateTime(n.getOffsetDateTimeValue()); });
        return deserializerMap;
    }
    /**
     * Gets the lastBackupDateTime property value. When the local administrator account credential was backed up to Microsoft Entra ID.
     * @return a {@link OffsetDateTime}
     */
    @jakarta.annotation.Nullable
    public OffsetDateTime getLastBackupDateTime() {
        return this.backingStore.get("lastBackupDateTime");
    }
    /**
     * Gets the refreshDateTime property value. When the local administrator account credential will be refreshed and backed up to Microsoft Entra ID.
     * @return a {@link OffsetDateTime}
     */
    @jakarta.annotation.Nullable
    public OffsetDateTime getRefreshDateTime() {
        return this.backingStore.get("refreshDateTime");
    }
    /**
     * 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.writeCollectionOfObjectValues("credentials", this.getCredentials());
        writer.writeStringValue("deviceName", this.getDeviceName());
        writer.writeOffsetDateTimeValue("lastBackupDateTime", this.getLastBackupDateTime());
        writer.writeOffsetDateTimeValue("refreshDateTime", this.getRefreshDateTime());
    }
    /**
     * Sets the credentials property value. The credentials of the device's local administrator account backed up to Azure Active Directory.
     * @param value Value to set for the credentials property.
     */
    public void setCredentials(@jakarta.annotation.Nullable final java.util.List value) {
        this.backingStore.set("credentials", value);
    }
    /**
     * Sets the deviceName property value. Display name of the device that the local credentials are associated with.
     * @param value Value to set for the deviceName property.
     */
    public void setDeviceName(@jakarta.annotation.Nullable final String value) {
        this.backingStore.set("deviceName", value);
    }
    /**
     * Sets the lastBackupDateTime property value. When the local administrator account credential was backed up to Microsoft Entra ID.
     * @param value Value to set for the lastBackupDateTime property.
     */
    public void setLastBackupDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
        this.backingStore.set("lastBackupDateTime", value);
    }
    /**
     * Sets the refreshDateTime property value. When the local administrator account credential will be refreshed and backed up to Microsoft Entra ID.
     * @param value Value to set for the refreshDateTime property.
     */
    public void setRefreshDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
        this.backingStore.set("refreshDateTime", value);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy