Struct aws_sdk_sesv2::types::builders::TopicPreferenceBuilder   
source · #[non_exhaustive]pub struct TopicPreferenceBuilder { /* private fields */ }Expand description
A builder for TopicPreference.
Implementations§
source§impl TopicPreferenceBuilder
 
impl TopicPreferenceBuilder
sourcepub fn topic_name(self, input: impl Into<String>) -> Self
 
pub fn topic_name(self, input: impl Into<String>) -> Self
The name of the topic.
This field is required.sourcepub fn set_topic_name(self, input: Option<String>) -> Self
 
pub fn set_topic_name(self, input: Option<String>) -> Self
The name of the topic.
sourcepub fn get_topic_name(&self) -> &Option<String>
 
pub fn get_topic_name(&self) -> &Option<String>
The name of the topic.
sourcepub fn subscription_status(self, input: SubscriptionStatus) -> Self
 
pub fn subscription_status(self, input: SubscriptionStatus) -> Self
The contact's subscription status to a topic which is either OPT_IN or OPT_OUT.
sourcepub fn set_subscription_status(self, input: Option<SubscriptionStatus>) -> Self
 
pub fn set_subscription_status(self, input: Option<SubscriptionStatus>) -> Self
The contact's subscription status to a topic which is either OPT_IN or OPT_OUT.
sourcepub fn get_subscription_status(&self) -> &Option<SubscriptionStatus>
 
pub fn get_subscription_status(&self) -> &Option<SubscriptionStatus>
The contact's subscription status to a topic which is either OPT_IN or OPT_OUT.
sourcepub fn build(self) -> Result<TopicPreference, BuildError>
 
pub fn build(self) -> Result<TopicPreference, BuildError>
Consumes the builder and constructs a TopicPreference.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for TopicPreferenceBuilder
 
impl Clone for TopicPreferenceBuilder
source§fn clone(&self) -> TopicPreferenceBuilder
 
fn clone(&self) -> TopicPreferenceBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresource§impl Debug for TopicPreferenceBuilder
 
impl Debug for TopicPreferenceBuilder
source§impl Default for TopicPreferenceBuilder
 
impl Default for TopicPreferenceBuilder
source§fn default() -> TopicPreferenceBuilder
 
fn default() -> TopicPreferenceBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for TopicPreferenceBuilder
 
impl PartialEq for TopicPreferenceBuilder
source§fn eq(&self, other: &TopicPreferenceBuilder) -> bool
 
fn eq(&self, other: &TopicPreferenceBuilder) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for TopicPreferenceBuilder
Auto Trait Implementations§
impl RefUnwindSafe for TopicPreferenceBuilder
impl Send for TopicPreferenceBuilder
impl Sync for TopicPreferenceBuilder
impl Unpin for TopicPreferenceBuilder
impl UnwindSafe for TopicPreferenceBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.