use serde::{Deserialize, Serialize};
#[allow(unused_imports)]
use super::*;
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct AutonomousSettings {
#[serde(skip_serializing_if = "Option::is_none")]
pub is_data_collection_authorized: Option<bool>,
#[serde(skip_serializing_if = "Option::is_none")]
pub scheduled_job_id: Option<String>,
}
impl AutonomousSettings {
pub fn new() -> Self {
Self {
is_data_collection_authorized: None,
scheduled_job_id: None,
}
}
pub fn set_is_data_collection_authorized(mut self, value: Option<bool>) -> Self {
self.is_data_collection_authorized = value;
self
}
pub fn set_scheduled_job_id(mut self, value: Option<String>) -> Self {
self.scheduled_job_id = value;
self
}
pub fn with_is_data_collection_authorized(mut self, value: bool) -> Self {
self.is_data_collection_authorized = Some(value);
self
}
pub fn with_scheduled_job_id(mut self, value: impl Into<String>) -> Self {
self.scheduled_job_id = Some(value.into());
self
}
}
impl Default for AutonomousSettings {
fn default() -> Self {
Self::new()
}
}