Skip to main content

oci_rust_sdk/core/models/
instance_agent_features.rs

1use serde::{Deserialize, Serialize};
2
3#[allow(unused_imports)]
4use super::*;
5/// Oracle Cloud Agent features supported on the image.
6#[derive(Debug, Clone, Serialize, Deserialize)]
7#[serde(rename_all = "camelCase")]
8pub struct InstanceAgentFeatures {
9    /// This attribute is not used.
10    #[serde(skip_serializing_if = "Option::is_none")]
11    pub is_monitoring_supported: Option<bool>,
12
13    /// This attribute is not used.
14    #[serde(skip_serializing_if = "Option::is_none")]
15    pub is_management_supported: Option<bool>,
16}
17
18impl InstanceAgentFeatures {
19    /// Create a new InstanceAgentFeatures
20    pub fn new() -> Self {
21        Self {
22            is_monitoring_supported: None,
23
24            is_management_supported: None,
25        }
26    }
27
28    /// Set is_monitoring_supported
29    pub fn set_is_monitoring_supported(mut self, value: Option<bool>) -> Self {
30        self.is_monitoring_supported = value;
31        self
32    }
33
34    /// Set is_management_supported
35    pub fn set_is_management_supported(mut self, value: Option<bool>) -> Self {
36        self.is_management_supported = value;
37        self
38    }
39
40    /// Set is_monitoring_supported (unwraps Option)
41    pub fn with_is_monitoring_supported(mut self, value: bool) -> Self {
42        self.is_monitoring_supported = Some(value);
43        self
44    }
45
46    /// Set is_management_supported (unwraps Option)
47    pub fn with_is_management_supported(mut self, value: bool) -> Self {
48        self.is_management_supported = Some(value);
49        self
50    }
51}
52
53impl Default for InstanceAgentFeatures {
54    fn default() -> Self {
55        Self::new()
56    }
57}