#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct UpdateAgentContextInput {
pub client_token: ::std::option::Option<::std::string::String>,
pub profile_arn: ::std::option::Option<::std::string::String>,
pub id: ::std::option::Option<::std::string::String>,
pub title: ::std::option::Option<::std::string::String>,
pub content: ::std::option::Option<crate::types::ContextContent>,
}
impl UpdateAgentContextInput {
pub fn client_token(&self) -> ::std::option::Option<&str> {
self.client_token.as_deref()
}
pub fn profile_arn(&self) -> ::std::option::Option<&str> {
self.profile_arn.as_deref()
}
pub fn id(&self) -> ::std::option::Option<&str> {
self.id.as_deref()
}
pub fn title(&self) -> ::std::option::Option<&str> {
self.title.as_deref()
}
pub fn content(&self) -> ::std::option::Option<&crate::types::ContextContent> {
self.content.as_ref()
}
}
impl ::std::fmt::Debug for UpdateAgentContextInput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("UpdateAgentContextInput");
formatter.field("client_token", &self.client_token);
formatter.field("profile_arn", &self.profile_arn);
formatter.field("id", &self.id);
formatter.field("title", &"*** Sensitive Data Redacted ***");
formatter.field("content", &self.content);
formatter.finish()
}
}
impl UpdateAgentContextInput {
pub fn builder() -> crate::operation::update_agent_context::builders::UpdateAgentContextInputBuilder {
crate::operation::update_agent_context::builders::UpdateAgentContextInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct UpdateAgentContextInputBuilder {
pub(crate) client_token: ::std::option::Option<::std::string::String>,
pub(crate) profile_arn: ::std::option::Option<::std::string::String>,
pub(crate) id: ::std::option::Option<::std::string::String>,
pub(crate) title: ::std::option::Option<::std::string::String>,
pub(crate) content: ::std::option::Option<crate::types::ContextContent>,
}
impl UpdateAgentContextInputBuilder {
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 profile_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.profile_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_profile_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.profile_arn = input;
self
}
pub fn get_profile_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.profile_arn
}
pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.id = ::std::option::Option::Some(input.into());
self
}
pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.id = input;
self
}
pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
&self.id
}
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 content(mut self, input: crate::types::ContextContent) -> Self {
self.content = ::std::option::Option::Some(input);
self
}
pub fn set_content(mut self, input: ::std::option::Option<crate::types::ContextContent>) -> Self {
self.content = input;
self
}
pub fn get_content(&self) -> &::std::option::Option<crate::types::ContextContent> {
&self.content
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_agent_context::UpdateAgentContextInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::update_agent_context::UpdateAgentContextInput {
client_token: self.client_token,
profile_arn: self.profile_arn,
id: self.id,
title: self.title,
content: self.content,
})
}
}
impl ::std::fmt::Debug for UpdateAgentContextInputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("UpdateAgentContextInputBuilder");
formatter.field("client_token", &self.client_token);
formatter.field("profile_arn", &self.profile_arn);
formatter.field("id", &self.id);
formatter.field("title", &"*** Sensitive Data Redacted ***");
formatter.field("content", &self.content);
formatter.finish()
}
}