// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.hanaonazure.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Specifies information related to a SAP system ID. */
@Fluent
public final class SapSystemId {
    /*
     * Group ID of the HANA database user.
     */
    @JsonProperty(value = "gid")
    private String gid;

    /*
     * Percent of memory to allocate to this SID.
     */
    @JsonProperty(value = "memoryAllocation", access = JsonProperty.Access.WRITE_ONLY)
    private String memoryAllocation;

    /*
     * SAP system ID as database identifier.
     */
    @JsonProperty(value = "sid")
    private String sid;

    /*
     * Name of the HANA database user.
     */
    @JsonProperty(value = "username")
    private String username;

    /*
     * User ID of the HANA database user.
     */
    @JsonProperty(value = "uid")
    private String uid;

    /** Creates an instance of SapSystemId class. */
    public SapSystemId() {
    }

    /**
     * Get the gid property: Group ID of the HANA database user.
     *
     * @return the gid value.
     */
    public String gid() {
        return this.gid;
    }

    /**
     * Set the gid property: Group ID of the HANA database user.
     *
     * @param gid the gid value to set.
     * @return the SapSystemId object itself.
     */
    public SapSystemId withGid(String gid) {
        this.gid = gid;
        return this;
    }

    /**
     * Get the memoryAllocation property: Percent of memory to allocate to this SID.
     *
     * @return the memoryAllocation value.
     */
    public String memoryAllocation() {
        return this.memoryAllocation;
    }

    /**
     * Get the sid property: SAP system ID as database identifier.
     *
     * @return the sid value.
     */
    public String sid() {
        return this.sid;
    }

    /**
     * Set the sid property: SAP system ID as database identifier.
     *
     * @param sid the sid value to set.
     * @return the SapSystemId object itself.
     */
    public SapSystemId withSid(String sid) {
        this.sid = sid;
        return this;
    }

    /**
     * Get the username property: Name of the HANA database user.
     *
     * @return the username value.
     */
    public String username() {
        return this.username;
    }

    /**
     * Set the username property: Name of the HANA database user.
     *
     * @param username the username value to set.
     * @return the SapSystemId object itself.
     */
    public SapSystemId withUsername(String username) {
        this.username = username;
        return this;
    }

    /**
     * Get the uid property: User ID of the HANA database user.
     *
     * @return the uid value.
     */
    public String uid() {
        return this.uid;
    }

    /**
     * Set the uid property: User ID of the HANA database user.
     *
     * @param uid the uid value to set.
     * @return the SapSystemId object itself.
     */
    public SapSystemId withUid(String uid) {
        this.uid = uid;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
