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

com.microsoft.graph.beta.generated.models.AwsStatement Maven / Gradle / Ivy

There is a newer version: 6.26.0
Show newest version
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 AwsStatement implements AdditionalDataHolder, BackedModel, Parsable {
    /**
     * Stores model information.
     */
    @jakarta.annotation.Nonnull
    protected BackingStore backingStore;
    /**
     * Instantiates a new {@link AwsStatement} and sets the default values.
     */
    public AwsStatement() {
        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 AwsStatement}
     */
    @jakarta.annotation.Nonnull
    public static AwsStatement createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
        Objects.requireNonNull(parseNode);
        return new AwsStatement();
    }
    /**
     * Gets the actions property value. The AWS actions.
     * @return a {@link java.util.List}
     */
    @jakarta.annotation.Nullable
    public java.util.List getActions() {
        return this.backingStore.get("actions");
    }
    /**
     * 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;
    }
    /**
     * Gets the condition property value. The AWS conditions associated with the statement.
     * @return a {@link AwsCondition}
     */
    @jakarta.annotation.Nullable
    public AwsCondition getCondition() {
        return this.backingStore.get("condition");
    }
    /**
     * Gets the effect property value. The effect property
     * @return a {@link AwsStatementEffect}
     */
    @jakarta.annotation.Nullable
    public AwsStatementEffect getEffect() {
        return this.backingStore.get("effect");
    }
    /**
     * The deserialization information for the current model
     * @return a {@link Map>}
     */
    @jakarta.annotation.Nonnull
    public Map> getFieldDeserializers() {
        final HashMap> deserializerMap = new HashMap>(8);
        deserializerMap.put("actions", (n) -> { this.setActions(n.getCollectionOfPrimitiveValues(String.class)); });
        deserializerMap.put("condition", (n) -> { this.setCondition(n.getObjectValue(AwsCondition::createFromDiscriminatorValue)); });
        deserializerMap.put("effect", (n) -> { this.setEffect(n.getEnumValue(AwsStatementEffect::forValue)); });
        deserializerMap.put("notActions", (n) -> { this.setNotActions(n.getCollectionOfPrimitiveValues(String.class)); });
        deserializerMap.put("notResources", (n) -> { this.setNotResources(n.getCollectionOfPrimitiveValues(String.class)); });
        deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); });
        deserializerMap.put("resources", (n) -> { this.setResources(n.getCollectionOfPrimitiveValues(String.class)); });
        deserializerMap.put("statementId", (n) -> { this.setStatementId(n.getStringValue()); });
        return deserializerMap;
    }
    /**
     * Gets the notActions property value. AWS Not Actions
     * @return a {@link java.util.List}
     */
    @jakarta.annotation.Nullable
    public java.util.List getNotActions() {
        return this.backingStore.get("notActions");
    }
    /**
     * Gets the notResources property value. AWS Not Resources
     * @return a {@link java.util.List}
     */
    @jakarta.annotation.Nullable
    public java.util.List getNotResources() {
        return this.backingStore.get("notResources");
    }
    /**
     * 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 resources property value. The AWS resources associated with the statement.
     * @return a {@link java.util.List}
     */
    @jakarta.annotation.Nullable
    public java.util.List getResources() {
        return this.backingStore.get("resources");
    }
    /**
     * Gets the statementId property value. The ID of the AWS statement.
     * @return a {@link String}
     */
    @jakarta.annotation.Nullable
    public String getStatementId() {
        return this.backingStore.get("statementId");
    }
    /**
     * 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.writeCollectionOfPrimitiveValues("actions", this.getActions());
        writer.writeObjectValue("condition", this.getCondition());
        writer.writeEnumValue("effect", this.getEffect());
        writer.writeCollectionOfPrimitiveValues("notActions", this.getNotActions());
        writer.writeCollectionOfPrimitiveValues("notResources", this.getNotResources());
        writer.writeStringValue("@odata.type", this.getOdataType());
        writer.writeCollectionOfPrimitiveValues("resources", this.getResources());
        writer.writeStringValue("statementId", this.getStatementId());
        writer.writeAdditionalData(this.getAdditionalData());
    }
    /**
     * Sets the actions property value. The AWS actions.
     * @param value Value to set for the actions property.
     */
    public void setActions(@jakarta.annotation.Nullable final java.util.List value) {
        this.backingStore.set("actions", value);
    }
    /**
     * 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 condition property value. The AWS conditions associated with the statement.
     * @param value Value to set for the condition property.
     */
    public void setCondition(@jakarta.annotation.Nullable final AwsCondition value) {
        this.backingStore.set("condition", value);
    }
    /**
     * Sets the effect property value. The effect property
     * @param value Value to set for the effect property.
     */
    public void setEffect(@jakarta.annotation.Nullable final AwsStatementEffect value) {
        this.backingStore.set("effect", value);
    }
    /**
     * Sets the notActions property value. AWS Not Actions
     * @param value Value to set for the notActions property.
     */
    public void setNotActions(@jakarta.annotation.Nullable final java.util.List value) {
        this.backingStore.set("notActions", value);
    }
    /**
     * Sets the notResources property value. AWS Not Resources
     * @param value Value to set for the notResources property.
     */
    public void setNotResources(@jakarta.annotation.Nullable final java.util.List value) {
        this.backingStore.set("notResources", 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 resources property value. The AWS resources associated with the statement.
     * @param value Value to set for the resources property.
     */
    public void setResources(@jakarta.annotation.Nullable final java.util.List value) {
        this.backingStore.set("resources", value);
    }
    /**
     * Sets the statementId property value. The ID of the AWS statement.
     * @param value Value to set for the statementId property.
     */
    public void setStatementId(@jakarta.annotation.Nullable final String value) {
        this.backingStore.set("statementId", value);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy