All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.apicurio.registry.rest.client.models.BranchMetaData Maven / Gradle / Ivy

There is a newer version: 3.0.6
Show newest version
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.time.OffsetDateTime;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class BranchMetaData 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 ID of a single artifact.
     */
    private String artifactId;
    /**
     * The ID of a single artifact branch.
     */
    private String branchId;
    /**
     * The createdOn property
     */
    private OffsetDateTime createdOn;
    /**
     * The description property
     */
    private String description;
    /**
     * An ID of a single artifact group.
     */
    private String groupId;
    /**
     * The modifiedBy property
     */
    private String modifiedBy;
    /**
     * The modifiedOn property
     */
    private OffsetDateTime modifiedOn;
    /**
     * The owner property
     */
    private String owner;
    /**
     * The systemDefined property
     */
    private Boolean systemDefined;
    /**
     * Instantiates a new {@link BranchMetaData} and sets the default values.
     */
    public BranchMetaData() {
        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 BranchMetaData}
     */
    @jakarta.annotation.Nonnull
    public static BranchMetaData createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
        Objects.requireNonNull(parseNode);
        return new BranchMetaData();
    }
    /**
     * 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 artifactId property value. The ID of a single artifact.
     * @return a {@link String}
     */
    @jakarta.annotation.Nullable
    public String getArtifactId() {
        return this.artifactId;
    }
    /**
     * Gets the branchId property value. The ID of a single artifact branch.
     * @return a {@link String}
     */
    @jakarta.annotation.Nullable
    public String getBranchId() {
        return this.branchId;
    }
    /**
     * Gets the createdOn property value. The createdOn property
     * @return a {@link OffsetDateTime}
     */
    @jakarta.annotation.Nullable
    public OffsetDateTime getCreatedOn() {
        return this.createdOn;
    }
    /**
     * 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>(9);
        deserializerMap.put("artifactId", (n) -> { this.setArtifactId(n.getStringValue()); });
        deserializerMap.put("branchId", (n) -> { this.setBranchId(n.getStringValue()); });
        deserializerMap.put("createdOn", (n) -> { this.setCreatedOn(n.getOffsetDateTimeValue()); });
        deserializerMap.put("description", (n) -> { this.setDescription(n.getStringValue()); });
        deserializerMap.put("groupId", (n) -> { this.setGroupId(n.getStringValue()); });
        deserializerMap.put("modifiedBy", (n) -> { this.setModifiedBy(n.getStringValue()); });
        deserializerMap.put("modifiedOn", (n) -> { this.setModifiedOn(n.getOffsetDateTimeValue()); });
        deserializerMap.put("owner", (n) -> { this.setOwner(n.getStringValue()); });
        deserializerMap.put("systemDefined", (n) -> { this.setSystemDefined(n.getBooleanValue()); });
        return deserializerMap;
    }
    /**
     * Gets the groupId property value. An ID of a single artifact group.
     * @return a {@link String}
     */
    @jakarta.annotation.Nullable
    public String getGroupId() {
        return this.groupId;
    }
    /**
     * Gets the modifiedBy property value. The modifiedBy property
     * @return a {@link String}
     */
    @jakarta.annotation.Nullable
    public String getModifiedBy() {
        return this.modifiedBy;
    }
    /**
     * Gets the modifiedOn property value. The modifiedOn property
     * @return a {@link OffsetDateTime}
     */
    @jakarta.annotation.Nullable
    public OffsetDateTime getModifiedOn() {
        return this.modifiedOn;
    }
    /**
     * Gets the owner property value. The owner property
     * @return a {@link String}
     */
    @jakarta.annotation.Nullable
    public String getOwner() {
        return this.owner;
    }
    /**
     * Gets the systemDefined property value. The systemDefined property
     * @return a {@link Boolean}
     */
    @jakarta.annotation.Nullable
    public Boolean getSystemDefined() {
        return this.systemDefined;
    }
    /**
     * 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("artifactId", this.getArtifactId());
        writer.writeStringValue("branchId", this.getBranchId());
        writer.writeOffsetDateTimeValue("createdOn", this.getCreatedOn());
        writer.writeStringValue("description", this.getDescription());
        writer.writeStringValue("groupId", this.getGroupId());
        writer.writeStringValue("modifiedBy", this.getModifiedBy());
        writer.writeOffsetDateTimeValue("modifiedOn", this.getModifiedOn());
        writer.writeStringValue("owner", this.getOwner());
        writer.writeBooleanValue("systemDefined", this.getSystemDefined());
        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 artifactId property value. The ID of a single artifact.
     * @param value Value to set for the artifactId property.
     */
    public void setArtifactId(@jakarta.annotation.Nullable final String value) {
        this.artifactId = value;
    }
    /**
     * Sets the branchId property value. The ID of a single artifact branch.
     * @param value Value to set for the branchId property.
     */
    public void setBranchId(@jakarta.annotation.Nullable final String value) {
        this.branchId = value;
    }
    /**
     * Sets the createdOn property value. The createdOn property
     * @param value Value to set for the createdOn property.
     */
    public void setCreatedOn(@jakarta.annotation.Nullable final OffsetDateTime value) {
        this.createdOn = 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 groupId property value. An ID of a single artifact group.
     * @param value Value to set for the groupId property.
     */
    public void setGroupId(@jakarta.annotation.Nullable final String value) {
        this.groupId = value;
    }
    /**
     * Sets the modifiedBy property value. The modifiedBy property
     * @param value Value to set for the modifiedBy property.
     */
    public void setModifiedBy(@jakarta.annotation.Nullable final String value) {
        this.modifiedBy = value;
    }
    /**
     * Sets the modifiedOn property value. The modifiedOn property
     * @param value Value to set for the modifiedOn property.
     */
    public void setModifiedOn(@jakarta.annotation.Nullable final OffsetDateTime value) {
        this.modifiedOn = value;
    }
    /**
     * Sets the owner property value. The owner property
     * @param value Value to set for the owner property.
     */
    public void setOwner(@jakarta.annotation.Nullable final String value) {
        this.owner = value;
    }
    /**
     * Sets the systemDefined property value. The systemDefined property
     * @param value Value to set for the systemDefined property.
     */
    public void setSystemDefined(@jakarta.annotation.Nullable final Boolean value) {
        this.systemDefined = value;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy