#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct RunLogLocation {
pub engine_log_stream: ::std::option::Option<::std::string::String>,
pub run_log_stream: ::std::option::Option<::std::string::String>,
}
impl RunLogLocation {
pub fn engine_log_stream(&self) -> ::std::option::Option<&str> {
self.engine_log_stream.as_deref()
}
pub fn run_log_stream(&self) -> ::std::option::Option<&str> {
self.run_log_stream.as_deref()
}
}
impl RunLogLocation {
pub fn builder() -> crate::types::builders::RunLogLocationBuilder {
crate::types::builders::RunLogLocationBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct RunLogLocationBuilder {
pub(crate) engine_log_stream: ::std::option::Option<::std::string::String>,
pub(crate) run_log_stream: ::std::option::Option<::std::string::String>,
}
impl RunLogLocationBuilder {
pub fn engine_log_stream(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.engine_log_stream = ::std::option::Option::Some(input.into());
self
}
pub fn set_engine_log_stream(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.engine_log_stream = input;
self
}
pub fn get_engine_log_stream(&self) -> &::std::option::Option<::std::string::String> {
&self.engine_log_stream
}
pub fn run_log_stream(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.run_log_stream = ::std::option::Option::Some(input.into());
self
}
pub fn set_run_log_stream(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.run_log_stream = input;
self
}
pub fn get_run_log_stream(&self) -> &::std::option::Option<::std::string::String> {
&self.run_log_stream
}
pub fn build(self) -> crate::types::RunLogLocation {
crate::types::RunLogLocation {
engine_log_stream: self.engine_log_stream,
run_log_stream: self.run_log_stream,
}
}
}