oci-rust-sdk 0.4.4

Unofficial Oracle OCI SDK for Rust
Documentation
use serde::{Deserialize, Serialize};

#[allow(unused_imports)]
use super::*;
/// Provides the information used to move the software source to another compartment.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ChangeSoftwareSourceCompartmentDetails {
    /// The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the software source to.
    pub compartment_id: String,
}

/// Required fields for ChangeSoftwareSourceCompartmentDetails
pub struct ChangeSoftwareSourceCompartmentDetailsRequired {
    /// The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the software source to.
    pub compartment_id: String,
}

impl ChangeSoftwareSourceCompartmentDetails {
    /// Create a new ChangeSoftwareSourceCompartmentDetails with required fields
    pub fn new(required: ChangeSoftwareSourceCompartmentDetailsRequired) -> Self {
        Self {
            compartment_id: required.compartment_id,
        }
    }

    /// Set compartment_id
    pub fn set_compartment_id(mut self, value: String) -> Self {
        self.compartment_id = value;
        self
    }
}