![JAR search and dependency download from the Maven repository](/logo.png)
com.microsoft.graph.generated.models.AccessReviewNotificationRecipientQueryScope Maven / Gradle / Ivy
package com.microsoft.graph.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 AccessReviewNotificationRecipientQueryScope extends AccessReviewNotificationRecipientScope implements Parsable {
/**
* Instantiates a new {@link AccessReviewNotificationRecipientQueryScope} and sets the default values.
*/
public AccessReviewNotificationRecipientQueryScope() {
super();
this.setOdataType("#microsoft.graph.accessReviewNotificationRecipientQueryScope");
}
/**
* 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 AccessReviewNotificationRecipientQueryScope}
*/
@jakarta.annotation.Nonnull
public static AccessReviewNotificationRecipientQueryScope createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new AccessReviewNotificationRecipientQueryScope();
}
/**
* 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("query", (n) -> { this.setQuery(n.getStringValue()); });
deserializerMap.put("queryRoot", (n) -> { this.setQueryRoot(n.getStringValue()); });
deserializerMap.put("queryType", (n) -> { this.setQueryType(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the query property value. Represents the query for who the recipients are. For example, /groups/{group id}/members for group members and /users/{user id} for a specific user.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getQuery() {
return this.backingStore.get("query");
}
/**
* Gets the queryRoot property value. In the scenario where reviewers need to be specified dynamically, indicates the relative source of the query. This property is only required if a relative query (that is, ./manager) is specified.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getQueryRoot() {
return this.backingStore.get("queryRoot");
}
/**
* Gets the queryType property value. Indicates the type of query. Allowed value is MicrosoftGraph.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getQueryType() {
return this.backingStore.get("queryType");
}
/**
* 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("query", this.getQuery());
writer.writeStringValue("queryRoot", this.getQueryRoot());
writer.writeStringValue("queryType", this.getQueryType());
}
/**
* Sets the query property value. Represents the query for who the recipients are. For example, /groups/{group id}/members for group members and /users/{user id} for a specific user.
* @param value Value to set for the query property.
*/
public void setQuery(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("query", value);
}
/**
* Sets the queryRoot property value. In the scenario where reviewers need to be specified dynamically, indicates the relative source of the query. This property is only required if a relative query (that is, ./manager) is specified.
* @param value Value to set for the queryRoot property.
*/
public void setQueryRoot(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("queryRoot", value);
}
/**
* Sets the queryType property value. Indicates the type of query. Allowed value is MicrosoftGraph.
* @param value Value to set for the queryType property.
*/
public void setQueryType(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("queryType", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy