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