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
use serde::{Deserialize, Serialize};
#[allow(unused_imports)]
use super::super::models::*;
#[allow(unused_imports)]
use super::*;
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct DeleteContainerInstanceRequest {
/// The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the container instance.
pub container_instance_id: String,
/// For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
#[serde(skip_serializing_if = "Option::is_none")]
pub if_match: Option<String>,
/// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
#[serde(skip_serializing_if = "Option::is_none")]
pub opc_request_id: Option<String>,
}
/// Required fields for DeleteContainerInstanceRequest
pub struct DeleteContainerInstanceRequestRequired {
/// The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the container instance.
pub container_instance_id: String,
}
impl DeleteContainerInstanceRequest {
/// Create a new DeleteContainerInstanceRequest with required fields
pub fn new(required: DeleteContainerInstanceRequestRequired) -> Self {
Self {
container_instance_id: required.container_instance_id,
if_match: None,
opc_request_id: None,
}
}
/// Set container_instance_id
pub fn set_container_instance_id(mut self, value: String) -> Self {
self.container_instance_id = value;
self
}
/// Set if_match
pub fn set_if_match(mut self, value: Option<String>) -> Self {
self.if_match = value;
self
}
/// Set opc_request_id
pub fn set_opc_request_id(mut self, value: Option<String>) -> Self {
self.opc_request_id = value;
self
}
/// Set if_match (unwraps Option)
pub fn with_if_match(mut self, value: impl Into<String>) -> Self {
self.if_match = Some(value.into());
self
}
/// Set opc_request_id (unwraps Option)
pub fn with_opc_request_id(mut self, value: impl Into<String>) -> Self {
self.opc_request_id = Some(value.into());
self
}
/// Convert this request's query parameters to a vector of key-value pairs.
pub fn to_query_params(&self) -> Vec<(String, String)> {
Vec::new()
}
}