Struct aws_sdk_storagegateway::operation::describe_chap_credentials::builders::DescribeChapCredentialsOutputBuilder
source · #[non_exhaustive]pub struct DescribeChapCredentialsOutputBuilder { /* private fields */ }Expand description
A builder for DescribeChapCredentialsOutput.
Implementations§
source§impl DescribeChapCredentialsOutputBuilder
impl DescribeChapCredentialsOutputBuilder
sourcepub fn chap_credentials(self, input: ChapInfo) -> Self
pub fn chap_credentials(self, input: ChapInfo) -> Self
Appends an item to chap_credentials.
To override the contents of this collection use set_chap_credentials.
An array of ChapInfo objects that represent CHAP credentials. Each object in the array contains CHAP credential information for one target-initiator pair. If no CHAP credentials are set, an empty array is returned. CHAP credential information is provided in a JSON object with the following fields:
-
InitiatorName: The iSCSI initiator that connects to the target.
-
SecretToAuthenticateInitiator: The secret key that the initiator (for example, the Windows client) must provide to participate in mutual CHAP with the target.
-
SecretToAuthenticateTarget: The secret key that the target must provide to participate in mutual CHAP with the initiator (e.g. Windows client).
-
TargetARN: The Amazon Resource Name (ARN) of the storage volume.
sourcepub fn set_chap_credentials(self, input: Option<Vec<ChapInfo>>) -> Self
pub fn set_chap_credentials(self, input: Option<Vec<ChapInfo>>) -> Self
An array of ChapInfo objects that represent CHAP credentials. Each object in the array contains CHAP credential information for one target-initiator pair. If no CHAP credentials are set, an empty array is returned. CHAP credential information is provided in a JSON object with the following fields:
-
InitiatorName: The iSCSI initiator that connects to the target.
-
SecretToAuthenticateInitiator: The secret key that the initiator (for example, the Windows client) must provide to participate in mutual CHAP with the target.
-
SecretToAuthenticateTarget: The secret key that the target must provide to participate in mutual CHAP with the initiator (e.g. Windows client).
-
TargetARN: The Amazon Resource Name (ARN) of the storage volume.
sourcepub fn get_chap_credentials(&self) -> &Option<Vec<ChapInfo>>
pub fn get_chap_credentials(&self) -> &Option<Vec<ChapInfo>>
An array of ChapInfo objects that represent CHAP credentials. Each object in the array contains CHAP credential information for one target-initiator pair. If no CHAP credentials are set, an empty array is returned. CHAP credential information is provided in a JSON object with the following fields:
-
InitiatorName: The iSCSI initiator that connects to the target.
-
SecretToAuthenticateInitiator: The secret key that the initiator (for example, the Windows client) must provide to participate in mutual CHAP with the target.
-
SecretToAuthenticateTarget: The secret key that the target must provide to participate in mutual CHAP with the initiator (e.g. Windows client).
-
TargetARN: The Amazon Resource Name (ARN) of the storage volume.
sourcepub fn build(self) -> DescribeChapCredentialsOutput
pub fn build(self) -> DescribeChapCredentialsOutput
Consumes the builder and constructs a DescribeChapCredentialsOutput.
Trait Implementations§
source§impl Clone for DescribeChapCredentialsOutputBuilder
impl Clone for DescribeChapCredentialsOutputBuilder
source§fn clone(&self) -> DescribeChapCredentialsOutputBuilder
fn clone(&self) -> DescribeChapCredentialsOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for DescribeChapCredentialsOutputBuilder
impl Default for DescribeChapCredentialsOutputBuilder
source§fn default() -> DescribeChapCredentialsOutputBuilder
fn default() -> DescribeChapCredentialsOutputBuilder
source§impl PartialEq for DescribeChapCredentialsOutputBuilder
impl PartialEq for DescribeChapCredentialsOutputBuilder
source§fn eq(&self, other: &DescribeChapCredentialsOutputBuilder) -> bool
fn eq(&self, other: &DescribeChapCredentialsOutputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DescribeChapCredentialsOutputBuilder
Auto Trait Implementations§
impl Freeze for DescribeChapCredentialsOutputBuilder
impl RefUnwindSafe for DescribeChapCredentialsOutputBuilder
impl Send for DescribeChapCredentialsOutputBuilder
impl Sync for DescribeChapCredentialsOutputBuilder
impl Unpin for DescribeChapCredentialsOutputBuilder
impl UnwindSafe for DescribeChapCredentialsOutputBuilder
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