1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
use serde::{Deserialize, Serialize};
#[allow(unused_imports)]
use super::*;
/// Provides the information used to replicated a vendor software source into another compartment (other than root).
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct CreateVendorSoftwareSourceDetails {
/// The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the vendor software source in the root compartment that is being replicated.
pub origin_software_source_id: String,
pub software_source_type: String,
}
/// Required fields for CreateVendorSoftwareSourceDetails
pub struct CreateVendorSoftwareSourceDetailsRequired {
/// The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the vendor software source in the root compartment that is being replicated.
pub origin_software_source_id: String,
pub software_source_type: String,
}
impl CreateVendorSoftwareSourceDetails {
/// Create a new CreateVendorSoftwareSourceDetails with required fields
pub fn new(required: CreateVendorSoftwareSourceDetailsRequired) -> Self {
Self {
origin_software_source_id: required.origin_software_source_id,
software_source_type: required.software_source_type,
}
}
/// Set origin_software_source_id
pub fn set_origin_software_source_id(mut self, value: String) -> Self {
self.origin_software_source_id = value;
self
}
/// Set software_source_type
pub fn set_software_source_type(mut self, value: String) -> Self {
self.software_source_type = value;
self
}
}