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

package com.azure.ai.personalizer.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.BinaryData;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** An action with its associated features used for ranking. */
@Fluent
public final class PersonalizerRankableAction {
    /*
     * Id of the action.
     */
    @JsonProperty(value = "id", required = true)
    private String id;

    /*
     * List of dictionaries containing features.
     */
    @JsonProperty(value = "features", required = true)
    private List<BinaryData> features;

    /**
     * Get the id property: Id of the action.
     *
     * @return the id value.
     */
    public String getId() {
        return this.id;
    }

    /**
     * Set the id property: Id of the action.
     *
     * @param id the id value to set.
     * @return the PersonalizerRankableAction object itself.
     */
    public PersonalizerRankableAction setId(String id) {
        this.id = id;
        return this;
    }

    /**
     * Get the features property: List of dictionaries containing features.
     *
     * @return the features value.
     */
    public List<BinaryData> getFeatures() {
        return this.features;
    }

    /**
     * Set the features property: List of dictionaries containing features.
     *
     * @param features the features value to set.
     * @return the PersonalizerRankableAction object itself.
     */
    public PersonalizerRankableAction setFeatures(List<BinaryData> features) {
        this.features = features;
        return this;
    }
}
