Struct aws_sdk_sagemakerruntime::error::model_error::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ModelError
.
Implementations§
source§impl Builder
impl Builder
pub fn message(self, input: impl Into<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
sourcepub fn original_status_code(self, input: i32) -> Self
pub fn original_status_code(self, input: i32) -> Self
Original status code.
sourcepub fn set_original_status_code(self, input: Option<i32>) -> Self
pub fn set_original_status_code(self, input: Option<i32>) -> Self
Original status code.
sourcepub fn original_message(self, input: impl Into<String>) -> Self
pub fn original_message(self, input: impl Into<String>) -> Self
Original message.
sourcepub fn set_original_message(self, input: Option<String>) -> Self
pub fn set_original_message(self, input: Option<String>) -> Self
Original message.
sourcepub fn log_stream_arn(self, input: impl Into<String>) -> Self
pub fn log_stream_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the log stream.
sourcepub fn set_log_stream_arn(self, input: Option<String>) -> Self
pub fn set_log_stream_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the log stream.
sourcepub fn build(self) -> ModelError
pub fn build(self) -> ModelError
Consumes the builder and constructs a ModelError
.