Struct aws_sdk_iam::types::builders::ContextEntryBuilder
source · #[non_exhaustive]pub struct ContextEntryBuilder { /* private fields */ }
Expand description
A builder for ContextEntry
.
Implementations§
source§impl ContextEntryBuilder
impl ContextEntryBuilder
sourcepub fn context_key_name(self, input: impl Into<String>) -> Self
pub fn context_key_name(self, input: impl Into<String>) -> Self
The full name of a condition context key, including the service prefix. For example, aws:SourceIp
or s3:VersionId
.
sourcepub fn set_context_key_name(self, input: Option<String>) -> Self
pub fn set_context_key_name(self, input: Option<String>) -> Self
The full name of a condition context key, including the service prefix. For example, aws:SourceIp
or s3:VersionId
.
sourcepub fn get_context_key_name(&self) -> &Option<String>
pub fn get_context_key_name(&self) -> &Option<String>
The full name of a condition context key, including the service prefix. For example, aws:SourceIp
or s3:VersionId
.
sourcepub fn context_key_values(self, input: impl Into<String>) -> Self
pub fn context_key_values(self, input: impl Into<String>) -> Self
Appends an item to context_key_values
.
To override the contents of this collection use set_context_key_values
.
The value (or values, if the condition context key supports multiple values) to provide to the simulation when the key is referenced by a Condition
element in an input policy.
sourcepub fn set_context_key_values(self, input: Option<Vec<String>>) -> Self
pub fn set_context_key_values(self, input: Option<Vec<String>>) -> Self
The value (or values, if the condition context key supports multiple values) to provide to the simulation when the key is referenced by a Condition
element in an input policy.
sourcepub fn get_context_key_values(&self) -> &Option<Vec<String>>
pub fn get_context_key_values(&self) -> &Option<Vec<String>>
The value (or values, if the condition context key supports multiple values) to provide to the simulation when the key is referenced by a Condition
element in an input policy.
sourcepub fn context_key_type(self, input: ContextKeyTypeEnum) -> Self
pub fn context_key_type(self, input: ContextKeyTypeEnum) -> Self
The data type of the value (or values) specified in the ContextKeyValues
parameter.
sourcepub fn set_context_key_type(self, input: Option<ContextKeyTypeEnum>) -> Self
pub fn set_context_key_type(self, input: Option<ContextKeyTypeEnum>) -> Self
The data type of the value (or values) specified in the ContextKeyValues
parameter.
sourcepub fn get_context_key_type(&self) -> &Option<ContextKeyTypeEnum>
pub fn get_context_key_type(&self) -> &Option<ContextKeyTypeEnum>
The data type of the value (or values) specified in the ContextKeyValues
parameter.
sourcepub fn build(self) -> ContextEntry
pub fn build(self) -> ContextEntry
Consumes the builder and constructs a ContextEntry
.
Trait Implementations§
source§impl Clone for ContextEntryBuilder
impl Clone for ContextEntryBuilder
source§fn clone(&self) -> ContextEntryBuilder
fn clone(&self) -> ContextEntryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ContextEntryBuilder
impl Debug for ContextEntryBuilder
source§impl Default for ContextEntryBuilder
impl Default for ContextEntryBuilder
source§fn default() -> ContextEntryBuilder
fn default() -> ContextEntryBuilder
source§impl PartialEq for ContextEntryBuilder
impl PartialEq for ContextEntryBuilder
source§fn eq(&self, other: &ContextEntryBuilder) -> bool
fn eq(&self, other: &ContextEntryBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.