com.microsoft.graph.beta.generated.models.AllowedDataLocation 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.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class AllowedDataLocation extends Entity implements Parsable {
/**
* Instantiates a new {@link AllowedDataLocation} and sets the default values.
*/
public AllowedDataLocation() {
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 AllowedDataLocation}
*/
@jakarta.annotation.Nonnull
public static AllowedDataLocation createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new AllowedDataLocation();
}
/**
* Gets the appId property value. The appId property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getAppId() {
return this.backingStore.get("appId");
}
/**
* Gets the domain property value. The domain property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDomain() {
return this.backingStore.get("domain");
}
/**
* 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("appId", (n) -> { this.setAppId(n.getStringValue()); });
deserializerMap.put("domain", (n) -> { this.setDomain(n.getStringValue()); });
deserializerMap.put("isDefault", (n) -> { this.setIsDefault(n.getBooleanValue()); });
deserializerMap.put("location", (n) -> { this.setLocation(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the isDefault property value. The isDefault property
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getIsDefault() {
return this.backingStore.get("isDefault");
}
/**
* Gets the location property value. The location property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getLocation() {
return this.backingStore.get("location");
}
/**
* 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.writeStringValue("appId", this.getAppId());
writer.writeStringValue("domain", this.getDomain());
writer.writeBooleanValue("isDefault", this.getIsDefault());
writer.writeStringValue("location", this.getLocation());
}
/**
* Sets the appId property value. The appId property
* @param value Value to set for the appId property.
*/
public void setAppId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("appId", value);
}
/**
* Sets the domain property value. The domain property
* @param value Value to set for the domain property.
*/
public void setDomain(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("domain", value);
}
/**
* Sets the isDefault property value. The isDefault property
* @param value Value to set for the isDefault property.
*/
public void setIsDefault(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("isDefault", value);
}
/**
* Sets the location property value. The location property
* @param value Value to set for the location property.
*/
public void setLocation(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("location", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy