Struct aws_sdk_storagegateway::operation::update_chap_credentials::builders::UpdateChapCredentialsInputBuilder
source · #[non_exhaustive]pub struct UpdateChapCredentialsInputBuilder { /* private fields */ }
Expand description
A builder for UpdateChapCredentialsInput
.
Implementations§
source§impl UpdateChapCredentialsInputBuilder
impl UpdateChapCredentialsInputBuilder
sourcepub fn target_arn(self, input: impl Into<String>) -> Self
pub fn target_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the iSCSI volume target. Use the DescribeStorediSCSIVolumes
operation to return the TargetARN for specified VolumeARN.
sourcepub fn set_target_arn(self, input: Option<String>) -> Self
pub fn set_target_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the iSCSI volume target. Use the DescribeStorediSCSIVolumes
operation to return the TargetARN for specified VolumeARN.
sourcepub fn get_target_arn(&self) -> &Option<String>
pub fn get_target_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the iSCSI volume target. Use the DescribeStorediSCSIVolumes
operation to return the TargetARN for specified VolumeARN.
sourcepub fn secret_to_authenticate_initiator(self, input: impl Into<String>) -> Self
pub fn secret_to_authenticate_initiator(self, input: impl Into<String>) -> Self
The secret key that the initiator (for example, the Windows client) must provide to participate in mutual CHAP with the target.
The secret key must be between 12 and 16 bytes when encoded in UTF-8.
sourcepub fn set_secret_to_authenticate_initiator(self, input: Option<String>) -> Self
pub fn set_secret_to_authenticate_initiator(self, input: Option<String>) -> Self
The secret key that the initiator (for example, the Windows client) must provide to participate in mutual CHAP with the target.
The secret key must be between 12 and 16 bytes when encoded in UTF-8.
sourcepub fn get_secret_to_authenticate_initiator(&self) -> &Option<String>
pub fn get_secret_to_authenticate_initiator(&self) -> &Option<String>
The secret key that the initiator (for example, the Windows client) must provide to participate in mutual CHAP with the target.
The secret key must be between 12 and 16 bytes when encoded in UTF-8.
sourcepub fn initiator_name(self, input: impl Into<String>) -> Self
pub fn initiator_name(self, input: impl Into<String>) -> Self
The iSCSI initiator that connects to the target.
This field is required.sourcepub fn set_initiator_name(self, input: Option<String>) -> Self
pub fn set_initiator_name(self, input: Option<String>) -> Self
The iSCSI initiator that connects to the target.
sourcepub fn get_initiator_name(&self) -> &Option<String>
pub fn get_initiator_name(&self) -> &Option<String>
The iSCSI initiator that connects to the target.
sourcepub fn secret_to_authenticate_target(self, input: impl Into<String>) -> Self
pub fn secret_to_authenticate_target(self, input: impl Into<String>) -> Self
The secret key that the target must provide to participate in mutual CHAP with the initiator (e.g. Windows client).
Byte constraints: Minimum bytes of 12. Maximum bytes of 16.
The secret key must be between 12 and 16 bytes when encoded in UTF-8.
sourcepub fn set_secret_to_authenticate_target(self, input: Option<String>) -> Self
pub fn set_secret_to_authenticate_target(self, input: Option<String>) -> Self
The secret key that the target must provide to participate in mutual CHAP with the initiator (e.g. Windows client).
Byte constraints: Minimum bytes of 12. Maximum bytes of 16.
The secret key must be between 12 and 16 bytes when encoded in UTF-8.
sourcepub fn get_secret_to_authenticate_target(&self) -> &Option<String>
pub fn get_secret_to_authenticate_target(&self) -> &Option<String>
The secret key that the target must provide to participate in mutual CHAP with the initiator (e.g. Windows client).
Byte constraints: Minimum bytes of 12. Maximum bytes of 16.
The secret key must be between 12 and 16 bytes when encoded in UTF-8.
sourcepub fn build(self) -> Result<UpdateChapCredentialsInput, BuildError>
pub fn build(self) -> Result<UpdateChapCredentialsInput, BuildError>
Consumes the builder and constructs a UpdateChapCredentialsInput
.
source§impl UpdateChapCredentialsInputBuilder
impl UpdateChapCredentialsInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdateChapCredentialsOutput, SdkError<UpdateChapCredentialsError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdateChapCredentialsOutput, SdkError<UpdateChapCredentialsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateChapCredentialsInputBuilder
impl Clone for UpdateChapCredentialsInputBuilder
source§fn clone(&self) -> UpdateChapCredentialsInputBuilder
fn clone(&self) -> UpdateChapCredentialsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for UpdateChapCredentialsInputBuilder
impl Default for UpdateChapCredentialsInputBuilder
source§fn default() -> UpdateChapCredentialsInputBuilder
fn default() -> UpdateChapCredentialsInputBuilder
source§impl PartialEq for UpdateChapCredentialsInputBuilder
impl PartialEq for UpdateChapCredentialsInputBuilder
source§fn eq(&self, other: &UpdateChapCredentialsInputBuilder) -> bool
fn eq(&self, other: &UpdateChapCredentialsInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateChapCredentialsInputBuilder
Auto Trait Implementations§
impl Freeze for UpdateChapCredentialsInputBuilder
impl RefUnwindSafe for UpdateChapCredentialsInputBuilder
impl Send for UpdateChapCredentialsInputBuilder
impl Sync for UpdateChapCredentialsInputBuilder
impl Unpin for UpdateChapCredentialsInputBuilder
impl UnwindSafe for UpdateChapCredentialsInputBuilder
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