
io.apicurio.registry.rest.client.models.UserInterfaceConfigAuth 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 UserInterfaceConfigAuth 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 obacEnabled property
*/
private Boolean obacEnabled;
/**
* User-defined name-value pairs. Name and value must be strings.
*/
private Labels options;
/**
* The rbacEnabled property
*/
private Boolean rbacEnabled;
/**
* The type property
*/
private UserInterfaceConfigAuthType type;
/**
* Instantiates a new {@link UserInterfaceConfigAuth} and sets the default values.
*/
public UserInterfaceConfigAuth() {
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 UserInterfaceConfigAuth}
*/
@jakarta.annotation.Nonnull
public static UserInterfaceConfigAuth createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new UserInterfaceConfigAuth();
}
/**
* 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;
}
/**
* The deserialization information for the current model
* @return a {@link Map>}
*/
@jakarta.annotation.Nonnull
public Map> getFieldDeserializers() {
final HashMap> deserializerMap = new HashMap>(4);
deserializerMap.put("obacEnabled", (n) -> { this.setObacEnabled(n.getBooleanValue()); });
deserializerMap.put("options", (n) -> { this.setOptions(n.getObjectValue(Labels::createFromDiscriminatorValue)); });
deserializerMap.put("rbacEnabled", (n) -> { this.setRbacEnabled(n.getBooleanValue()); });
deserializerMap.put("type", (n) -> { this.setType(n.getEnumValue(UserInterfaceConfigAuthType::forValue)); });
return deserializerMap;
}
/**
* Gets the obacEnabled property value. The obacEnabled property
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getObacEnabled() {
return this.obacEnabled;
}
/**
* Gets the options property value. User-defined name-value pairs. Name and value must be strings.
* @return a {@link Labels}
*/
@jakarta.annotation.Nullable
public Labels getOptions() {
return this.options;
}
/**
* Gets the rbacEnabled property value. The rbacEnabled property
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getRbacEnabled() {
return this.rbacEnabled;
}
/**
* Gets the type property value. The type property
* @return a {@link UserInterfaceConfigAuthType}
*/
@jakarta.annotation.Nullable
public UserInterfaceConfigAuthType getType() {
return this.type;
}
/**
* 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.writeBooleanValue("obacEnabled", this.getObacEnabled());
writer.writeObjectValue("options", this.getOptions());
writer.writeBooleanValue("rbacEnabled", this.getRbacEnabled());
writer.writeEnumValue("type", this.getType());
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 obacEnabled property value. The obacEnabled property
* @param value Value to set for the obacEnabled property.
*/
public void setObacEnabled(@jakarta.annotation.Nullable final Boolean value) {
this.obacEnabled = value;
}
/**
* Sets the options property value. User-defined name-value pairs. Name and value must be strings.
* @param value Value to set for the options property.
*/
public void setOptions(@jakarta.annotation.Nullable final Labels value) {
this.options = value;
}
/**
* Sets the rbacEnabled property value. The rbacEnabled property
* @param value Value to set for the rbacEnabled property.
*/
public void setRbacEnabled(@jakarta.annotation.Nullable final Boolean value) {
this.rbacEnabled = 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 UserInterfaceConfigAuthType value) {
this.type = value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy