Struct aws_sdk_verifiedpermissions::operation::update_policy_template::builders::UpdatePolicyTemplateInputBuilder
source · #[non_exhaustive]pub struct UpdatePolicyTemplateInputBuilder { /* private fields */ }Expand description
A builder for UpdatePolicyTemplateInput.
Implementations§
source§impl UpdatePolicyTemplateInputBuilder
impl UpdatePolicyTemplateInputBuilder
sourcepub fn policy_store_id(self, input: impl Into<String>) -> Self
pub fn policy_store_id(self, input: impl Into<String>) -> Self
Specifies the ID of the policy store that contains the policy template that you want to update.
This field is required.sourcepub fn set_policy_store_id(self, input: Option<String>) -> Self
pub fn set_policy_store_id(self, input: Option<String>) -> Self
Specifies the ID of the policy store that contains the policy template that you want to update.
sourcepub fn get_policy_store_id(&self) -> &Option<String>
pub fn get_policy_store_id(&self) -> &Option<String>
Specifies the ID of the policy store that contains the policy template that you want to update.
sourcepub fn policy_template_id(self, input: impl Into<String>) -> Self
pub fn policy_template_id(self, input: impl Into<String>) -> Self
Specifies the ID of the policy template that you want to update.
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
Specifies the ID of the policy template that you want to update.
sourcepub fn get_policy_template_id(&self) -> &Option<String>
pub fn get_policy_template_id(&self) -> &Option<String>
Specifies the ID of the policy template that you want to update.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
Specifies a new description to apply to the policy template.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
Specifies a new description to apply to the policy template.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
Specifies a new description to apply to the policy template.
sourcepub fn statement(self, input: impl Into<String>) -> Self
pub fn statement(self, input: impl Into<String>) -> Self
Specifies new statement content written in Cedar policy language to replace the current body of the policy template.
You can change only the following elements of the policy body:
-
The
actionreferenced by the policy template. -
Any conditional clauses, such as
whenorunlessclauses.
You can't change the following elements:
-
The effect (
permitorforbid) of the policy template. -
The
principalreferenced by the policy template. -
The
resourcereferenced by the policy template.
sourcepub fn set_statement(self, input: Option<String>) -> Self
pub fn set_statement(self, input: Option<String>) -> Self
Specifies new statement content written in Cedar policy language to replace the current body of the policy template.
You can change only the following elements of the policy body:
-
The
actionreferenced by the policy template. -
Any conditional clauses, such as
whenorunlessclauses.
You can't change the following elements:
-
The effect (
permitorforbid) of the policy template. -
The
principalreferenced by the policy template. -
The
resourcereferenced by the policy template.
sourcepub fn get_statement(&self) -> &Option<String>
pub fn get_statement(&self) -> &Option<String>
Specifies new statement content written in Cedar policy language to replace the current body of the policy template.
You can change only the following elements of the policy body:
-
The
actionreferenced by the policy template. -
Any conditional clauses, such as
whenorunlessclauses.
You can't change the following elements:
-
The effect (
permitorforbid) of the policy template. -
The
principalreferenced by the policy template. -
The
resourcereferenced by the policy template.
sourcepub fn build(self) -> Result<UpdatePolicyTemplateInput, BuildError>
pub fn build(self) -> Result<UpdatePolicyTemplateInput, BuildError>
Consumes the builder and constructs a UpdatePolicyTemplateInput.
source§impl UpdatePolicyTemplateInputBuilder
impl UpdatePolicyTemplateInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<UpdatePolicyTemplateOutput, SdkError<UpdatePolicyTemplateError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<UpdatePolicyTemplateOutput, SdkError<UpdatePolicyTemplateError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdatePolicyTemplateInputBuilder
impl Clone for UpdatePolicyTemplateInputBuilder
source§fn clone(&self) -> UpdatePolicyTemplateInputBuilder
fn clone(&self) -> UpdatePolicyTemplateInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for UpdatePolicyTemplateInputBuilder
impl Default for UpdatePolicyTemplateInputBuilder
source§fn default() -> UpdatePolicyTemplateInputBuilder
fn default() -> UpdatePolicyTemplateInputBuilder
source§impl PartialEq for UpdatePolicyTemplateInputBuilder
impl PartialEq for UpdatePolicyTemplateInputBuilder
source§fn eq(&self, other: &UpdatePolicyTemplateInputBuilder) -> bool
fn eq(&self, other: &UpdatePolicyTemplateInputBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdatePolicyTemplateInputBuilder
Auto Trait Implementations§
impl Freeze for UpdatePolicyTemplateInputBuilder
impl RefUnwindSafe for UpdatePolicyTemplateInputBuilder
impl Send for UpdatePolicyTemplateInputBuilder
impl Sync for UpdatePolicyTemplateInputBuilder
impl Unpin for UpdatePolicyTemplateInputBuilder
impl UnwindSafe for UpdatePolicyTemplateInputBuilder
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