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 ==.