public class ElasticsearchOptions { public const string Section = "Elasticsearch"; public string Uri { get; set; } = null!; public ElasticIndexOptions Indices { get; set; } = null!; // Production clusters run with xpack.security enabled. Supply either an // API key (preferred) or basic credentials; leave all null for the // security-disabled development cluster. public string? ApiKey { get; set; } public string? Username { get; set; } public string? Password { get; set; } public bool DisableCertificateValidation { get; set; } }