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

package com.azure.resourcemanager.mediaservices.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.mediaservices.models.StreamingLocatorContentKey;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** Class of response for listContentKeys action. */
@Fluent
public final class ListContentKeysResponseInner {
    /*
     * ContentKeys used by current Streaming Locator
     */
    @JsonProperty(value = "contentKeys")
    private List<StreamingLocatorContentKey> contentKeys;

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

    /**
     * Get the contentKeys property: ContentKeys used by current Streaming Locator.
     *
     * @return the contentKeys value.
     */
    public List<StreamingLocatorContentKey> contentKeys() {
        return this.contentKeys;
    }

    /**
     * Set the contentKeys property: ContentKeys used by current Streaming Locator.
     *
     * @param contentKeys the contentKeys value to set.
     * @return the ListContentKeysResponseInner object itself.
     */
    public ListContentKeysResponseInner withContentKeys(List<StreamingLocatorContentKey> contentKeys) {
        this.contentKeys = contentKeys;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (contentKeys() != null) {
            contentKeys().forEach(e -> e.validate());
        }
    }
}
