Struct aws_sdk_verifiedpermissions::types::builders::TemplateLinkedPolicyDefinitionItemBuilder
source · #[non_exhaustive]pub struct TemplateLinkedPolicyDefinitionItemBuilder { /* private fields */ }Expand description
A builder for TemplateLinkedPolicyDefinitionItem.
Implementations§
source§impl TemplateLinkedPolicyDefinitionItemBuilder
impl TemplateLinkedPolicyDefinitionItemBuilder
sourcepub fn policy_template_id(self, input: impl Into<String>) -> Self
pub fn policy_template_id(self, input: impl Into<String>) -> Self
The unique identifier of the policy template used to create this policy.
This field is required.sourcepub fn set_policy_template_id(self, input: Option<String>) -> Self
pub fn set_policy_template_id(self, input: Option<String>) -> Self
The unique identifier of the policy template used to create this policy.
sourcepub fn get_policy_template_id(&self) -> &Option<String>
pub fn get_policy_template_id(&self) -> &Option<String>
The unique identifier of the policy template used to create this policy.
sourcepub fn principal(self, input: EntityIdentifier) -> Self
pub fn principal(self, input: EntityIdentifier) -> Self
The principal associated with this template-linked policy. Verified Permissions substitutes this principal for the ?principal placeholder in the policy template when it evaluates an authorization request.
sourcepub fn set_principal(self, input: Option<EntityIdentifier>) -> Self
pub fn set_principal(self, input: Option<EntityIdentifier>) -> Self
The principal associated with this template-linked policy. Verified Permissions substitutes this principal for the ?principal placeholder in the policy template when it evaluates an authorization request.
sourcepub fn get_principal(&self) -> &Option<EntityIdentifier>
pub fn get_principal(&self) -> &Option<EntityIdentifier>
The principal associated with this template-linked policy. Verified Permissions substitutes this principal for the ?principal placeholder in the policy template when it evaluates an authorization request.
sourcepub fn resource(self, input: EntityIdentifier) -> Self
pub fn resource(self, input: EntityIdentifier) -> Self
The resource associated with this template-linked policy. Verified Permissions substitutes this resource for the ?resource placeholder in the policy template when it evaluates an authorization request.
sourcepub fn set_resource(self, input: Option<EntityIdentifier>) -> Self
pub fn set_resource(self, input: Option<EntityIdentifier>) -> Self
The resource associated with this template-linked policy. Verified Permissions substitutes this resource for the ?resource placeholder in the policy template when it evaluates an authorization request.
sourcepub fn get_resource(&self) -> &Option<EntityIdentifier>
pub fn get_resource(&self) -> &Option<EntityIdentifier>
The resource associated with this template-linked policy. Verified Permissions substitutes this resource for the ?resource placeholder in the policy template when it evaluates an authorization request.
sourcepub fn build(self) -> Result<TemplateLinkedPolicyDefinitionItem, BuildError>
pub fn build(self) -> Result<TemplateLinkedPolicyDefinitionItem, BuildError>
Consumes the builder and constructs a TemplateLinkedPolicyDefinitionItem.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for TemplateLinkedPolicyDefinitionItemBuilder
impl Clone for TemplateLinkedPolicyDefinitionItemBuilder
source§fn clone(&self) -> TemplateLinkedPolicyDefinitionItemBuilder
fn clone(&self) -> TemplateLinkedPolicyDefinitionItemBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for TemplateLinkedPolicyDefinitionItemBuilder
impl Default for TemplateLinkedPolicyDefinitionItemBuilder
source§fn default() -> TemplateLinkedPolicyDefinitionItemBuilder
fn default() -> TemplateLinkedPolicyDefinitionItemBuilder
source§impl PartialEq for TemplateLinkedPolicyDefinitionItemBuilder
impl PartialEq for TemplateLinkedPolicyDefinitionItemBuilder
source§fn eq(&self, other: &TemplateLinkedPolicyDefinitionItemBuilder) -> bool
fn eq(&self, other: &TemplateLinkedPolicyDefinitionItemBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TemplateLinkedPolicyDefinitionItemBuilder
Auto Trait Implementations§
impl Freeze for TemplateLinkedPolicyDefinitionItemBuilder
impl RefUnwindSafe for TemplateLinkedPolicyDefinitionItemBuilder
impl Send for TemplateLinkedPolicyDefinitionItemBuilder
impl Sync for TemplateLinkedPolicyDefinitionItemBuilder
impl Unpin for TemplateLinkedPolicyDefinitionItemBuilder
impl UnwindSafe for TemplateLinkedPolicyDefinitionItemBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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