#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateTicketV2Output {
pub ticket_id: ::std::option::Option<::std::string::String>,
pub ticket_src_url: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl CreateTicketV2Output {
pub fn ticket_id(&self) -> ::std::option::Option<&str> {
self.ticket_id.as_deref()
}
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 {
pub fn builder() -> crate::operation::create_ticket_v2::builders::CreateTicketV2OutputBuilder {
crate::operation::create_ticket_v2::builders::CreateTicketV2OutputBuilder::default()
}
}
#[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 {
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
}
pub fn set_ticket_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.ticket_id = input;
self
}
pub fn get_ticket_id(&self) -> &::std::option::Option<::std::string::String> {
&self.ticket_id
}
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
}
pub fn set_ticket_src_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.ticket_src_url = input;
self
}
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
}
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,
}
}
}