/* Code generated by Azure.Iot.Operations.ProtocolCompilerLib v1.0.0.0; DO NOT EDIT. */

#nullable enable

using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
using Azure.Iot.Operations.Services.EdgeRegistry.Generated.Common;

namespace Azure.Iot.Operations.Services.EdgeRegistry.Generated
{
    /// <summary>
    /// List of Group identifiers.
    /// </summary>
    [System.CodeDom.Compiler.GeneratedCode("Azure.Iot.Operations.ProtocolCompilerLib", "1.0.0.0")]
    public partial class ListGroupsOutputArguments : IJsonOnDeserialized, IJsonOnSerializing
    {
        /// <summary>
        /// List of Group identifiers.
        /// </summary>
        [JsonPropertyName("ids")]
        [JsonIgnore(Condition = JsonIgnoreCondition.Never)]
        [JsonRequired]
        public List<string> Ids { get; set; } = default!;

        void IJsonOnDeserialized.OnDeserialized()
        {
            if (Ids is null)
            {
                throw new ArgumentNullException("ids field cannot be null");
            }
        }

        void IJsonOnSerializing.OnSerializing()
        {
            if (Ids is null)
            {
                throw new ArgumentNullException("ids field cannot be null");
            }
        }
    }
}
