#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetContextGraphInput {
pub node_filters: ::std::option::Option<crate::types::NodeFilters>,
pub edge_filters: ::std::option::Option<crate::types::EdgeFilters>,
pub start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub depth: ::std::option::Option<i32>,
pub max_results: ::std::option::Option<i32>,
pub max_edges_per_node: ::std::option::Option<i32>,
pub include_metadata: ::std::option::Option<bool>,
pub next_token: ::std::option::Option<::std::string::String>,
}
impl GetContextGraphInput {
pub fn node_filters(&self) -> ::std::option::Option<&crate::types::NodeFilters> {
self.node_filters.as_ref()
}
pub fn edge_filters(&self) -> ::std::option::Option<&crate::types::EdgeFilters> {
self.edge_filters.as_ref()
}
pub fn start_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.start_time.as_ref()
}
pub fn end_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.end_time.as_ref()
}
pub fn depth(&self) -> ::std::option::Option<i32> {
self.depth
}
pub fn max_results(&self) -> ::std::option::Option<i32> {
self.max_results
}
pub fn max_edges_per_node(&self) -> ::std::option::Option<i32> {
self.max_edges_per_node
}
pub fn include_metadata(&self) -> ::std::option::Option<bool> {
self.include_metadata
}
pub fn next_token(&self) -> ::std::option::Option<&str> {
self.next_token.as_deref()
}
}
impl GetContextGraphInput {
pub fn builder() -> crate::operation::get_context_graph::builders::GetContextGraphInputBuilder {
crate::operation::get_context_graph::builders::GetContextGraphInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetContextGraphInputBuilder {
pub(crate) node_filters: ::std::option::Option<crate::types::NodeFilters>,
pub(crate) edge_filters: ::std::option::Option<crate::types::EdgeFilters>,
pub(crate) start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) depth: ::std::option::Option<i32>,
pub(crate) max_results: ::std::option::Option<i32>,
pub(crate) max_edges_per_node: ::std::option::Option<i32>,
pub(crate) include_metadata: ::std::option::Option<bool>,
pub(crate) next_token: ::std::option::Option<::std::string::String>,
}
impl GetContextGraphInputBuilder {
pub fn node_filters(mut self, input: crate::types::NodeFilters) -> Self {
self.node_filters = ::std::option::Option::Some(input);
self
}
pub fn set_node_filters(mut self, input: ::std::option::Option<crate::types::NodeFilters>) -> Self {
self.node_filters = input;
self
}
pub fn get_node_filters(&self) -> &::std::option::Option<crate::types::NodeFilters> {
&self.node_filters
}
pub fn edge_filters(mut self, input: crate::types::EdgeFilters) -> Self {
self.edge_filters = ::std::option::Option::Some(input);
self
}
pub fn set_edge_filters(mut self, input: ::std::option::Option<crate::types::EdgeFilters>) -> Self {
self.edge_filters = input;
self
}
pub fn get_edge_filters(&self) -> &::std::option::Option<crate::types::EdgeFilters> {
&self.edge_filters
}
pub fn start_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.start_time = ::std::option::Option::Some(input);
self
}
pub fn set_start_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.start_time = input;
self
}
pub fn get_start_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.start_time
}
pub fn end_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.end_time = ::std::option::Option::Some(input);
self
}
pub fn set_end_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.end_time = input;
self
}
pub fn get_end_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.end_time
}
pub fn depth(mut self, input: i32) -> Self {
self.depth = ::std::option::Option::Some(input);
self
}
pub fn set_depth(mut self, input: ::std::option::Option<i32>) -> Self {
self.depth = input;
self
}
pub fn get_depth(&self) -> &::std::option::Option<i32> {
&self.depth
}
pub fn max_results(mut self, input: i32) -> Self {
self.max_results = ::std::option::Option::Some(input);
self
}
pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
self.max_results = input;
self
}
pub fn get_max_results(&self) -> &::std::option::Option<i32> {
&self.max_results
}
pub fn max_edges_per_node(mut self, input: i32) -> Self {
self.max_edges_per_node = ::std::option::Option::Some(input);
self
}
pub fn set_max_edges_per_node(mut self, input: ::std::option::Option<i32>) -> Self {
self.max_edges_per_node = input;
self
}
pub fn get_max_edges_per_node(&self) -> &::std::option::Option<i32> {
&self.max_edges_per_node
}
pub fn include_metadata(mut self, input: bool) -> Self {
self.include_metadata = ::std::option::Option::Some(input);
self
}
pub fn set_include_metadata(mut self, input: ::std::option::Option<bool>) -> Self {
self.include_metadata = input;
self
}
pub fn get_include_metadata(&self) -> &::std::option::Option<bool> {
&self.include_metadata
}
pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.next_token = ::std::option::Option::Some(input.into());
self
}
pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
&self.next_token
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::get_context_graph::GetContextGraphInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_context_graph::GetContextGraphInput {
node_filters: self.node_filters,
edge_filters: self.edge_filters,
start_time: self.start_time,
end_time: self.end_time,
depth: self.depth,
max_results: self.max_results,
max_edges_per_node: self.max_edges_per_node,
include_metadata: self.include_metadata,
next_token: self.next_token,
})
}
}