#[non_exhaustive]pub struct GeneratedPolicyBuilder { /* private fields */ }Expand description
A builder for GeneratedPolicy.
Implementations§
source§impl GeneratedPolicyBuilder
impl GeneratedPolicyBuilder
sourcepub fn policy(self, input: impl Into<String>) -> Self
pub fn policy(self, input: impl Into<String>) -> Self
The text to use as the content for the new policy. The policy is created using the CreatePolicy action.
sourcepub fn set_policy(self, input: Option<String>) -> Self
pub fn set_policy(self, input: Option<String>) -> Self
The text to use as the content for the new policy. The policy is created using the CreatePolicy action.
sourcepub fn build(self) -> GeneratedPolicy
pub fn build(self) -> GeneratedPolicy
Consumes the builder and constructs a GeneratedPolicy.
Trait Implementations§
source§impl Clone for GeneratedPolicyBuilder
impl Clone for GeneratedPolicyBuilder
source§fn clone(&self) -> GeneratedPolicyBuilder
fn clone(&self) -> GeneratedPolicyBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for GeneratedPolicyBuilder
impl Debug for GeneratedPolicyBuilder
source§impl Default for GeneratedPolicyBuilder
impl Default for GeneratedPolicyBuilder
source§fn default() -> GeneratedPolicyBuilder
fn default() -> GeneratedPolicyBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<GeneratedPolicyBuilder> for GeneratedPolicyBuilder
impl PartialEq<GeneratedPolicyBuilder> for GeneratedPolicyBuilder
source§fn eq(&self, other: &GeneratedPolicyBuilder) -> bool
fn eq(&self, other: &GeneratedPolicyBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.