
io.apicurio.registry.rest.client.models.RoleMappingSearchResults Maven / Gradle / Ivy
package io.apicurio.registry.rest.client.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 java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/**
* Describes the response received when searching for artifacts.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class RoleMappingSearchResults implements AdditionalDataHolder, Parsable {
/**
* Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
*/
private Map additionalData;
/**
* The total number of role mappings that matched the query that produced the result set (may be more than the number of role mappings in the result set).
*/
private Integer count;
/**
* The role mappings returned in the result set.
*/
private java.util.List roleMappings;
/**
* Instantiates a new {@link RoleMappingSearchResults} and sets the default values.
*/
public RoleMappingSearchResults() {
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 RoleMappingSearchResults}
*/
@jakarta.annotation.Nonnull
public static RoleMappingSearchResults createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new RoleMappingSearchResults();
}
/**
* 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() {
return this.additionalData;
}
/**
* Gets the count property value. The total number of role mappings that matched the query that produced the result set (may be more than the number of role mappings in the result set).
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getCount() {
return this.count;
}
/**
* The deserialization information for the current model
* @return a {@link Map>}
*/
@jakarta.annotation.Nonnull
public Map> getFieldDeserializers() {
final HashMap> deserializerMap = new HashMap>(2);
deserializerMap.put("count", (n) -> { this.setCount(n.getIntegerValue()); });
deserializerMap.put("roleMappings", (n) -> { this.setRoleMappings(n.getCollectionOfObjectValues(RoleMapping::createFromDiscriminatorValue)); });
return deserializerMap;
}
/**
* Gets the roleMappings property value. The role mappings returned in the result set.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getRoleMappings() {
return this.roleMappings;
}
/**
* 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.writeIntegerValue("count", this.getCount());
writer.writeCollectionOfObjectValues("roleMappings", this.getRoleMappings());
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.additionalData = value;
}
/**
* Sets the count property value. The total number of role mappings that matched the query that produced the result set (may be more than the number of role mappings in the result set).
* @param value Value to set for the count property.
*/
public void setCount(@jakarta.annotation.Nullable final Integer value) {
this.count = value;
}
/**
* Sets the roleMappings property value. The role mappings returned in the result set.
* @param value Value to set for the roleMappings property.
*/
public void setRoleMappings(@jakarta.annotation.Nullable final java.util.List value) {
this.roleMappings = value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy