pub struct UpdateVolumeRequest {
pub volume_id: String,
pub update_volume_details: UpdateVolumeDetails,
pub if_match: Option<String>,
}Fields§
§volume_id: StringThe OCID of the volume.
update_volume_details: UpdateVolumeDetailsUpdate volume’s display name. Avoid entering confidential information.
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 UpdateVolumeRequest
impl UpdateVolumeRequest
Sourcepub fn new(required: UpdateVolumeRequestRequired) -> Self
pub fn new(required: UpdateVolumeRequestRequired) -> Self
Create a new UpdateVolumeRequest with required fields
Sourcepub fn set_volume_id(self, value: String) -> Self
pub fn set_volume_id(self, value: String) -> Self
Set volume_id
Sourcepub fn set_update_volume_details(self, value: UpdateVolumeDetails) -> Self
pub fn set_update_volume_details(self, value: UpdateVolumeDetails) -> Self
Set update_volume_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 UpdateVolumeRequest
impl Clone for UpdateVolumeRequest
Source§fn clone(&self) -> UpdateVolumeRequest
fn clone(&self) -> UpdateVolumeRequest
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 UpdateVolumeRequest
impl Debug for UpdateVolumeRequest
Source§impl<'de> Deserialize<'de> for UpdateVolumeRequest
impl<'de> Deserialize<'de> for UpdateVolumeRequest
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 UpdateVolumeRequest
impl RefUnwindSafe for UpdateVolumeRequest
impl Send for UpdateVolumeRequest
impl Sync for UpdateVolumeRequest
impl Unpin for UpdateVolumeRequest
impl UnsafeUnpin for UpdateVolumeRequest
impl UnwindSafe for UpdateVolumeRequest
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