private/api/Nutanix/Powershell/Models/MulticlusterConfigIntentResponse.cs

namespace Nutanix.Powershell.Models
{
    using static Microsoft.Rest.ClientRuntime.Extensions;
    /// <summary>An intentful representation of a multicluster config response.</summary>
    public partial class MulticlusterConfigIntentResponse : Nutanix.Powershell.Models.IMulticlusterConfigIntentResponse, Microsoft.Rest.ClientRuntime.IValidates
    {
        /// <summary>Backing field for <see cref="ApiVersion" /> property.</summary>
        private string _apiVersion;

        public string ApiVersion
        {
            get
            {
                return this._apiVersion;
            }
            set
            {
                this._apiVersion = value;
            }
        }
        /// <summary>Backing field for <see cref="Metadata" /> property.</summary>
        private Nutanix.Powershell.Models.IMulticlusterConfigMetadata _metadata;

        /// <summary>The multicluster_config kind metadata</summary>
        public Nutanix.Powershell.Models.IMulticlusterConfigMetadata Metadata
        {
            get
            {
                return this._metadata;
            }
            set
            {
                this._metadata = value;
            }
        }
        /// <summary>Backing field for <see cref="Spec" /> property.</summary>
        private Nutanix.Powershell.Models.IMulticlusterConfigSpec _spec;

        /// <summary>Specification for multicluster configuration request.</summary>
        public Nutanix.Powershell.Models.IMulticlusterConfigSpec Spec
        {
            get
            {
                return this._spec;
            }
            set
            {
                this._spec = value;
            }
        }
        /// <summary>Backing field for <see cref="Status" /> property.</summary>
        private Nutanix.Powershell.Models.IMulticlusterConfigDefStatus _status;

        /// <summary>Status for multicluster configuration request.</summary>
        public Nutanix.Powershell.Models.IMulticlusterConfigDefStatus Status
        {
            get
            {
                return this._status;
            }
            set
            {
                this._status = value;
            }
        }
        /// <summary>Creates an new <see cref="MulticlusterConfigIntentResponse" /> instance.</summary>
        public MulticlusterConfigIntentResponse()
        {
        }
        /// <summary>Validates that this object meets the validation criteria.</summary>
        /// <param name="eventListener">an <see cref="Microsoft.Rest.ClientRuntime.IEventListener" /> instance that will receive validation
        /// events.</param>
        /// <returns>
        /// A <see cref="System.Threading.Tasks.Task" /> that will be complete when validation is completed.
        /// </returns>
        public async System.Threading.Tasks.Task Validate(Microsoft.Rest.ClientRuntime.IEventListener eventListener)
        {
            await eventListener.AssertNotNull(nameof(ApiVersion),ApiVersion);
            await eventListener.AssertNotNull(nameof(Metadata), Metadata);
            await eventListener.AssertObjectIsValid(nameof(Metadata), Metadata);
            await eventListener.AssertObjectIsValid(nameof(Spec), Spec);
            await eventListener.AssertObjectIsValid(nameof(Status), Status);
        }
    }
    /// An intentful representation of a multicluster config response.
    public partial interface IMulticlusterConfigIntentResponse : Microsoft.Rest.ClientRuntime.IJsonSerializable {
        string ApiVersion { get; set; }
        Nutanix.Powershell.Models.IMulticlusterConfigMetadata Metadata { get; set; }
        Nutanix.Powershell.Models.IMulticlusterConfigSpec Spec { get; set; }
        Nutanix.Powershell.Models.IMulticlusterConfigDefStatus Status { get; set; }
    }
}