/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.2.0
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PolarsConnectionSettingsV2200ResponseStorageOptions {
    #[serde(rename = "aws_endpoint_url")]
    pub aws_endpoint_url: String,
    #[serde(rename = "aws_access_key_id", skip_serializing_if = "Option::is_none")]
    pub aws_access_key_id: Option<String>,
    #[serde(rename = "aws_secret_access_key", skip_serializing_if = "Option::is_none")]
    pub aws_secret_access_key: Option<String>,
    #[serde(rename = "aws_region")]
    pub aws_region: String,
    #[serde(rename = "aws_allow_http")]
    pub aws_allow_http: String,
}

impl PolarsConnectionSettingsV2200ResponseStorageOptions {
    pub fn new(aws_endpoint_url: String, aws_region: String, aws_allow_http: String) -> PolarsConnectionSettingsV2200ResponseStorageOptions {
        PolarsConnectionSettingsV2200ResponseStorageOptions {
            aws_endpoint_url,
            aws_access_key_id: None,
            aws_secret_access_key: None,
            aws_region,
            aws_allow_http,
        }
    }
}

