#[non_exhaustive]pub struct PutWebhookInputBuilder { /* private fields */ }
Expand description
A builder for PutWebhookInput
.
Implementations§
source§impl PutWebhookInputBuilder
impl PutWebhookInputBuilder
sourcepub fn webhook(self, input: WebhookDefinition) -> Self
pub fn webhook(self, input: WebhookDefinition) -> Self
The detail provided in an input file to create the webhook, such as the webhook name, the pipeline name, and the action name. Give the webhook a unique name that helps you identify it. You might name the webhook after the pipeline and action it targets so that you can easily recognize what it's used for later.
This field is required.sourcepub fn set_webhook(self, input: Option<WebhookDefinition>) -> Self
pub fn set_webhook(self, input: Option<WebhookDefinition>) -> Self
The detail provided in an input file to create the webhook, such as the webhook name, the pipeline name, and the action name. Give the webhook a unique name that helps you identify it. You might name the webhook after the pipeline and action it targets so that you can easily recognize what it's used for later.
sourcepub fn get_webhook(&self) -> &Option<WebhookDefinition>
pub fn get_webhook(&self) -> &Option<WebhookDefinition>
The detail provided in an input file to create the webhook, such as the webhook name, the pipeline name, and the action name. Give the webhook a unique name that helps you identify it. You might name the webhook after the pipeline and action it targets so that you can easily recognize what it's used for later.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The tags for the webhook.
The tags for the webhook.
The tags for the webhook.
sourcepub fn build(self) -> Result<PutWebhookInput, BuildError>
pub fn build(self) -> Result<PutWebhookInput, BuildError>
Consumes the builder and constructs a PutWebhookInput
.
source§impl PutWebhookInputBuilder
impl PutWebhookInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<PutWebhookOutput, SdkError<PutWebhookError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<PutWebhookOutput, SdkError<PutWebhookError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for PutWebhookInputBuilder
impl Clone for PutWebhookInputBuilder
source§fn clone(&self) -> PutWebhookInputBuilder
fn clone(&self) -> PutWebhookInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PutWebhookInputBuilder
impl Debug for PutWebhookInputBuilder
source§impl Default for PutWebhookInputBuilder
impl Default for PutWebhookInputBuilder
source§fn default() -> PutWebhookInputBuilder
fn default() -> PutWebhookInputBuilder
source§impl PartialEq for PutWebhookInputBuilder
impl PartialEq for PutWebhookInputBuilder
source§fn eq(&self, other: &PutWebhookInputBuilder) -> bool
fn eq(&self, other: &PutWebhookInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.