
io.apicurio.registry.rest.client.models.ConfigurationProperty 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;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class ConfigurationProperty 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 description property
*/
private String description;
/**
* The label property
*/
private String label;
/**
* The name property
*/
private String name;
/**
* The type property
*/
private String type;
/**
* The value property
*/
private String value;
/**
* Instantiates a new {@link ConfigurationProperty} and sets the default values.
*/
public ConfigurationProperty() {
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 ConfigurationProperty}
*/
@jakarta.annotation.Nonnull
public static ConfigurationProperty createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new ConfigurationProperty();
}
/**
* 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 description property value. The description property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDescription() {
return this.description;
}
/**
* The deserialization information for the current model
* @return a {@link Map>}
*/
@jakarta.annotation.Nonnull
public Map> getFieldDeserializers() {
final HashMap> deserializerMap = new HashMap>(5);
deserializerMap.put("description", (n) -> { this.setDescription(n.getStringValue()); });
deserializerMap.put("label", (n) -> { this.setLabel(n.getStringValue()); });
deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); });
deserializerMap.put("type", (n) -> { this.setType(n.getStringValue()); });
deserializerMap.put("value", (n) -> { this.setValue(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the label property value. The label property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getLabel() {
return this.label;
}
/**
* Gets the name property value. The name property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getName() {
return this.name;
}
/**
* Gets the type property value. The type property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getType() {
return this.type;
}
/**
* Gets the value property value. The value property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getValue() {
return this.value;
}
/**
* 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.writeStringValue("description", this.getDescription());
writer.writeStringValue("label", this.getLabel());
writer.writeStringValue("name", this.getName());
writer.writeStringValue("type", this.getType());
writer.writeStringValue("value", this.getValue());
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 description property value. The description property
* @param value Value to set for the description property.
*/
public void setDescription(@jakarta.annotation.Nullable final String value) {
this.description = value;
}
/**
* Sets the label property value. The label property
* @param value Value to set for the label property.
*/
public void setLabel(@jakarta.annotation.Nullable final String value) {
this.label = value;
}
/**
* Sets the name property value. The name property
* @param value Value to set for the name property.
*/
public void setName(@jakarta.annotation.Nullable final String value) {
this.name = value;
}
/**
* Sets the type property value. The type property
* @param value Value to set for the type property.
*/
public void setType(@jakarta.annotation.Nullable final String value) {
this.type = value;
}
/**
* Sets the value property value. The value property
* @param value Value to set for the value property.
*/
public void setValue(@jakarta.annotation.Nullable final String value) {
this.value = value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy