Struct aws_sdk_verifiedpermissions::operation::get_policy_template::builders::GetPolicyTemplateOutputBuilder
source · #[non_exhaustive]pub struct GetPolicyTemplateOutputBuilder { /* private fields */ }Expand description
A builder for GetPolicyTemplateOutput.
Implementations§
source§impl GetPolicyTemplateOutputBuilder
impl GetPolicyTemplateOutputBuilder
sourcepub fn policy_store_id(self, input: impl Into<String>) -> Self
pub fn policy_store_id(self, input: impl Into<String>) -> Self
The ID of the policy store that contains the policy template.
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
The ID of the policy store that contains the policy template.
sourcepub fn get_policy_store_id(&self) -> &Option<String>
pub fn get_policy_store_id(&self) -> &Option<String>
The ID of the policy store that contains the policy template.
sourcepub fn policy_template_id(self, input: impl Into<String>) -> Self
pub fn policy_template_id(self, input: impl Into<String>) -> Self
The ID of the policy template.
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 ID of the policy template.
sourcepub fn get_policy_template_id(&self) -> &Option<String>
pub fn get_policy_template_id(&self) -> &Option<String>
The ID of the policy template.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the policy template.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the policy template.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the policy template.
sourcepub fn statement(self, input: impl Into<String>) -> Self
pub fn statement(self, input: impl Into<String>) -> Self
The content of the body of the policy template written in the Cedar policy language.
This field is required.sourcepub fn set_statement(self, input: Option<String>) -> Self
pub fn set_statement(self, input: Option<String>) -> Self
The content of the body of the policy template written in the Cedar policy language.
sourcepub fn get_statement(&self) -> &Option<String>
pub fn get_statement(&self) -> &Option<String>
The content of the body of the policy template written in the Cedar policy language.
sourcepub fn created_date(self, input: DateTime) -> Self
pub fn created_date(self, input: DateTime) -> Self
The date and time that the policy template was originally created.
This field is required.sourcepub fn set_created_date(self, input: Option<DateTime>) -> Self
pub fn set_created_date(self, input: Option<DateTime>) -> Self
The date and time that the policy template was originally created.
sourcepub fn get_created_date(&self) -> &Option<DateTime>
pub fn get_created_date(&self) -> &Option<DateTime>
The date and time that the policy template was originally created.
sourcepub fn last_updated_date(self, input: DateTime) -> Self
pub fn last_updated_date(self, input: DateTime) -> Self
The date and time that the policy template was most recently updated.
This field is required.sourcepub fn set_last_updated_date(self, input: Option<DateTime>) -> Self
pub fn set_last_updated_date(self, input: Option<DateTime>) -> Self
The date and time that the policy template was most recently updated.
sourcepub fn get_last_updated_date(&self) -> &Option<DateTime>
pub fn get_last_updated_date(&self) -> &Option<DateTime>
The date and time that the policy template was most recently updated.
sourcepub fn build(self) -> Result<GetPolicyTemplateOutput, BuildError>
pub fn build(self) -> Result<GetPolicyTemplateOutput, BuildError>
Consumes the builder and constructs a GetPolicyTemplateOutput.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for GetPolicyTemplateOutputBuilder
impl Clone for GetPolicyTemplateOutputBuilder
source§fn clone(&self) -> GetPolicyTemplateOutputBuilder
fn clone(&self) -> GetPolicyTemplateOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for GetPolicyTemplateOutputBuilder
impl Default for GetPolicyTemplateOutputBuilder
source§fn default() -> GetPolicyTemplateOutputBuilder
fn default() -> GetPolicyTemplateOutputBuilder
source§impl PartialEq for GetPolicyTemplateOutputBuilder
impl PartialEq for GetPolicyTemplateOutputBuilder
source§fn eq(&self, other: &GetPolicyTemplateOutputBuilder) -> bool
fn eq(&self, other: &GetPolicyTemplateOutputBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GetPolicyTemplateOutputBuilder
Auto Trait Implementations§
impl Freeze for GetPolicyTemplateOutputBuilder
impl RefUnwindSafe for GetPolicyTemplateOutputBuilder
impl Send for GetPolicyTemplateOutputBuilder
impl Sync for GetPolicyTemplateOutputBuilder
impl Unpin for GetPolicyTemplateOutputBuilder
impl UnwindSafe for GetPolicyTemplateOutputBuilder
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