#[non_exhaustive]pub struct CreatePolicyInputBuilder { /* private fields */ }
Expand description
A builder for CreatePolicyInput
.
Implementations§
source§impl CreatePolicyInputBuilder
impl CreatePolicyInputBuilder
sourcepub fn policy_name(self, input: impl Into<String>) -> Self
pub fn policy_name(self, input: impl Into<String>) -> Self
The policy name.
This field is required.sourcepub fn set_policy_name(self, input: Option<String>) -> Self
pub fn set_policy_name(self, input: Option<String>) -> Self
The policy name.
sourcepub fn get_policy_name(&self) -> &Option<String>
pub fn get_policy_name(&self) -> &Option<String>
The policy name.
sourcepub fn policy_document(self, input: impl Into<String>) -> Self
pub fn policy_document(self, input: impl Into<String>) -> Self
The JSON document that describes the policy. policyDocument must have a minimum length of 1, with a maximum length of 2048, excluding whitespace.
This field is required.sourcepub fn set_policy_document(self, input: Option<String>) -> Self
pub fn set_policy_document(self, input: Option<String>) -> Self
The JSON document that describes the policy. policyDocument must have a minimum length of 1, with a maximum length of 2048, excluding whitespace.
sourcepub fn get_policy_document(&self) -> &Option<String>
pub fn get_policy_document(&self) -> &Option<String>
The JSON document that describes the policy. policyDocument must have a minimum length of 1, with a maximum length of 2048, excluding whitespace.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
Metadata which can be used to manage the policy.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
Metadata which can be used to manage the policy.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
Metadata which can be used to manage the policy.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
sourcepub fn build(self) -> Result<CreatePolicyInput, BuildError>
pub fn build(self) -> Result<CreatePolicyInput, BuildError>
Consumes the builder and constructs a CreatePolicyInput
.
source§impl CreatePolicyInputBuilder
impl CreatePolicyInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreatePolicyOutput, SdkError<CreatePolicyError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreatePolicyOutput, SdkError<CreatePolicyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreatePolicyInputBuilder
impl Clone for CreatePolicyInputBuilder
source§fn clone(&self) -> CreatePolicyInputBuilder
fn clone(&self) -> CreatePolicyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreatePolicyInputBuilder
impl Debug for CreatePolicyInputBuilder
source§impl Default for CreatePolicyInputBuilder
impl Default for CreatePolicyInputBuilder
source§fn default() -> CreatePolicyInputBuilder
fn default() -> CreatePolicyInputBuilder
source§impl PartialEq for CreatePolicyInputBuilder
impl PartialEq for CreatePolicyInputBuilder
source§fn eq(&self, other: &CreatePolicyInputBuilder) -> bool
fn eq(&self, other: &CreatePolicyInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreatePolicyInputBuilder
Auto Trait Implementations§
impl Freeze for CreatePolicyInputBuilder
impl RefUnwindSafe for CreatePolicyInputBuilder
impl Send for CreatePolicyInputBuilder
impl Sync for CreatePolicyInputBuilder
impl Unpin for CreatePolicyInputBuilder
impl UnwindSafe for CreatePolicyInputBuilder
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