// <auto-generated>
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace k8s.Models
{
    using Newtonsoft.Json;
    using System.Linq;

    /// <summary>
    /// VolumeError captures an error encountered during a volume operation.
    /// </summary>
    public partial class V1alpha1VolumeError
    {
        /// <summary>
        /// Initializes a new instance of the V1alpha1VolumeError class.
        /// </summary>
        public V1alpha1VolumeError()
        {
            CustomInit();
        }

        /// <summary>
        /// Initializes a new instance of the V1alpha1VolumeError class.
        /// </summary>
        /// <param name="message">String detailing the error encountered during
        /// Attach or Detach operation. This string maybe logged, so it should
        /// not contain sensitive information.</param>
        /// <param name="time">Time the error was encountered.</param>
        public V1alpha1VolumeError(string message = default(string), System.DateTime? time = default(System.DateTime?))
        {
            Message = message;
            Time = time;
            CustomInit();
        }

        /// <summary>
        /// An initialization method that performs custom operations like setting defaults
        /// </summary>
        partial void CustomInit();

        /// <summary>
        /// Gets or sets string detailing the error encountered during Attach
        /// or Detach operation. This string maybe logged, so it should not
        /// contain sensitive information.
        /// </summary>
        [JsonProperty(PropertyName = "message")]
        public string Message { get; set; }

        /// <summary>
        /// Gets or sets time the error was encountered.
        /// </summary>
        [JsonProperty(PropertyName = "time")]
        public System.DateTime? Time { get; set; }

    }
}
