#[non_exhaustive]pub struct WriteTreatmentResourceBuilder { /* private fields */ }
Expand description
A builder for WriteTreatmentResource
.
Implementations§
source§impl WriteTreatmentResourceBuilder
impl WriteTreatmentResourceBuilder
sourcepub fn custom_delivery_configuration(
self,
input: CustomDeliveryConfiguration
) -> Self
pub fn custom_delivery_configuration( self, input: CustomDeliveryConfiguration ) -> Self
The delivery configuration settings for sending the treatment through a custom channel. This object is required if the MessageConfiguration object for the treatment specifies a CustomMessage object.
sourcepub fn set_custom_delivery_configuration(
self,
input: Option<CustomDeliveryConfiguration>
) -> Self
pub fn set_custom_delivery_configuration( self, input: Option<CustomDeliveryConfiguration> ) -> Self
The delivery configuration settings for sending the treatment through a custom channel. This object is required if the MessageConfiguration object for the treatment specifies a CustomMessage object.
sourcepub fn get_custom_delivery_configuration(
&self
) -> &Option<CustomDeliveryConfiguration>
pub fn get_custom_delivery_configuration( &self ) -> &Option<CustomDeliveryConfiguration>
The delivery configuration settings for sending the treatment through a custom channel. This object is required if the MessageConfiguration object for the treatment specifies a CustomMessage object.
sourcepub fn message_configuration(self, input: MessageConfiguration) -> Self
pub fn message_configuration(self, input: MessageConfiguration) -> Self
The message configuration settings for the treatment.
sourcepub fn set_message_configuration(
self,
input: Option<MessageConfiguration>
) -> Self
pub fn set_message_configuration( self, input: Option<MessageConfiguration> ) -> Self
The message configuration settings for the treatment.
sourcepub fn get_message_configuration(&self) -> &Option<MessageConfiguration>
pub fn get_message_configuration(&self) -> &Option<MessageConfiguration>
The message configuration settings for the treatment.
sourcepub fn set_schedule(self, input: Option<Schedule>) -> Self
pub fn set_schedule(self, input: Option<Schedule>) -> Self
The schedule settings for the treatment.
sourcepub fn get_schedule(&self) -> &Option<Schedule>
pub fn get_schedule(&self) -> &Option<Schedule>
The schedule settings for the treatment.
sourcepub fn size_percent(self, input: i32) -> Self
pub fn size_percent(self, input: i32) -> Self
The allocated percentage of users (segment members) to send the treatment to.
This field is required.sourcepub fn set_size_percent(self, input: Option<i32>) -> Self
pub fn set_size_percent(self, input: Option<i32>) -> Self
The allocated percentage of users (segment members) to send the treatment to.
sourcepub fn get_size_percent(&self) -> &Option<i32>
pub fn get_size_percent(&self) -> &Option<i32>
The allocated percentage of users (segment members) to send the treatment to.
sourcepub fn template_configuration(self, input: TemplateConfiguration) -> Self
pub fn template_configuration(self, input: TemplateConfiguration) -> Self
The message template to use for the treatment.
sourcepub fn set_template_configuration(
self,
input: Option<TemplateConfiguration>
) -> Self
pub fn set_template_configuration( self, input: Option<TemplateConfiguration> ) -> Self
The message template to use for the treatment.
sourcepub fn get_template_configuration(&self) -> &Option<TemplateConfiguration>
pub fn get_template_configuration(&self) -> &Option<TemplateConfiguration>
The message template to use for the treatment.
sourcepub fn treatment_description(self, input: impl Into<String>) -> Self
pub fn treatment_description(self, input: impl Into<String>) -> Self
A custom description of the treatment.
sourcepub fn set_treatment_description(self, input: Option<String>) -> Self
pub fn set_treatment_description(self, input: Option<String>) -> Self
A custom description of the treatment.
sourcepub fn get_treatment_description(&self) -> &Option<String>
pub fn get_treatment_description(&self) -> &Option<String>
A custom description of the treatment.
sourcepub fn treatment_name(self, input: impl Into<String>) -> Self
pub fn treatment_name(self, input: impl Into<String>) -> Self
A custom name for the treatment.
sourcepub fn set_treatment_name(self, input: Option<String>) -> Self
pub fn set_treatment_name(self, input: Option<String>) -> Self
A custom name for the treatment.
sourcepub fn get_treatment_name(&self) -> &Option<String>
pub fn get_treatment_name(&self) -> &Option<String>
A custom name for the treatment.
sourcepub fn build(self) -> WriteTreatmentResource
pub fn build(self) -> WriteTreatmentResource
Consumes the builder and constructs a WriteTreatmentResource
.
Trait Implementations§
source§impl Clone for WriteTreatmentResourceBuilder
impl Clone for WriteTreatmentResourceBuilder
source§fn clone(&self) -> WriteTreatmentResourceBuilder
fn clone(&self) -> WriteTreatmentResourceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for WriteTreatmentResourceBuilder
impl Default for WriteTreatmentResourceBuilder
source§fn default() -> WriteTreatmentResourceBuilder
fn default() -> WriteTreatmentResourceBuilder
source§impl PartialEq for WriteTreatmentResourceBuilder
impl PartialEq for WriteTreatmentResourceBuilder
source§fn eq(&self, other: &WriteTreatmentResourceBuilder) -> bool
fn eq(&self, other: &WriteTreatmentResourceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for WriteTreatmentResourceBuilder
Auto Trait Implementations§
impl Freeze for WriteTreatmentResourceBuilder
impl RefUnwindSafe for WriteTreatmentResourceBuilder
impl Send for WriteTreatmentResourceBuilder
impl Sync for WriteTreatmentResourceBuilder
impl Unpin for WriteTreatmentResourceBuilder
impl UnwindSafe for WriteTreatmentResourceBuilder
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