|
| 1 | +package com.microsoft.graph.auditlogs.signins.confirmcompromised; |
| 2 | + |
| 3 | +import com.microsoft.kiota.serialization.AdditionalDataHolder; |
| 4 | +import com.microsoft.kiota.serialization.Parsable; |
| 5 | +import com.microsoft.kiota.serialization.ParseNode; |
| 6 | +import com.microsoft.kiota.serialization.SerializationWriter; |
| 7 | +import com.microsoft.kiota.store.BackedModel; |
| 8 | +import com.microsoft.kiota.store.BackingStore; |
| 9 | +import com.microsoft.kiota.store.BackingStoreFactorySingleton; |
| 10 | +import java.util.HashMap; |
| 11 | +import java.util.Map; |
| 12 | +import java.util.Objects; |
| 13 | +@jakarta.annotation.Generated("com.microsoft.kiota") |
| 14 | +public class ConfirmCompromisedPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable { |
| 15 | + /** |
| 16 | + * Stores model information. |
| 17 | + */ |
| 18 | + @jakarta.annotation.Nonnull |
| 19 | + protected BackingStore backingStore; |
| 20 | + /** |
| 21 | + * Instantiates a new {@link ConfirmCompromisedPostRequestBody} and sets the default values. |
| 22 | + */ |
| 23 | + public ConfirmCompromisedPostRequestBody() { |
| 24 | + this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore(); |
| 25 | + this.setAdditionalData(new HashMap<>()); |
| 26 | + } |
| 27 | + /** |
| 28 | + * Creates a new instance of the appropriate class based on discriminator value |
| 29 | + * @param parseNode The parse node to use to read the discriminator value and create the object |
| 30 | + * @return a {@link ConfirmCompromisedPostRequestBody} |
| 31 | + */ |
| 32 | + @jakarta.annotation.Nonnull |
| 33 | + public static ConfirmCompromisedPostRequestBody createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) { |
| 34 | + Objects.requireNonNull(parseNode); |
| 35 | + return new ConfirmCompromisedPostRequestBody(); |
| 36 | + } |
| 37 | + /** |
| 38 | + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. |
| 39 | + * @return a {@link Map<String, Object>} |
| 40 | + */ |
| 41 | + @jakarta.annotation.Nonnull |
| 42 | + public Map<String, Object> getAdditionalData() { |
| 43 | + Map<String, Object> value = this.backingStore.get("additionalData"); |
| 44 | + if(value == null) { |
| 45 | + value = new HashMap<>(); |
| 46 | + this.setAdditionalData(value); |
| 47 | + } |
| 48 | + return value; |
| 49 | + } |
| 50 | + /** |
| 51 | + * Gets the backingStore property value. Stores model information. |
| 52 | + * @return a {@link BackingStore} |
| 53 | + */ |
| 54 | + @jakarta.annotation.Nonnull |
| 55 | + public BackingStore getBackingStore() { |
| 56 | + return this.backingStore; |
| 57 | + } |
| 58 | + /** |
| 59 | + * The deserialization information for the current model |
| 60 | + * @return a {@link Map<String, java.util.function.Consumer<ParseNode>>} |
| 61 | + */ |
| 62 | + @jakarta.annotation.Nonnull |
| 63 | + public Map<String, java.util.function.Consumer<ParseNode>> getFieldDeserializers() { |
| 64 | + final HashMap<String, java.util.function.Consumer<ParseNode>> deserializerMap = new HashMap<String, java.util.function.Consumer<ParseNode>>(1); |
| 65 | + deserializerMap.put("requestIds", (n) -> { this.setRequestIds(n.getCollectionOfPrimitiveValues(String.class)); }); |
| 66 | + return deserializerMap; |
| 67 | + } |
| 68 | + /** |
| 69 | + * Gets the requestIds property value. The requestIds property |
| 70 | + * @return a {@link java.util.List<String>} |
| 71 | + */ |
| 72 | + @jakarta.annotation.Nullable |
| 73 | + public java.util.List<String> getRequestIds() { |
| 74 | + return this.backingStore.get("requestIds"); |
| 75 | + } |
| 76 | + /** |
| 77 | + * Serializes information the current object |
| 78 | + * @param writer Serialization writer to use to serialize this model |
| 79 | + */ |
| 80 | + public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) { |
| 81 | + Objects.requireNonNull(writer); |
| 82 | + writer.writeCollectionOfPrimitiveValues("requestIds", this.getRequestIds()); |
| 83 | + writer.writeAdditionalData(this.getAdditionalData()); |
| 84 | + } |
| 85 | + /** |
| 86 | + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. |
| 87 | + * @param value Value to set for the AdditionalData property. |
| 88 | + */ |
| 89 | + public void setAdditionalData(@jakarta.annotation.Nullable final Map<String, Object> value) { |
| 90 | + this.backingStore.set("additionalData", value); |
| 91 | + } |
| 92 | + /** |
| 93 | + * Sets the backingStore property value. Stores model information. |
| 94 | + * @param value Value to set for the backingStore property. |
| 95 | + */ |
| 96 | + public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) { |
| 97 | + Objects.requireNonNull(value); |
| 98 | + this.backingStore = value; |
| 99 | + } |
| 100 | + /** |
| 101 | + * Sets the requestIds property value. The requestIds property |
| 102 | + * @param value Value to set for the requestIds property. |
| 103 | + */ |
| 104 | + public void setRequestIds(@jakarta.annotation.Nullable final java.util.List<String> value) { |
| 105 | + this.backingStore.set("requestIds", value); |
| 106 | + } |
| 107 | +} |
0 commit comments