/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 */

package com.microsoft.azure.cognitiveservices.vision.customvision.training.models;

import java.util.UUID;
import org.joda.time.DateTime;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Iteration model to be sent over JSON.
 */
public class Iteration {
    /**
     * Gets the id of the iteration.
     */
    @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
    private UUID id;

    /**
     * Gets or sets the name of the iteration.
     */
    @JsonProperty(value = "name", required = true)
    private String name;

    /**
     * Gets the current iteration status.
     */
    @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
    private String status;

    /**
     * Gets the time this iteration was completed.
     */
    @JsonProperty(value = "created", access = JsonProperty.Access.WRITE_ONLY)
    private DateTime created;

    /**
     * Gets the time this iteration was last modified.
     */
    @JsonProperty(value = "lastModified", access = JsonProperty.Access.WRITE_ONLY)
    private DateTime lastModified;

    /**
     * Gets the time this iteration was last modified.
     */
    @JsonProperty(value = "trainedAt", access = JsonProperty.Access.WRITE_ONLY)
    private DateTime trainedAt;

    /**
     * Gets the project id of the iteration.
     */
    @JsonProperty(value = "projectId", access = JsonProperty.Access.WRITE_ONLY)
    private UUID projectId;

    /**
     * Whether the iteration can be exported to another format for download.
     */
    @JsonProperty(value = "exportable", access = JsonProperty.Access.WRITE_ONLY)
    private boolean exportable;

    /**
     * A set of platforms this iteration can export to.
     */
    @JsonProperty(value = "exportableTo", access = JsonProperty.Access.WRITE_ONLY)
    private List<String> exportableTo;

    /**
     * Get or sets a guid of the domain the iteration has been trained on.
     */
    @JsonProperty(value = "domainId", access = JsonProperty.Access.WRITE_ONLY)
    private UUID domainId;

    /**
     * Gets the classification type of the project. Possible values include:
     * 'Multiclass', 'Multilabel'.
     */
    @JsonProperty(value = "classificationType", access = JsonProperty.Access.WRITE_ONLY)
    private Classifier classificationType;

    /**
     * Gets the training type of the iteration. Possible values include:
     * 'Regular', 'Advanced'.
     */
    @JsonProperty(value = "trainingType", access = JsonProperty.Access.WRITE_ONLY)
    private TrainingType trainingType;

    /**
     * Gets the reserved advanced training budget for the iteration.
     */
    @JsonProperty(value = "reservedBudgetInHours", access = JsonProperty.Access.WRITE_ONLY)
    private int reservedBudgetInHours;

    /**
     * Name of the published model.
     */
    @JsonProperty(value = "publishName", access = JsonProperty.Access.WRITE_ONLY)
    private String publishName;

    /**
     * Resource Provider Id this iteration was originally published to.
     */
    @JsonProperty(value = "originalPublishResourceId", access = JsonProperty.Access.WRITE_ONLY)
    private String originalPublishResourceId;

    /**
     * Get the id value.
     *
     * @return the id value
     */
    public UUID id() {
        return this.id;
    }

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

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

    /**
     * Get the status value.
     *
     * @return the status value
     */
    public String status() {
        return this.status;
    }

    /**
     * Get the created value.
     *
     * @return the created value
     */
    public DateTime created() {
        return this.created;
    }

    /**
     * Get the lastModified value.
     *
     * @return the lastModified value
     */
    public DateTime lastModified() {
        return this.lastModified;
    }

    /**
     * Get the trainedAt value.
     *
     * @return the trainedAt value
     */
    public DateTime trainedAt() {
        return this.trainedAt;
    }

    /**
     * Get the projectId value.
     *
     * @return the projectId value
     */
    public UUID projectId() {
        return this.projectId;
    }

    /**
     * Get the exportable value.
     *
     * @return the exportable value
     */
    public boolean exportable() {
        return this.exportable;
    }

    /**
     * Get the exportableTo value.
     *
     * @return the exportableTo value
     */
    public List<String> exportableTo() {
        return this.exportableTo;
    }

    /**
     * Get the domainId value.
     *
     * @return the domainId value
     */
    public UUID domainId() {
        return this.domainId;
    }

    /**
     * Get the classificationType value.
     *
     * @return the classificationType value
     */
    public Classifier classificationType() {
        return this.classificationType;
    }

    /**
     * Get the trainingType value.
     *
     * @return the trainingType value
     */
    public TrainingType trainingType() {
        return this.trainingType;
    }

    /**
     * Get the reservedBudgetInHours value.
     *
     * @return the reservedBudgetInHours value
     */
    public int reservedBudgetInHours() {
        return this.reservedBudgetInHours;
    }

    /**
     * Get the publishName value.
     *
     * @return the publishName value
     */
    public String publishName() {
        return this.publishName;
    }

    /**
     * Get the originalPublishResourceId value.
     *
     * @return the originalPublishResourceId value
     */
    public String originalPublishResourceId() {
        return this.originalPublishResourceId;
    }

}
