com.microsoft.graph.beta.generated.models.TeamworkSoftwareUpdateHealth Maven / Gradle / Ivy
package com.microsoft.graph.beta.models;
import com.microsoft.kiota.serialization.AdditionalDataHolder;
import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import com.microsoft.kiota.store.BackedModel;
import com.microsoft.kiota.store.BackingStore;
import com.microsoft.kiota.store.BackingStoreFactorySingleton;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class TeamworkSoftwareUpdateHealth implements AdditionalDataHolder, BackedModel, Parsable {
/**
* Stores model information.
*/
@jakarta.annotation.Nonnull
protected BackingStore backingStore;
/**
* Instantiates a new {@link TeamworkSoftwareUpdateHealth} and sets the default values.
*/
public TeamworkSoftwareUpdateHealth() {
this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore();
this.setAdditionalData(new HashMap<>());
}
/**
* 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 TeamworkSoftwareUpdateHealth}
*/
@jakarta.annotation.Nonnull
public static TeamworkSoftwareUpdateHealth createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new TeamworkSoftwareUpdateHealth();
}
/**
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
* @return a {@link Map}
*/
@jakarta.annotation.Nonnull
public Map getAdditionalData() {
Map value = this.backingStore.get("additionalData");
if(value == null) {
value = new HashMap<>();
this.setAdditionalData(value);
}
return value;
}
/**
* Gets the adminAgentSoftwareUpdateStatus property value. The software update available for the admin agent.
* @return a {@link TeamworkSoftwareUpdateStatus}
*/
@jakarta.annotation.Nullable
public TeamworkSoftwareUpdateStatus getAdminAgentSoftwareUpdateStatus() {
return this.backingStore.get("adminAgentSoftwareUpdateStatus");
}
/**
* Gets the backingStore property value. Stores model information.
* @return a {@link BackingStore}
*/
@jakarta.annotation.Nonnull
public BackingStore getBackingStore() {
return this.backingStore;
}
/**
* Gets the companyPortalSoftwareUpdateStatus property value. The software update available for the company portal.
* @return a {@link TeamworkSoftwareUpdateStatus}
*/
@jakarta.annotation.Nullable
public TeamworkSoftwareUpdateStatus getCompanyPortalSoftwareUpdateStatus() {
return this.backingStore.get("companyPortalSoftwareUpdateStatus");
}
/**
* The deserialization information for the current model
* @return a {@link Map>}
*/
@jakarta.annotation.Nonnull
public Map> getFieldDeserializers() {
final HashMap> deserializerMap = new HashMap>(7);
deserializerMap.put("adminAgentSoftwareUpdateStatus", (n) -> { this.setAdminAgentSoftwareUpdateStatus(n.getObjectValue(TeamworkSoftwareUpdateStatus::createFromDiscriminatorValue)); });
deserializerMap.put("companyPortalSoftwareUpdateStatus", (n) -> { this.setCompanyPortalSoftwareUpdateStatus(n.getObjectValue(TeamworkSoftwareUpdateStatus::createFromDiscriminatorValue)); });
deserializerMap.put("firmwareSoftwareUpdateStatus", (n) -> { this.setFirmwareSoftwareUpdateStatus(n.getObjectValue(TeamworkSoftwareUpdateStatus::createFromDiscriminatorValue)); });
deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); });
deserializerMap.put("operatingSystemSoftwareUpdateStatus", (n) -> { this.setOperatingSystemSoftwareUpdateStatus(n.getObjectValue(TeamworkSoftwareUpdateStatus::createFromDiscriminatorValue)); });
deserializerMap.put("partnerAgentSoftwareUpdateStatus", (n) -> { this.setPartnerAgentSoftwareUpdateStatus(n.getObjectValue(TeamworkSoftwareUpdateStatus::createFromDiscriminatorValue)); });
deserializerMap.put("teamsClientSoftwareUpdateStatus", (n) -> { this.setTeamsClientSoftwareUpdateStatus(n.getObjectValue(TeamworkSoftwareUpdateStatus::createFromDiscriminatorValue)); });
return deserializerMap;
}
/**
* Gets the firmwareSoftwareUpdateStatus property value. The software update available for the firmware.
* @return a {@link TeamworkSoftwareUpdateStatus}
*/
@jakarta.annotation.Nullable
public TeamworkSoftwareUpdateStatus getFirmwareSoftwareUpdateStatus() {
return this.backingStore.get("firmwareSoftwareUpdateStatus");
}
/**
* Gets the @odata.type property value. The OdataType property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getOdataType() {
return this.backingStore.get("odataType");
}
/**
* Gets the operatingSystemSoftwareUpdateStatus property value. The software update available for the operating system.
* @return a {@link TeamworkSoftwareUpdateStatus}
*/
@jakarta.annotation.Nullable
public TeamworkSoftwareUpdateStatus getOperatingSystemSoftwareUpdateStatus() {
return this.backingStore.get("operatingSystemSoftwareUpdateStatus");
}
/**
* Gets the partnerAgentSoftwareUpdateStatus property value. The software update available for the partner agent.
* @return a {@link TeamworkSoftwareUpdateStatus}
*/
@jakarta.annotation.Nullable
public TeamworkSoftwareUpdateStatus getPartnerAgentSoftwareUpdateStatus() {
return this.backingStore.get("partnerAgentSoftwareUpdateStatus");
}
/**
* Gets the teamsClientSoftwareUpdateStatus property value. The software update available for the Teams client.
* @return a {@link TeamworkSoftwareUpdateStatus}
*/
@jakarta.annotation.Nullable
public TeamworkSoftwareUpdateStatus getTeamsClientSoftwareUpdateStatus() {
return this.backingStore.get("teamsClientSoftwareUpdateStatus");
}
/**
* 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);
writer.writeObjectValue("adminAgentSoftwareUpdateStatus", this.getAdminAgentSoftwareUpdateStatus());
writer.writeObjectValue("companyPortalSoftwareUpdateStatus", this.getCompanyPortalSoftwareUpdateStatus());
writer.writeObjectValue("firmwareSoftwareUpdateStatus", this.getFirmwareSoftwareUpdateStatus());
writer.writeStringValue("@odata.type", this.getOdataType());
writer.writeObjectValue("operatingSystemSoftwareUpdateStatus", this.getOperatingSystemSoftwareUpdateStatus());
writer.writeObjectValue("partnerAgentSoftwareUpdateStatus", this.getPartnerAgentSoftwareUpdateStatus());
writer.writeObjectValue("teamsClientSoftwareUpdateStatus", this.getTeamsClientSoftwareUpdateStatus());
writer.writeAdditionalData(this.getAdditionalData());
}
/**
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
* @param value Value to set for the AdditionalData property.
*/
public void setAdditionalData(@jakarta.annotation.Nullable final Map value) {
this.backingStore.set("additionalData", value);
}
/**
* Sets the adminAgentSoftwareUpdateStatus property value. The software update available for the admin agent.
* @param value Value to set for the adminAgentSoftwareUpdateStatus property.
*/
public void setAdminAgentSoftwareUpdateStatus(@jakarta.annotation.Nullable final TeamworkSoftwareUpdateStatus value) {
this.backingStore.set("adminAgentSoftwareUpdateStatus", value);
}
/**
* Sets the backingStore property value. Stores model information.
* @param value Value to set for the backingStore property.
*/
public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) {
Objects.requireNonNull(value);
this.backingStore = value;
}
/**
* Sets the companyPortalSoftwareUpdateStatus property value. The software update available for the company portal.
* @param value Value to set for the companyPortalSoftwareUpdateStatus property.
*/
public void setCompanyPortalSoftwareUpdateStatus(@jakarta.annotation.Nullable final TeamworkSoftwareUpdateStatus value) {
this.backingStore.set("companyPortalSoftwareUpdateStatus", value);
}
/**
* Sets the firmwareSoftwareUpdateStatus property value. The software update available for the firmware.
* @param value Value to set for the firmwareSoftwareUpdateStatus property.
*/
public void setFirmwareSoftwareUpdateStatus(@jakarta.annotation.Nullable final TeamworkSoftwareUpdateStatus value) {
this.backingStore.set("firmwareSoftwareUpdateStatus", value);
}
/**
* Sets the @odata.type property value. The OdataType property
* @param value Value to set for the @odata.type property.
*/
public void setOdataType(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("odataType", value);
}
/**
* Sets the operatingSystemSoftwareUpdateStatus property value. The software update available for the operating system.
* @param value Value to set for the operatingSystemSoftwareUpdateStatus property.
*/
public void setOperatingSystemSoftwareUpdateStatus(@jakarta.annotation.Nullable final TeamworkSoftwareUpdateStatus value) {
this.backingStore.set("operatingSystemSoftwareUpdateStatus", value);
}
/**
* Sets the partnerAgentSoftwareUpdateStatus property value. The software update available for the partner agent.
* @param value Value to set for the partnerAgentSoftwareUpdateStatus property.
*/
public void setPartnerAgentSoftwareUpdateStatus(@jakarta.annotation.Nullable final TeamworkSoftwareUpdateStatus value) {
this.backingStore.set("partnerAgentSoftwareUpdateStatus", value);
}
/**
* Sets the teamsClientSoftwareUpdateStatus property value. The software update available for the Teams client.
* @param value Value to set for the teamsClientSoftwareUpdateStatus property.
*/
public void setTeamsClientSoftwareUpdateStatus(@jakarta.annotation.Nullable final TeamworkSoftwareUpdateStatus value) {
this.backingStore.set("teamsClientSoftwareUpdateStatus", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy