Struct aws_sdk_pinpoint::operation::update_push_template::builders::UpdatePushTemplateFluentBuilder
source · pub struct UpdatePushTemplateFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdatePushTemplate
.
Updates an existing message template for messages that are sent through a push notification channel.
Implementations§
source§impl UpdatePushTemplateFluentBuilder
impl UpdatePushTemplateFluentBuilder
sourcepub fn as_input(&self) -> &UpdatePushTemplateInputBuilder
pub fn as_input(&self) -> &UpdatePushTemplateInputBuilder
Access the UpdatePushTemplate as a reference.
sourcepub async fn send(
self
) -> Result<UpdatePushTemplateOutput, SdkError<UpdatePushTemplateError, HttpResponse>>
pub async fn send( self ) -> Result<UpdatePushTemplateOutput, SdkError<UpdatePushTemplateError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<UpdatePushTemplateOutput, UpdatePushTemplateError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdatePushTemplateOutput, UpdatePushTemplateError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn create_new_version(self, input: bool) -> Self
pub fn create_new_version(self, input: bool) -> Self
Specifies whether to save the updates as a new version of the message template. Valid values are: true, save the updates as a new version; and, false, save the updates to (overwrite) the latest existing version of the template.
If you don't specify a value for this parameter, Amazon Pinpoint saves the updates to (overwrites) the latest existing version of the template. If you specify a value of true for this parameter, don't specify a value for the version parameter. Otherwise, an error will occur.
sourcepub fn set_create_new_version(self, input: Option<bool>) -> Self
pub fn set_create_new_version(self, input: Option<bool>) -> Self
Specifies whether to save the updates as a new version of the message template. Valid values are: true, save the updates as a new version; and, false, save the updates to (overwrite) the latest existing version of the template.
If you don't specify a value for this parameter, Amazon Pinpoint saves the updates to (overwrites) the latest existing version of the template. If you specify a value of true for this parameter, don't specify a value for the version parameter. Otherwise, an error will occur.
sourcepub fn get_create_new_version(&self) -> &Option<bool>
pub fn get_create_new_version(&self) -> &Option<bool>
Specifies whether to save the updates as a new version of the message template. Valid values are: true, save the updates as a new version; and, false, save the updates to (overwrite) the latest existing version of the template.
If you don't specify a value for this parameter, Amazon Pinpoint saves the updates to (overwrites) the latest existing version of the template. If you specify a value of true for this parameter, don't specify a value for the version parameter. Otherwise, an error will occur.
sourcepub fn push_notification_template_request(
self,
input: PushNotificationTemplateRequest
) -> Self
pub fn push_notification_template_request( self, input: PushNotificationTemplateRequest ) -> Self
Specifies the content and settings for a message template that can be used in messages that are sent through a push notification channel.
sourcepub fn set_push_notification_template_request(
self,
input: Option<PushNotificationTemplateRequest>
) -> Self
pub fn set_push_notification_template_request( self, input: Option<PushNotificationTemplateRequest> ) -> Self
Specifies the content and settings for a message template that can be used in messages that are sent through a push notification channel.
sourcepub fn get_push_notification_template_request(
&self
) -> &Option<PushNotificationTemplateRequest>
pub fn get_push_notification_template_request( &self ) -> &Option<PushNotificationTemplateRequest>
Specifies the content and settings for a message template that can be used in messages that are sent through a push notification channel.
sourcepub fn template_name(self, input: impl Into<String>) -> Self
pub fn template_name(self, input: impl Into<String>) -> Self
The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.
sourcepub fn set_template_name(self, input: Option<String>) -> Self
pub fn set_template_name(self, input: Option<String>) -> Self
The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.
sourcepub fn get_template_name(&self) -> &Option<String>
pub fn get_template_name(&self) -> &Option<String>
The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.
sourcepub fn version(self, input: impl Into<String>) -> Self
pub fn version(self, input: impl Into<String>) -> Self
The unique identifier for the version of the message template to update, retrieve information about, or delete. To retrieve identifiers and other information for all the versions of a template, use the Template Versions resource.
If specified, this value must match the identifier for an existing template version. If specified for an update operation, this value must match the identifier for the latest existing version of the template. This restriction helps ensure that race conditions don't occur.
If you don't specify a value for this parameter, Amazon Pinpoint does the following:
-
For a get operation, retrieves information about the active version of the template.
-
For an update operation, saves the updates to (overwrites) the latest existing version of the template, if the create-new-version parameter isn't used or is set to false.
-
For a delete operation, deletes the template, including all versions of the template.
sourcepub fn set_version(self, input: Option<String>) -> Self
pub fn set_version(self, input: Option<String>) -> Self
The unique identifier for the version of the message template to update, retrieve information about, or delete. To retrieve identifiers and other information for all the versions of a template, use the Template Versions resource.
If specified, this value must match the identifier for an existing template version. If specified for an update operation, this value must match the identifier for the latest existing version of the template. This restriction helps ensure that race conditions don't occur.
If you don't specify a value for this parameter, Amazon Pinpoint does the following:
-
For a get operation, retrieves information about the active version of the template.
-
For an update operation, saves the updates to (overwrites) the latest existing version of the template, if the create-new-version parameter isn't used or is set to false.
-
For a delete operation, deletes the template, including all versions of the template.
sourcepub fn get_version(&self) -> &Option<String>
pub fn get_version(&self) -> &Option<String>
The unique identifier for the version of the message template to update, retrieve information about, or delete. To retrieve identifiers and other information for all the versions of a template, use the Template Versions resource.
If specified, this value must match the identifier for an existing template version. If specified for an update operation, this value must match the identifier for the latest existing version of the template. This restriction helps ensure that race conditions don't occur.
If you don't specify a value for this parameter, Amazon Pinpoint does the following:
-
For a get operation, retrieves information about the active version of the template.
-
For an update operation, saves the updates to (overwrites) the latest existing version of the template, if the create-new-version parameter isn't used or is set to false.
-
For a delete operation, deletes the template, including all versions of the template.
Trait Implementations§
source§impl Clone for UpdatePushTemplateFluentBuilder
impl Clone for UpdatePushTemplateFluentBuilder
source§fn clone(&self) -> UpdatePushTemplateFluentBuilder
fn clone(&self) -> UpdatePushTemplateFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for UpdatePushTemplateFluentBuilder
impl !RefUnwindSafe for UpdatePushTemplateFluentBuilder
impl Send for UpdatePushTemplateFluentBuilder
impl Sync for UpdatePushTemplateFluentBuilder
impl Unpin for UpdatePushTemplateFluentBuilder
impl !UnwindSafe for UpdatePushTemplateFluentBuilder
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