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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
use serde::{Deserialize, Serialize};
#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use super::super::models::*;
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct CreateContainerInstanceResponse {
/// For optimistic concurrency control. See {@code if-match}.
pub etag: String,
/// Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation.
pub opc_work_request_id: String,
/// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
pub opc_request_id: String,
/// The returned model.ContainerInstance instance.
pub container_instance: ContainerInstance,
}
/// Required fields for CreateContainerInstanceResponse
pub struct CreateContainerInstanceResponseRequired {
/// For optimistic concurrency control. See {@code if-match}.
pub etag: String,
/// Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation.
pub opc_work_request_id: String,
/// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
pub opc_request_id: String,
/// The returned model.ContainerInstance instance.
pub container_instance: ContainerInstance,
}
impl CreateContainerInstanceResponse {
/// Create a new CreateContainerInstanceResponse with required fields
pub fn new(required: CreateContainerInstanceResponseRequired) -> Self {
Self {
etag: required.etag,
opc_work_request_id: required.opc_work_request_id,
opc_request_id: required.opc_request_id,
container_instance: required.container_instance,
}
}
/// Set etag
pub fn set_etag(mut self, value: String) -> Self {
self.etag = value;
self
}
/// Set opc_work_request_id
pub fn set_opc_work_request_id(mut self, value: String) -> Self {
self.opc_work_request_id = value;
self
}
/// Set opc_request_id
pub fn set_opc_request_id(mut self, value: String) -> Self {
self.opc_request_id = value;
self
}
/// Set container_instance
pub fn set_container_instance(mut self, value: ContainerInstance) -> Self {
self.container_instance = value;
self
}
}