Struct aws_sdk_verifiedpermissions::operation::is_authorized::builders::IsAuthorizedOutputBuilder
source · #[non_exhaustive]pub struct IsAuthorizedOutputBuilder { /* private fields */ }Expand description
A builder for IsAuthorizedOutput.
Implementations§
source§impl IsAuthorizedOutputBuilder
impl IsAuthorizedOutputBuilder
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 two matching policies, where one is a forbid and the other is a permit, then the forbid policy will be the determining policy. In the case of multiple matching permit policies then there would be multiple determining policies. In the case that no policies match, and hence the response is DENY, there would be 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 two matching policies, where one is a forbid and the other is a permit, then the forbid policy will be the determining policy. In the case of multiple matching permit policies then there would be multiple determining policies. In the case that no policies match, and hence the response is DENY, there would be 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 two matching policies, where one is a forbid and the other is a permit, then the forbid policy will be the determining policy. In the case of multiple matching permit policies then there would be multiple determining policies. In the case that no policies match, and hence the response is DENY, there would be 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 build(self) -> Result<IsAuthorizedOutput, BuildError>
pub fn build(self) -> Result<IsAuthorizedOutput, BuildError>
Consumes the builder and constructs a IsAuthorizedOutput.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for IsAuthorizedOutputBuilder
impl Clone for IsAuthorizedOutputBuilder
source§fn clone(&self) -> IsAuthorizedOutputBuilder
fn clone(&self) -> IsAuthorizedOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for IsAuthorizedOutputBuilder
impl Debug for IsAuthorizedOutputBuilder
source§impl Default for IsAuthorizedOutputBuilder
impl Default for IsAuthorizedOutputBuilder
source§fn default() -> IsAuthorizedOutputBuilder
fn default() -> IsAuthorizedOutputBuilder
source§impl PartialEq for IsAuthorizedOutputBuilder
impl PartialEq for IsAuthorizedOutputBuilder
source§fn eq(&self, other: &IsAuthorizedOutputBuilder) -> bool
fn eq(&self, other: &IsAuthorizedOutputBuilder) -> bool
self and other values to be equal, and is used
by ==.