Struct aws_sdk_storagegateway::types::builders::DiskBuilder
source · #[non_exhaustive]pub struct DiskBuilder { /* private fields */ }
Expand description
A builder for Disk
.
Implementations§
source§impl DiskBuilder
impl DiskBuilder
sourcepub fn disk_id(self, input: impl Into<String>) -> Self
pub fn disk_id(self, input: impl Into<String>) -> Self
The unique device ID or other distinguishing data that identifies a local disk.
sourcepub fn set_disk_id(self, input: Option<String>) -> Self
pub fn set_disk_id(self, input: Option<String>) -> Self
The unique device ID or other distinguishing data that identifies a local disk.
sourcepub fn get_disk_id(&self) -> &Option<String>
pub fn get_disk_id(&self) -> &Option<String>
The unique device ID or other distinguishing data that identifies a local disk.
sourcepub fn disk_path(self, input: impl Into<String>) -> Self
pub fn disk_path(self, input: impl Into<String>) -> Self
The path of a local disk in the gateway virtual machine (VM).
sourcepub fn set_disk_path(self, input: Option<String>) -> Self
pub fn set_disk_path(self, input: Option<String>) -> Self
The path of a local disk in the gateway virtual machine (VM).
sourcepub fn get_disk_path(&self) -> &Option<String>
pub fn get_disk_path(&self) -> &Option<String>
The path of a local disk in the gateway virtual machine (VM).
sourcepub fn disk_node(self, input: impl Into<String>) -> Self
pub fn disk_node(self, input: impl Into<String>) -> Self
The device node of a local disk as assigned by the virtualization environment.
sourcepub fn set_disk_node(self, input: Option<String>) -> Self
pub fn set_disk_node(self, input: Option<String>) -> Self
The device node of a local disk as assigned by the virtualization environment.
sourcepub fn get_disk_node(&self) -> &Option<String>
pub fn get_disk_node(&self) -> &Option<String>
The device node of a local disk as assigned by the virtualization environment.
sourcepub fn disk_status(self, input: impl Into<String>) -> Self
pub fn disk_status(self, input: impl Into<String>) -> Self
A value that represents the status of a local disk.
sourcepub fn set_disk_status(self, input: Option<String>) -> Self
pub fn set_disk_status(self, input: Option<String>) -> Self
A value that represents the status of a local disk.
sourcepub fn get_disk_status(&self) -> &Option<String>
pub fn get_disk_status(&self) -> &Option<String>
A value that represents the status of a local disk.
sourcepub fn disk_size_in_bytes(self, input: i64) -> Self
pub fn disk_size_in_bytes(self, input: i64) -> Self
The local disk size in bytes.
sourcepub fn set_disk_size_in_bytes(self, input: Option<i64>) -> Self
pub fn set_disk_size_in_bytes(self, input: Option<i64>) -> Self
The local disk size in bytes.
sourcepub fn get_disk_size_in_bytes(&self) -> &Option<i64>
pub fn get_disk_size_in_bytes(&self) -> &Option<i64>
The local disk size in bytes.
sourcepub fn disk_allocation_type(self, input: impl Into<String>) -> Self
pub fn disk_allocation_type(self, input: impl Into<String>) -> Self
One of the DiskAllocationType
enumeration values that identifies how a local disk is used.
Valid Values: UPLOAD_BUFFER
| CACHE_STORAGE
sourcepub fn set_disk_allocation_type(self, input: Option<String>) -> Self
pub fn set_disk_allocation_type(self, input: Option<String>) -> Self
One of the DiskAllocationType
enumeration values that identifies how a local disk is used.
Valid Values: UPLOAD_BUFFER
| CACHE_STORAGE
sourcepub fn get_disk_allocation_type(&self) -> &Option<String>
pub fn get_disk_allocation_type(&self) -> &Option<String>
One of the DiskAllocationType
enumeration values that identifies how a local disk is used.
Valid Values: UPLOAD_BUFFER
| CACHE_STORAGE
sourcepub fn disk_allocation_resource(self, input: impl Into<String>) -> Self
pub fn disk_allocation_resource(self, input: impl Into<String>) -> Self
The iSCSI qualified name (IQN) that is defined for a disk. This field is not included in the response if the local disk is not defined as an iSCSI target. The format of this field is targetIqn::LUNNumber::region-volumeId.
sourcepub fn set_disk_allocation_resource(self, input: Option<String>) -> Self
pub fn set_disk_allocation_resource(self, input: Option<String>) -> Self
The iSCSI qualified name (IQN) that is defined for a disk. This field is not included in the response if the local disk is not defined as an iSCSI target. The format of this field is targetIqn::LUNNumber::region-volumeId.
sourcepub fn get_disk_allocation_resource(&self) -> &Option<String>
pub fn get_disk_allocation_resource(&self) -> &Option<String>
The iSCSI qualified name (IQN) that is defined for a disk. This field is not included in the response if the local disk is not defined as an iSCSI target. The format of this field is targetIqn::LUNNumber::region-volumeId.
sourcepub fn disk_attribute_list(self, input: impl Into<String>) -> Self
pub fn disk_attribute_list(self, input: impl Into<String>) -> Self
Appends an item to disk_attribute_list
.
To override the contents of this collection use set_disk_attribute_list
.
A list of values that represents attributes of a local disk.
sourcepub fn set_disk_attribute_list(self, input: Option<Vec<String>>) -> Self
pub fn set_disk_attribute_list(self, input: Option<Vec<String>>) -> Self
A list of values that represents attributes of a local disk.
sourcepub fn get_disk_attribute_list(&self) -> &Option<Vec<String>>
pub fn get_disk_attribute_list(&self) -> &Option<Vec<String>>
A list of values that represents attributes of a local disk.
Trait Implementations§
source§impl Clone for DiskBuilder
impl Clone for DiskBuilder
source§fn clone(&self) -> DiskBuilder
fn clone(&self) -> DiskBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DiskBuilder
impl Debug for DiskBuilder
source§impl Default for DiskBuilder
impl Default for DiskBuilder
source§fn default() -> DiskBuilder
fn default() -> DiskBuilder
source§impl PartialEq for DiskBuilder
impl PartialEq for DiskBuilder
source§fn eq(&self, other: &DiskBuilder) -> bool
fn eq(&self, other: &DiskBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DiskBuilder
Auto Trait Implementations§
impl Freeze for DiskBuilder
impl RefUnwindSafe for DiskBuilder
impl Send for DiskBuilder
impl Sync for DiskBuilder
impl Unpin for DiskBuilder
impl UnwindSafe for DiskBuilder
Blanket Implementations§
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more