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 ==.