#[non_exhaustive]pub struct GeneratedPolicyResultBuilder { /* private fields */ }Expand description
A builder for GeneratedPolicyResult.
Implementations§
source§impl GeneratedPolicyResultBuilder
impl GeneratedPolicyResultBuilder
sourcepub fn properties(self, input: GeneratedPolicyProperties) -> Self
pub fn properties(self, input: GeneratedPolicyProperties) -> Self
A GeneratedPolicyProperties object that contains properties of the generated policy.
sourcepub fn set_properties(self, input: Option<GeneratedPolicyProperties>) -> Self
pub fn set_properties(self, input: Option<GeneratedPolicyProperties>) -> Self
A GeneratedPolicyProperties object that contains properties of the generated policy.
sourcepub fn get_properties(&self) -> &Option<GeneratedPolicyProperties>
pub fn get_properties(&self) -> &Option<GeneratedPolicyProperties>
A GeneratedPolicyProperties object that contains properties of the generated policy.
sourcepub fn generated_policies(self, input: GeneratedPolicy) -> Self
pub fn generated_policies(self, input: GeneratedPolicy) -> Self
Appends an item to generated_policies.
To override the contents of this collection use set_generated_policies.
The text to use as the content for the new policy. The policy is created using the CreatePolicy action.
sourcepub fn set_generated_policies(self, input: Option<Vec<GeneratedPolicy>>) -> Self
pub fn set_generated_policies(self, input: Option<Vec<GeneratedPolicy>>) -> Self
The text to use as the content for the new policy. The policy is created using the CreatePolicy action.
sourcepub fn get_generated_policies(&self) -> &Option<Vec<GeneratedPolicy>>
pub fn get_generated_policies(&self) -> &Option<Vec<GeneratedPolicy>>
The text to use as the content for the new policy. The policy is created using the CreatePolicy action.
sourcepub fn build(self) -> GeneratedPolicyResult
pub fn build(self) -> GeneratedPolicyResult
Consumes the builder and constructs a GeneratedPolicyResult.
Trait Implementations§
source§impl Clone for GeneratedPolicyResultBuilder
impl Clone for GeneratedPolicyResultBuilder
source§fn clone(&self) -> GeneratedPolicyResultBuilder
fn clone(&self) -> GeneratedPolicyResultBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GeneratedPolicyResultBuilder
impl Debug for GeneratedPolicyResultBuilder
source§impl Default for GeneratedPolicyResultBuilder
impl Default for GeneratedPolicyResultBuilder
source§fn default() -> GeneratedPolicyResultBuilder
fn default() -> GeneratedPolicyResultBuilder
source§impl PartialEq for GeneratedPolicyResultBuilder
impl PartialEq for GeneratedPolicyResultBuilder
source§fn eq(&self, other: &GeneratedPolicyResultBuilder) -> bool
fn eq(&self, other: &GeneratedPolicyResultBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for GeneratedPolicyResultBuilder
Auto Trait Implementations§
impl Freeze for GeneratedPolicyResultBuilder
impl RefUnwindSafe for GeneratedPolicyResultBuilder
impl Send for GeneratedPolicyResultBuilder
impl Sync for GeneratedPolicyResultBuilder
impl Unpin for GeneratedPolicyResultBuilder
impl UnwindSafe for GeneratedPolicyResultBuilder
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> 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