Struct aws_sdk_workdocs::operation::create_notification_subscription::builders::CreateNotificationSubscriptionInputBuilder
source · #[non_exhaustive]pub struct CreateNotificationSubscriptionInputBuilder { /* private fields */ }
Expand description
A builder for CreateNotificationSubscriptionInput
.
Implementations§
source§impl CreateNotificationSubscriptionInputBuilder
impl CreateNotificationSubscriptionInputBuilder
sourcepub fn organization_id(self, input: impl Into<String>) -> Self
pub fn organization_id(self, input: impl Into<String>) -> Self
The ID of the organization.
This field is required.sourcepub fn set_organization_id(self, input: Option<String>) -> Self
pub fn set_organization_id(self, input: Option<String>) -> Self
The ID of the organization.
sourcepub fn get_organization_id(&self) -> &Option<String>
pub fn get_organization_id(&self) -> &Option<String>
The ID of the organization.
sourcepub fn endpoint(self, input: impl Into<String>) -> Self
pub fn endpoint(self, input: impl Into<String>) -> Self
The endpoint to receive the notifications. If the protocol is HTTPS, the endpoint is a URL that begins with https
.
sourcepub fn set_endpoint(self, input: Option<String>) -> Self
pub fn set_endpoint(self, input: Option<String>) -> Self
The endpoint to receive the notifications. If the protocol is HTTPS, the endpoint is a URL that begins with https
.
sourcepub fn get_endpoint(&self) -> &Option<String>
pub fn get_endpoint(&self) -> &Option<String>
The endpoint to receive the notifications. If the protocol is HTTPS, the endpoint is a URL that begins with https
.
sourcepub fn protocol(self, input: SubscriptionProtocolType) -> Self
pub fn protocol(self, input: SubscriptionProtocolType) -> Self
The protocol to use. The supported value is https, which delivers JSON-encoded messages using HTTPS POST.
This field is required.sourcepub fn set_protocol(self, input: Option<SubscriptionProtocolType>) -> Self
pub fn set_protocol(self, input: Option<SubscriptionProtocolType>) -> Self
The protocol to use. The supported value is https, which delivers JSON-encoded messages using HTTPS POST.
sourcepub fn get_protocol(&self) -> &Option<SubscriptionProtocolType>
pub fn get_protocol(&self) -> &Option<SubscriptionProtocolType>
The protocol to use. The supported value is https, which delivers JSON-encoded messages using HTTPS POST.
sourcepub fn subscription_type(self, input: SubscriptionType) -> Self
pub fn subscription_type(self, input: SubscriptionType) -> Self
The notification type.
This field is required.sourcepub fn set_subscription_type(self, input: Option<SubscriptionType>) -> Self
pub fn set_subscription_type(self, input: Option<SubscriptionType>) -> Self
The notification type.
sourcepub fn get_subscription_type(&self) -> &Option<SubscriptionType>
pub fn get_subscription_type(&self) -> &Option<SubscriptionType>
The notification type.
sourcepub fn build(self) -> Result<CreateNotificationSubscriptionInput, BuildError>
pub fn build(self) -> Result<CreateNotificationSubscriptionInput, BuildError>
Consumes the builder and constructs a CreateNotificationSubscriptionInput
.
source§impl CreateNotificationSubscriptionInputBuilder
impl CreateNotificationSubscriptionInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<CreateNotificationSubscriptionOutput, SdkError<CreateNotificationSubscriptionError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<CreateNotificationSubscriptionOutput, SdkError<CreateNotificationSubscriptionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateNotificationSubscriptionInputBuilder
impl Clone for CreateNotificationSubscriptionInputBuilder
source§fn clone(&self) -> CreateNotificationSubscriptionInputBuilder
fn clone(&self) -> CreateNotificationSubscriptionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateNotificationSubscriptionInputBuilder
impl Default for CreateNotificationSubscriptionInputBuilder
source§fn default() -> CreateNotificationSubscriptionInputBuilder
fn default() -> CreateNotificationSubscriptionInputBuilder
source§impl PartialEq for CreateNotificationSubscriptionInputBuilder
impl PartialEq for CreateNotificationSubscriptionInputBuilder
source§fn eq(&self, other: &CreateNotificationSubscriptionInputBuilder) -> bool
fn eq(&self, other: &CreateNotificationSubscriptionInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateNotificationSubscriptionInputBuilder
Auto Trait Implementations§
impl Freeze for CreateNotificationSubscriptionInputBuilder
impl RefUnwindSafe for CreateNotificationSubscriptionInputBuilder
impl Send for CreateNotificationSubscriptionInputBuilder
impl Sync for CreateNotificationSubscriptionInputBuilder
impl Unpin for CreateNotificationSubscriptionInputBuilder
impl UnwindSafe for CreateNotificationSubscriptionInputBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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