[][src]Struct aws_iam::model::builder::ConditionBuilder

pub struct ConditionBuilder { /* fields omitted */ }

A Condition builder, used with StatementBuilder::if_condition().

Methods

impl ConditionBuilder[src]

pub fn new(operator: GlobalConditionOperator) -> Self[src]

Create a new Condition with the provided operator.

pub fn new_string_equals() -> Self[src]

Create a new Condition with operator = StringEquals

pub fn new_string_not_equals() -> Self[src]

Create a new Condition with operator = StringNotEquals

pub fn new_numeric_equals() -> Self[src]

Create a new Condition with operator = NumericEquals

pub fn new_numeric_not_equals() -> Self[src]

Create a new Condition with operator = NumericNotEquals

pub fn new_bool() -> Self[src]

Create a new Condition with operator = Bool

pub fn for_all(&mut self) -> &mut Self[src]

Add the for-all-values quantifier.

pub fn for_any(&mut self) -> &mut Self[src]

Add the for-any-value quantifier.

pub fn right_hand_side(
    &mut self,
    key: &str,
    values: &mut Vec<ConditionValue>
) -> &mut Self
[src]

Add a list of values to the right-hand-sidse of this condition.

pub fn right_hand_str(&mut self, key: &str, value: &str) -> &mut Self[src]

Add a string value to the right-hand-sidse of this condition.

pub fn right_hand_int(&mut self, key: &str, value: i64) -> &mut Self[src]

Add a integer value to the right-hand-sidse of this condition.

pub fn right_hand_float(&mut self, key: &str, value: f64) -> &mut Self[src]

Add a float value to the right-hand-sidse of this condition.

pub fn right_hand_bool(&mut self, key: &str, value: bool) -> &mut Self[src]

Add a boolean value to the right-hand-sidse of this condition.

pub fn if_exists(&mut self) -> &mut Self[src]

Add the if-exists constraint

pub fn build_as_condition(
    &self
) -> HashMap<ConditionOperator, HashMap<QString, OneOrAll<ConditionValue>>>
[src]

Convert this one condition into a complete Condition for a statement.

Trait Implementations

impl Debug for ConditionBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,