oci_rust_sdk/core/models/
instance_agent_features.rs1use serde::{Deserialize, Serialize};
2
3#[allow(unused_imports)]
4use super::*;
5#[derive(Debug, Clone, Serialize, Deserialize)]
7#[serde(rename_all = "camelCase")]
8pub struct InstanceAgentFeatures {
9 #[serde(skip_serializing_if = "Option::is_none")]
11 pub is_monitoring_supported: Option<bool>,
12
13 #[serde(skip_serializing_if = "Option::is_none")]
15 pub is_management_supported: Option<bool>,
16}
17
18impl InstanceAgentFeatures {
19 pub fn new() -> Self {
21 Self {
22 is_monitoring_supported: None,
23
24 is_management_supported: None,
25 }
26 }
27
28 pub fn set_is_monitoring_supported(mut self, value: Option<bool>) -> Self {
30 self.is_monitoring_supported = value;
31 self
32 }
33
34 pub fn set_is_management_supported(mut self, value: Option<bool>) -> Self {
36 self.is_management_supported = value;
37 self
38 }
39
40 pub fn with_is_monitoring_supported(mut self, value: bool) -> Self {
42 self.is_monitoring_supported = Some(value);
43 self
44 }
45
46 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}