#[non_exhaustive]pub struct KeySummaryBuilder { /* private fields */ }Expand description
A builder for KeySummary.
Implementations§
source§impl KeySummaryBuilder
impl KeySummaryBuilder
sourcepub fn key_arn(self, input: impl Into<String>) -> Self
pub fn key_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the key.
This field is required.sourcepub fn set_key_arn(self, input: Option<String>) -> Self
pub fn set_key_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the key.
sourcepub fn get_key_arn(&self) -> &Option<String>
pub fn get_key_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the key.
sourcepub fn key_state(self, input: KeyState) -> Self
pub fn key_state(self, input: KeyState) -> Self
The state of an Amazon Web Services Payment Cryptography that is being created or deleted.
This field is required.sourcepub fn set_key_state(self, input: Option<KeyState>) -> Self
pub fn set_key_state(self, input: Option<KeyState>) -> Self
The state of an Amazon Web Services Payment Cryptography that is being created or deleted.
sourcepub fn get_key_state(&self) -> &Option<KeyState>
pub fn get_key_state(&self) -> &Option<KeyState>
The state of an Amazon Web Services Payment Cryptography that is being created or deleted.
sourcepub fn key_attributes(self, input: KeyAttributes) -> Self
pub fn key_attributes(self, input: KeyAttributes) -> Self
The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key. This data is immutable after the key is created.
This field is required.sourcepub fn set_key_attributes(self, input: Option<KeyAttributes>) -> Self
pub fn set_key_attributes(self, input: Option<KeyAttributes>) -> Self
The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key. This data is immutable after the key is created.
sourcepub fn get_key_attributes(&self) -> &Option<KeyAttributes>
pub fn get_key_attributes(&self) -> &Option<KeyAttributes>
The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key. This data is immutable after the key is created.
sourcepub fn key_check_value(self, input: impl Into<String>) -> Self
pub fn key_check_value(self, input: impl Into<String>) -> Self
The key check value (KCV) is used to check if all parties holding a given key have the same key or to detect that a key has changed.
This field is required.sourcepub fn set_key_check_value(self, input: Option<String>) -> Self
pub fn set_key_check_value(self, input: Option<String>) -> Self
The key check value (KCV) is used to check if all parties holding a given key have the same key or to detect that a key has changed.
sourcepub fn get_key_check_value(&self) -> &Option<String>
pub fn get_key_check_value(&self) -> &Option<String>
The key check value (KCV) is used to check if all parties holding a given key have the same key or to detect that a key has changed.
sourcepub fn exportable(self, input: bool) -> Self
pub fn exportable(self, input: bool) -> Self
Specifies whether the key is exportable. This data is immutable after the key is created.
This field is required.sourcepub fn set_exportable(self, input: Option<bool>) -> Self
pub fn set_exportable(self, input: Option<bool>) -> Self
Specifies whether the key is exportable. This data is immutable after the key is created.
sourcepub fn get_exportable(&self) -> &Option<bool>
pub fn get_exportable(&self) -> &Option<bool>
Specifies whether the key is exportable. This data is immutable after the key is created.
sourcepub fn enabled(self, input: bool) -> Self
pub fn enabled(self, input: bool) -> Self
Specifies whether the key is enabled.
This field is required.sourcepub fn set_enabled(self, input: Option<bool>) -> Self
pub fn set_enabled(self, input: Option<bool>) -> Self
Specifies whether the key is enabled.
sourcepub fn get_enabled(&self) -> &Option<bool>
pub fn get_enabled(&self) -> &Option<bool>
Specifies whether the key is enabled.
sourcepub fn build(self) -> Result<KeySummary, BuildError>
pub fn build(self) -> Result<KeySummary, BuildError>
Consumes the builder and constructs a KeySummary.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for KeySummaryBuilder
impl Clone for KeySummaryBuilder
source§fn clone(&self) -> KeySummaryBuilder
fn clone(&self) -> KeySummaryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for KeySummaryBuilder
impl Debug for KeySummaryBuilder
source§impl Default for KeySummaryBuilder
impl Default for KeySummaryBuilder
source§fn default() -> KeySummaryBuilder
fn default() -> KeySummaryBuilder
source§impl PartialEq for KeySummaryBuilder
impl PartialEq for KeySummaryBuilder
source§fn eq(&self, other: &KeySummaryBuilder) -> bool
fn eq(&self, other: &KeySummaryBuilder) -> bool
self and other values to be equal, and is used
by ==.