#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateBacklogTaskInput {
pub agent_space_id: ::std::option::Option<::std::string::String>,
pub reference: ::std::option::Option<crate::types::ReferenceInput>,
pub task_type: ::std::option::Option<crate::types::TaskType>,
pub title: ::std::option::Option<::std::string::String>,
pub description: ::std::option::Option<::std::string::String>,
pub priority: ::std::option::Option<crate::types::Priority>,
pub client_token: ::std::option::Option<::std::string::String>,
}
impl CreateBacklogTaskInput {
pub fn agent_space_id(&self) -> ::std::option::Option<&str> {
self.agent_space_id.as_deref()
}
pub fn reference(&self) -> ::std::option::Option<&crate::types::ReferenceInput> {
self.reference.as_ref()
}
pub fn task_type(&self) -> ::std::option::Option<&crate::types::TaskType> {
self.task_type.as_ref()
}
pub fn title(&self) -> ::std::option::Option<&str> {
self.title.as_deref()
}
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
pub fn priority(&self) -> ::std::option::Option<&crate::types::Priority> {
self.priority.as_ref()
}
pub fn client_token(&self) -> ::std::option::Option<&str> {
self.client_token.as_deref()
}
}
impl CreateBacklogTaskInput {
pub fn builder() -> crate::operation::create_backlog_task::builders::CreateBacklogTaskInputBuilder {
crate::operation::create_backlog_task::builders::CreateBacklogTaskInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateBacklogTaskInputBuilder {
pub(crate) agent_space_id: ::std::option::Option<::std::string::String>,
pub(crate) reference: ::std::option::Option<crate::types::ReferenceInput>,
pub(crate) task_type: ::std::option::Option<crate::types::TaskType>,
pub(crate) title: ::std::option::Option<::std::string::String>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) priority: ::std::option::Option<crate::types::Priority>,
pub(crate) client_token: ::std::option::Option<::std::string::String>,
}
impl CreateBacklogTaskInputBuilder {
pub fn agent_space_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.agent_space_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_agent_space_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.agent_space_id = input;
self
}
pub fn get_agent_space_id(&self) -> &::std::option::Option<::std::string::String> {
&self.agent_space_id
}
pub fn reference(mut self, input: crate::types::ReferenceInput) -> Self {
self.reference = ::std::option::Option::Some(input);
self
}
pub fn set_reference(mut self, input: ::std::option::Option<crate::types::ReferenceInput>) -> Self {
self.reference = input;
self
}
pub fn get_reference(&self) -> &::std::option::Option<crate::types::ReferenceInput> {
&self.reference
}
pub fn task_type(mut self, input: crate::types::TaskType) -> Self {
self.task_type = ::std::option::Option::Some(input);
self
}
pub fn set_task_type(mut self, input: ::std::option::Option<crate::types::TaskType>) -> Self {
self.task_type = input;
self
}
pub fn get_task_type(&self) -> &::std::option::Option<crate::types::TaskType> {
&self.task_type
}
pub fn title(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.title = ::std::option::Option::Some(input.into());
self
}
pub fn set_title(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.title = input;
self
}
pub fn get_title(&self) -> &::std::option::Option<::std::string::String> {
&self.title
}
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
pub fn priority(mut self, input: crate::types::Priority) -> Self {
self.priority = ::std::option::Option::Some(input);
self
}
pub fn set_priority(mut self, input: ::std::option::Option<crate::types::Priority>) -> Self {
self.priority = input;
self
}
pub fn get_priority(&self) -> &::std::option::Option<crate::types::Priority> {
&self.priority
}
pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.client_token = ::std::option::Option::Some(input.into());
self
}
pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.client_token = input;
self
}
pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
&self.client_token
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::create_backlog_task::CreateBacklogTaskInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::create_backlog_task::CreateBacklogTaskInput {
agent_space_id: self.agent_space_id,
reference: self.reference,
task_type: self.task_type,
title: self.title,
description: self.description,
priority: self.priority,
client_token: self.client_token,
})
}
}