Struct aws_sdk_sesv2::operation::create_email_identity_policy::builders::CreateEmailIdentityPolicyInputBuilder
source · #[non_exhaustive]pub struct CreateEmailIdentityPolicyInputBuilder { /* private fields */ }Expand description
A builder for CreateEmailIdentityPolicyInput.
Implementations§
source§impl CreateEmailIdentityPolicyInputBuilder
impl CreateEmailIdentityPolicyInputBuilder
sourcepub fn email_identity(self, input: impl Into<String>) -> Self
pub fn email_identity(self, input: impl Into<String>) -> Self
The email identity.
This field is required.sourcepub fn set_email_identity(self, input: Option<String>) -> Self
pub fn set_email_identity(self, input: Option<String>) -> Self
The email identity.
sourcepub fn get_email_identity(&self) -> &Option<String>
pub fn get_email_identity(&self) -> &Option<String>
The email identity.
sourcepub fn policy_name(self, input: impl Into<String>) -> Self
pub fn policy_name(self, input: impl Into<String>) -> Self
The name of the policy.
The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.
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 name of the policy.
The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.
sourcepub fn get_policy_name(&self) -> &Option<String>
pub fn get_policy_name(&self) -> &Option<String>
The name of the policy.
The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.
sourcepub fn policy(self, input: impl Into<String>) -> Self
pub fn policy(self, input: impl Into<String>) -> Self
The text of the policy in JSON format. The policy cannot exceed 4 KB.
For information about the syntax of sending authorization policies, see the Amazon SES Developer Guide.
This field is required.sourcepub fn set_policy(self, input: Option<String>) -> Self
pub fn set_policy(self, input: Option<String>) -> Self
The text of the policy in JSON format. The policy cannot exceed 4 KB.
For information about the syntax of sending authorization policies, see the Amazon SES Developer Guide.
sourcepub fn get_policy(&self) -> &Option<String>
pub fn get_policy(&self) -> &Option<String>
The text of the policy in JSON format. The policy cannot exceed 4 KB.
For information about the syntax of sending authorization policies, see the Amazon SES Developer Guide.
sourcepub fn build(self) -> Result<CreateEmailIdentityPolicyInput, BuildError>
pub fn build(self) -> Result<CreateEmailIdentityPolicyInput, BuildError>
Consumes the builder and constructs a CreateEmailIdentityPolicyInput.
source§impl CreateEmailIdentityPolicyInputBuilder
impl CreateEmailIdentityPolicyInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateEmailIdentityPolicyOutput, SdkError<CreateEmailIdentityPolicyError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateEmailIdentityPolicyOutput, SdkError<CreateEmailIdentityPolicyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateEmailIdentityPolicyInputBuilder
impl Clone for CreateEmailIdentityPolicyInputBuilder
source§fn clone(&self) -> CreateEmailIdentityPolicyInputBuilder
fn clone(&self) -> CreateEmailIdentityPolicyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CreateEmailIdentityPolicyInputBuilder
impl Default for CreateEmailIdentityPolicyInputBuilder
source§fn default() -> CreateEmailIdentityPolicyInputBuilder
fn default() -> CreateEmailIdentityPolicyInputBuilder
source§impl PartialEq for CreateEmailIdentityPolicyInputBuilder
impl PartialEq for CreateEmailIdentityPolicyInputBuilder
source§fn eq(&self, other: &CreateEmailIdentityPolicyInputBuilder) -> bool
fn eq(&self, other: &CreateEmailIdentityPolicyInputBuilder) -> bool
self and other values to be equal, and is used
by ==.