Skip to main content

oci_rust_sdk/core/models/
shape_alternative_object.rs

1use serde::{Deserialize, Serialize};
2
3#[allow(unused_imports)]
4use super::*;
5/// The shape that Oracle recommends you to use an alternative to the current shape.
6#[derive(Debug, Clone, Serialize, Deserialize)]
7#[serde(rename_all = "camelCase")]
8pub struct ShapeAlternativeObject {
9    /// The name of the shape.
10    pub shape_name: String,
11}
12
13/// Required fields for ShapeAlternativeObject
14pub struct ShapeAlternativeObjectRequired {
15    /// The name of the shape.
16    pub shape_name: String,
17}
18
19impl ShapeAlternativeObject {
20    /// Create a new ShapeAlternativeObject with required fields
21    pub fn new(required: ShapeAlternativeObjectRequired) -> Self {
22        Self {
23            shape_name: required.shape_name,
24        }
25    }
26
27    /// Set shape_name
28    pub fn set_shape_name(mut self, value: String) -> Self {
29        self.shape_name = value;
30        self
31    }
32}