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

package com.azure.resourcemanager.machinelearningservices.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The RCranPackage model. */
@Fluent
public final class RCranPackage {
    @JsonIgnore private final ClientLogger logger = new ClientLogger(RCranPackage.class);

    /*
     * The package name.
     */
    @JsonProperty(value = "name")
    private String name;

    /*
     * The repository name.
     */
    @JsonProperty(value = "repository")
    private String repository;

    /**
     * Get the name property: The package name.
     *
     * @return the name value.
     */
    public String name() {
        return this.name;
    }

    /**
     * Set the name property: The package name.
     *
     * @param name the name value to set.
     * @return the RCranPackage object itself.
     */
    public RCranPackage withName(String name) {
        this.name = name;
        return this;
    }

    /**
     * Get the repository property: The repository name.
     *
     * @return the repository value.
     */
    public String repository() {
        return this.repository;
    }

    /**
     * Set the repository property: The repository name.
     *
     * @param repository the repository value to set.
     * @return the RCranPackage object itself.
     */
    public RCranPackage withRepository(String repository) {
        this.repository = repository;
        return this;
    }

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