Struct aws_sdk_verifiedpermissions::operation::is_authorized_with_token::builders::IsAuthorizedWithTokenOutputBuilder
source · #[non_exhaustive]pub struct IsAuthorizedWithTokenOutputBuilder { /* private fields */ }Expand description
A builder for IsAuthorizedWithTokenOutput.
Implementations§
source§impl IsAuthorizedWithTokenOutputBuilder
impl IsAuthorizedWithTokenOutputBuilder
sourcepub fn decision(self, input: Decision) -> Self
pub fn decision(self, input: Decision) -> Self
An authorization decision that indicates if the authorization request should be allowed or denied.
This field is required.sourcepub fn set_decision(self, input: Option<Decision>) -> Self
pub fn set_decision(self, input: Option<Decision>) -> Self
An authorization decision that indicates if the authorization request should be allowed or denied.
sourcepub fn get_decision(&self) -> &Option<Decision>
pub fn get_decision(&self) -> &Option<Decision>
An authorization decision that indicates if the authorization request should be allowed or denied.
sourcepub fn determining_policies(self, input: DeterminingPolicyItem) -> Self
pub fn determining_policies(self, input: DeterminingPolicyItem) -> Self
Appends an item to determining_policies.
To override the contents of this collection use set_determining_policies.
The list of determining policies used to make the authorization decision. For example, if there are multiple matching policies, where at least one is a forbid policy, then because forbid always overrides permit the forbid policies are the determining policies. If all matching policies are permit policies, then those policies are the determining policies. When no policies match and the response is the default DENY, there are no determining policies.
sourcepub fn set_determining_policies(
self,
input: Option<Vec<DeterminingPolicyItem>>
) -> Self
pub fn set_determining_policies( self, input: Option<Vec<DeterminingPolicyItem>> ) -> Self
The list of determining policies used to make the authorization decision. For example, if there are multiple matching policies, where at least one is a forbid policy, then because forbid always overrides permit the forbid policies are the determining policies. If all matching policies are permit policies, then those policies are the determining policies. When no policies match and the response is the default DENY, there are no determining policies.
sourcepub fn get_determining_policies(&self) -> &Option<Vec<DeterminingPolicyItem>>
pub fn get_determining_policies(&self) -> &Option<Vec<DeterminingPolicyItem>>
The list of determining policies used to make the authorization decision. For example, if there are multiple matching policies, where at least one is a forbid policy, then because forbid always overrides permit the forbid policies are the determining policies. If all matching policies are permit policies, then those policies are the determining policies. When no policies match and the response is the default DENY, there are no determining policies.
sourcepub fn errors(self, input: EvaluationErrorItem) -> Self
pub fn errors(self, input: EvaluationErrorItem) -> Self
Appends an item to errors.
To override the contents of this collection use set_errors.
Errors that occurred while making an authorization decision. For example, a policy references an entity or entity attribute that does not exist in the slice.
sourcepub fn set_errors(self, input: Option<Vec<EvaluationErrorItem>>) -> Self
pub fn set_errors(self, input: Option<Vec<EvaluationErrorItem>>) -> Self
Errors that occurred while making an authorization decision. For example, a policy references an entity or entity attribute that does not exist in the slice.
sourcepub fn get_errors(&self) -> &Option<Vec<EvaluationErrorItem>>
pub fn get_errors(&self) -> &Option<Vec<EvaluationErrorItem>>
Errors that occurred while making an authorization decision. For example, a policy references an entity or entity attribute that does not exist in the slice.
sourcepub fn principal(self, input: EntityIdentifier) -> Self
pub fn principal(self, input: EntityIdentifier) -> Self
The identifier of the principal in the ID or access token.
sourcepub fn set_principal(self, input: Option<EntityIdentifier>) -> Self
pub fn set_principal(self, input: Option<EntityIdentifier>) -> Self
The identifier of the principal in the ID or access token.
sourcepub fn get_principal(&self) -> &Option<EntityIdentifier>
pub fn get_principal(&self) -> &Option<EntityIdentifier>
The identifier of the principal in the ID or access token.
sourcepub fn build(self) -> Result<IsAuthorizedWithTokenOutput, BuildError>
pub fn build(self) -> Result<IsAuthorizedWithTokenOutput, BuildError>
Consumes the builder and constructs a IsAuthorizedWithTokenOutput.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for IsAuthorizedWithTokenOutputBuilder
impl Clone for IsAuthorizedWithTokenOutputBuilder
source§fn clone(&self) -> IsAuthorizedWithTokenOutputBuilder
fn clone(&self) -> IsAuthorizedWithTokenOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for IsAuthorizedWithTokenOutputBuilder
impl Default for IsAuthorizedWithTokenOutputBuilder
source§fn default() -> IsAuthorizedWithTokenOutputBuilder
fn default() -> IsAuthorizedWithTokenOutputBuilder
source§impl PartialEq for IsAuthorizedWithTokenOutputBuilder
impl PartialEq for IsAuthorizedWithTokenOutputBuilder
source§fn eq(&self, other: &IsAuthorizedWithTokenOutputBuilder) -> bool
fn eq(&self, other: &IsAuthorizedWithTokenOutputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for IsAuthorizedWithTokenOutputBuilder
Auto Trait Implementations§
impl Freeze for IsAuthorizedWithTokenOutputBuilder
impl RefUnwindSafe for IsAuthorizedWithTokenOutputBuilder
impl Send for IsAuthorizedWithTokenOutputBuilder
impl Sync for IsAuthorizedWithTokenOutputBuilder
impl Unpin for IsAuthorizedWithTokenOutputBuilder
impl UnwindSafe for IsAuthorizedWithTokenOutputBuilder
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
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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more