#[non_exhaustive]pub struct DeterminingPolicyItemBuilder { /* private fields */ }Expand description
A builder for DeterminingPolicyItem.
Implementations§
source§impl DeterminingPolicyItemBuilder
impl DeterminingPolicyItemBuilder
sourcepub fn policy_id(self, input: impl Into<String>) -> Self
pub fn policy_id(self, input: impl Into<String>) -> Self
The Id of a policy that determined to an authorization decision.
Example: "policyId":"SPEXAMPLEabcdefg111111"
sourcepub fn set_policy_id(self, input: Option<String>) -> Self
pub fn set_policy_id(self, input: Option<String>) -> Self
The Id of a policy that determined to an authorization decision.
Example: "policyId":"SPEXAMPLEabcdefg111111"
sourcepub fn get_policy_id(&self) -> &Option<String>
pub fn get_policy_id(&self) -> &Option<String>
The Id of a policy that determined to an authorization decision.
Example: "policyId":"SPEXAMPLEabcdefg111111"
sourcepub fn build(self) -> Result<DeterminingPolicyItem, BuildError>
pub fn build(self) -> Result<DeterminingPolicyItem, BuildError>
Consumes the builder and constructs a DeterminingPolicyItem.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DeterminingPolicyItemBuilder
impl Clone for DeterminingPolicyItemBuilder
source§fn clone(&self) -> DeterminingPolicyItemBuilder
fn clone(&self) -> DeterminingPolicyItemBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for DeterminingPolicyItemBuilder
impl Debug for DeterminingPolicyItemBuilder
source§impl Default for DeterminingPolicyItemBuilder
impl Default for DeterminingPolicyItemBuilder
source§fn default() -> DeterminingPolicyItemBuilder
fn default() -> DeterminingPolicyItemBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for DeterminingPolicyItemBuilder
impl PartialEq for DeterminingPolicyItemBuilder
source§fn eq(&self, other: &DeterminingPolicyItemBuilder) -> bool
fn eq(&self, other: &DeterminingPolicyItemBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DeterminingPolicyItemBuilder
Auto Trait Implementations§
impl Freeze for DeterminingPolicyItemBuilder
impl RefUnwindSafe for DeterminingPolicyItemBuilder
impl Send for DeterminingPolicyItemBuilder
impl Sync for DeterminingPolicyItemBuilder
impl Unpin for DeterminingPolicyItemBuilder
impl UnwindSafe for DeterminingPolicyItemBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.