#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct QueryLineageOutput {
pub vertices: ::std::option::Option<::std::vec::Vec<crate::types::Vertex>>,
pub edges: ::std::option::Option<::std::vec::Vec<crate::types::Edge>>,
pub next_token: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl QueryLineageOutput {
pub fn vertices(&self) -> ::std::option::Option<&[crate::types::Vertex]> {
self.vertices.as_deref()
}
pub fn edges(&self) -> ::std::option::Option<&[crate::types::Edge]> {
self.edges.as_deref()
}
pub fn next_token(&self) -> ::std::option::Option<&str> {
self.next_token.as_deref()
}
}
impl ::aws_http::request_id::RequestId for QueryLineageOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl QueryLineageOutput {
pub fn builder() -> crate::operation::query_lineage::builders::QueryLineageOutputBuilder {
crate::operation::query_lineage::builders::QueryLineageOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct QueryLineageOutputBuilder {
pub(crate) vertices: ::std::option::Option<::std::vec::Vec<crate::types::Vertex>>,
pub(crate) edges: ::std::option::Option<::std::vec::Vec<crate::types::Edge>>,
pub(crate) next_token: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl QueryLineageOutputBuilder {
pub fn vertices(mut self, input: crate::types::Vertex) -> Self {
let mut v = self.vertices.unwrap_or_default();
v.push(input);
self.vertices = ::std::option::Option::Some(v);
self
}
pub fn set_vertices(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Vertex>>) -> Self {
self.vertices = input;
self
}
pub fn get_vertices(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Vertex>> {
&self.vertices
}
pub fn edges(mut self, input: crate::types::Edge) -> Self {
let mut v = self.edges.unwrap_or_default();
v.push(input);
self.edges = ::std::option::Option::Some(v);
self
}
pub fn set_edges(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Edge>>) -> Self {
self.edges = input;
self
}
pub fn get_edges(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Edge>> {
&self.edges
}
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(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::query_lineage::QueryLineageOutput {
crate::operation::query_lineage::QueryLineageOutput {
vertices: self.vertices,
edges: self.edges,
next_token: self.next_token,
_request_id: self._request_id,
}
}
}