aws-sdk-securityhub 1.110.0

AWS SDK for AWS SecurityHub
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateTicketV2Output {
    /// <p>The ID for the ticketv2.</p>
    pub ticket_id: ::std::option::Option<::std::string::String>,
    /// <p>The url to the created ticket.</p>
    pub ticket_src_url: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl CreateTicketV2Output {
    /// <p>The ID for the ticketv2.</p>
    pub fn ticket_id(&self) -> ::std::option::Option<&str> {
        self.ticket_id.as_deref()
    }
    /// <p>The url to the created ticket.</p>
    pub fn ticket_src_url(&self) -> ::std::option::Option<&str> {
        self.ticket_src_url.as_deref()
    }
}
impl ::aws_types::request_id::RequestId for CreateTicketV2Output {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl CreateTicketV2Output {
    /// Creates a new builder-style object to manufacture [`CreateTicketV2Output`](crate::operation::create_ticket_v2::CreateTicketV2Output).
    pub fn builder() -> crate::operation::create_ticket_v2::builders::CreateTicketV2OutputBuilder {
        crate::operation::create_ticket_v2::builders::CreateTicketV2OutputBuilder::default()
    }
}

/// A builder for [`CreateTicketV2Output`](crate::operation::create_ticket_v2::CreateTicketV2Output).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateTicketV2OutputBuilder {
    pub(crate) ticket_id: ::std::option::Option<::std::string::String>,
    pub(crate) ticket_src_url: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl CreateTicketV2OutputBuilder {
    /// <p>The ID for the ticketv2.</p>
    /// This field is required.
    pub fn ticket_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.ticket_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID for the ticketv2.</p>
    pub fn set_ticket_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.ticket_id = input;
        self
    }
    /// <p>The ID for the ticketv2.</p>
    pub fn get_ticket_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.ticket_id
    }
    /// <p>The url to the created ticket.</p>
    pub fn ticket_src_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.ticket_src_url = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The url to the created ticket.</p>
    pub fn set_ticket_src_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.ticket_src_url = input;
        self
    }
    /// <p>The url to the created ticket.</p>
    pub fn get_ticket_src_url(&self) -> &::std::option::Option<::std::string::String> {
        &self.ticket_src_url
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`CreateTicketV2Output`](crate::operation::create_ticket_v2::CreateTicketV2Output).
    pub fn build(self) -> crate::operation::create_ticket_v2::CreateTicketV2Output {
        crate::operation::create_ticket_v2::CreateTicketV2Output {
            ticket_id: self.ticket_id,
            ticket_src_url: self.ticket_src_url,
            _request_id: self._request_id,
        }
    }
}