1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>The request structure for the get webhook request.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetWebhookInput {
    /// <p>The unique ID for a webhook.</p>
    pub webhook_id: ::std::option::Option<::std::string::String>,
}
impl GetWebhookInput {
    /// <p>The unique ID for a webhook.</p>
    pub fn webhook_id(&self) -> ::std::option::Option<&str> {
        self.webhook_id.as_deref()
    }
}
impl GetWebhookInput {
    /// Creates a new builder-style object to manufacture [`GetWebhookInput`](crate::operation::get_webhook::GetWebhookInput).
    pub fn builder() -> crate::operation::get_webhook::builders::GetWebhookInputBuilder {
        crate::operation::get_webhook::builders::GetWebhookInputBuilder::default()
    }
}

/// A builder for [`GetWebhookInput`](crate::operation::get_webhook::GetWebhookInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct GetWebhookInputBuilder {
    pub(crate) webhook_id: ::std::option::Option<::std::string::String>,
}
impl GetWebhookInputBuilder {
    /// <p>The unique ID for a webhook.</p>
    /// This field is required.
    pub fn webhook_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.webhook_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique ID for a webhook.</p>
    pub fn set_webhook_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.webhook_id = input;
        self
    }
    /// <p>The unique ID for a webhook.</p>
    pub fn get_webhook_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.webhook_id
    }
    /// Consumes the builder and constructs a [`GetWebhookInput`](crate::operation::get_webhook::GetWebhookInput).
    pub fn build(self) -> ::std::result::Result<crate::operation::get_webhook::GetWebhookInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_webhook::GetWebhookInput { webhook_id: self.webhook_id })
    }
}