antimatter_api 2.0.13

Interact with the Antimatter Cloud API
Documentation
/*
 * Antimatter Public API
 *
 * Interact with the Antimatter Cloud API
 *
 * The version of the OpenAPI document: 2.0.13
 * Contact: support@antimatter.io
 * Generated by: https://openapi-generator.tech
 */

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

/// ActiveRootEncryptionKeyId : The stored key ID to use as the active root encryption key. 
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ActiveRootEncryptionKeyId {
    /// A UUID or reference used for identifying root encryption keys. May also be \"default\" or \"active\" to refer to the default or active key. Note that it is not permitted to use the default key in a different domain. 
    #[serde(rename = "keyID")]
    pub key_id: String,
    /// Indicates whether a batch of key encryption keys should be immediately rotated upon successful activation of the supplied root encryption key. 
    #[serde(rename = "rotateBatch", skip_serializing_if = "Option::is_none")]
    pub rotate_batch: Option<bool>,
}

impl ActiveRootEncryptionKeyId {
    /// The stored key ID to use as the active root encryption key. 
    pub fn new(key_id: String) -> ActiveRootEncryptionKeyId {
        ActiveRootEncryptionKeyId {
            key_id,
            rotate_batch: None,
        }
    }
}