com.microsoft.graph.beta.generated.models.WindowsUpdateRolloutSettings 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.time.OffsetDateTime;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/**
* A complex type to store the windows update rollout settings including offer start date time, offer end date time, and days between each set of offers.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class WindowsUpdateRolloutSettings implements AdditionalDataHolder, BackedModel, Parsable {
/**
* Stores model information.
*/
@jakarta.annotation.Nonnull
protected BackingStore backingStore;
/**
* Instantiates a new {@link WindowsUpdateRolloutSettings} and sets the default values.
*/
public WindowsUpdateRolloutSettings() {
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 WindowsUpdateRolloutSettings}
*/
@jakarta.annotation.Nonnull
public static WindowsUpdateRolloutSettings createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new WindowsUpdateRolloutSettings();
}
/**
* 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 backingStore property value. Stores model information.
* @return a {@link BackingStore}
*/
@jakarta.annotation.Nonnull
public BackingStore getBackingStore() {
return this.backingStore;
}
/**
* The deserialization information for the current model
* @return a {@link Map>}
*/
@jakarta.annotation.Nonnull
public Map> getFieldDeserializers() {
final HashMap> deserializerMap = new HashMap>(4);
deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); });
deserializerMap.put("offerEndDateTimeInUTC", (n) -> { this.setOfferEndDateTimeInUTC(n.getOffsetDateTimeValue()); });
deserializerMap.put("offerIntervalInDays", (n) -> { this.setOfferIntervalInDays(n.getIntegerValue()); });
deserializerMap.put("offerStartDateTimeInUTC", (n) -> { this.setOfferStartDateTimeInUTC(n.getOffsetDateTimeValue()); });
return deserializerMap;
}
/**
* 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 offerEndDateTimeInUTC property value. The feature update's ending of release date and time to be set, update, and displayed for a feature Update profile for example: 2020-06-09T10:00:00Z.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getOfferEndDateTimeInUTC() {
return this.backingStore.get("offerEndDateTimeInUTC");
}
/**
* Gets the offerIntervalInDays property value. The number of day(s) between each set of offers to be set, updated, and displayed for a feature update profile, for example: if OfferStartDateTimeInUTC is 2020-06-09T10:00:00Z, and OfferIntervalInDays is 1, then the next two sets of offers will be made consecutively on 2020-06-10T10:00:00Z (next day at the same specified time) and 2020-06-11T10:00:00Z (next next day at the same specified time) with 1 day in between each set of offers.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getOfferIntervalInDays() {
return this.backingStore.get("offerIntervalInDays");
}
/**
* Gets the offerStartDateTimeInUTC property value. The feature update's starting date and time to be set, update, and displayed for a feature Update profile for example: 2020-06-09T10:00:00Z.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getOfferStartDateTimeInUTC() {
return this.backingStore.get("offerStartDateTimeInUTC");
}
/**
* 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.writeStringValue("@odata.type", this.getOdataType());
writer.writeOffsetDateTimeValue("offerEndDateTimeInUTC", this.getOfferEndDateTimeInUTC());
writer.writeIntegerValue("offerIntervalInDays", this.getOfferIntervalInDays());
writer.writeOffsetDateTimeValue("offerStartDateTimeInUTC", this.getOfferStartDateTimeInUTC());
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 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 @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 offerEndDateTimeInUTC property value. The feature update's ending of release date and time to be set, update, and displayed for a feature Update profile for example: 2020-06-09T10:00:00Z.
* @param value Value to set for the offerEndDateTimeInUTC property.
*/
public void setOfferEndDateTimeInUTC(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("offerEndDateTimeInUTC", value);
}
/**
* Sets the offerIntervalInDays property value. The number of day(s) between each set of offers to be set, updated, and displayed for a feature update profile, for example: if OfferStartDateTimeInUTC is 2020-06-09T10:00:00Z, and OfferIntervalInDays is 1, then the next two sets of offers will be made consecutively on 2020-06-10T10:00:00Z (next day at the same specified time) and 2020-06-11T10:00:00Z (next next day at the same specified time) with 1 day in between each set of offers.
* @param value Value to set for the offerIntervalInDays property.
*/
public void setOfferIntervalInDays(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("offerIntervalInDays", value);
}
/**
* Sets the offerStartDateTimeInUTC property value. The feature update's starting date and time to be set, update, and displayed for a feature Update profile for example: 2020-06-09T10:00:00Z.
* @param value Value to set for the offerStartDateTimeInUTC property.
*/
public void setOfferStartDateTimeInUTC(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("offerStartDateTimeInUTC", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy