pub struct UpdateSubnetRequest {
pub subnet_id: String,
pub update_subnet_details: UpdateSubnetDetails,
pub if_match: Option<String>,
}Fields§
§subnet_id: StringSpecify the OCID of the subnet.
update_subnet_details: UpdateSubnetDetailsDetails object for updating a subnet.
if_match: Option<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.
Implementations§
Source§impl UpdateSubnetRequest
impl UpdateSubnetRequest
Sourcepub fn new(required: UpdateSubnetRequestRequired) -> Self
pub fn new(required: UpdateSubnetRequestRequired) -> Self
Create a new UpdateSubnetRequest with required fields
Sourcepub fn set_subnet_id(self, value: String) -> Self
pub fn set_subnet_id(self, value: String) -> Self
Set subnet_id
Sourcepub fn set_update_subnet_details(self, value: UpdateSubnetDetails) -> Self
pub fn set_update_subnet_details(self, value: UpdateSubnetDetails) -> Self
Set update_subnet_details
Sourcepub fn set_if_match(self, value: Option<String>) -> Self
pub fn set_if_match(self, value: Option<String>) -> Self
Set if_match
Sourcepub fn with_if_match(self, value: impl Into<String>) -> Self
pub fn with_if_match(self, value: impl Into<String>) -> Self
Set if_match (unwraps Option)
Trait Implementations§
Source§impl Clone for UpdateSubnetRequest
impl Clone for UpdateSubnetRequest
Source§fn clone(&self) -> UpdateSubnetRequest
fn clone(&self) -> UpdateSubnetRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UpdateSubnetRequest
impl Debug for UpdateSubnetRequest
Source§impl<'de> Deserialize<'de> for UpdateSubnetRequest
impl<'de> Deserialize<'de> for UpdateSubnetRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for UpdateSubnetRequest
impl RefUnwindSafe for UpdateSubnetRequest
impl Send for UpdateSubnetRequest
impl Sync for UpdateSubnetRequest
impl Unpin for UpdateSubnetRequest
impl UnsafeUnpin for UpdateSubnetRequest
impl UnwindSafe for UpdateSubnetRequest
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more