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 ==
.