pub struct Builder { /* private fields */ }Expand description
A builder for UnprocessedPreparedStatementName.
Implementations§
source§impl Builder
impl Builder
sourcepub fn statement_name(self, input: impl Into<String>) -> Self
pub fn statement_name(self, input: impl Into<String>) -> Self
The name of a prepared statement that could not be returned due to an error.
sourcepub fn set_statement_name(self, input: Option<String>) -> Self
pub fn set_statement_name(self, input: Option<String>) -> Self
The name of a prepared statement that could not be returned due to an error.
sourcepub fn error_code(self, input: impl Into<String>) -> Self
pub fn error_code(self, input: impl Into<String>) -> Self
The error code returned when the request for the prepared statement failed.
sourcepub fn set_error_code(self, input: Option<String>) -> Self
pub fn set_error_code(self, input: Option<String>) -> Self
The error code returned when the request for the prepared statement failed.
sourcepub fn error_message(self, input: impl Into<String>) -> Self
pub fn error_message(self, input: impl Into<String>) -> Self
The error message containing the reason why the prepared statement could not be returned. The following error messages are possible:
-
INVALID_INPUT- The name of the prepared statement that was provided is not valid (for example, the name is too long). -
STATEMENT_NOT_FOUND- A prepared statement with the name provided could not be found. -
UNAUTHORIZED- The requester does not have permission to access the workgroup that contains the prepared statement.
sourcepub fn set_error_message(self, input: Option<String>) -> Self
pub fn set_error_message(self, input: Option<String>) -> Self
The error message containing the reason why the prepared statement could not be returned. The following error messages are possible:
-
INVALID_INPUT- The name of the prepared statement that was provided is not valid (for example, the name is too long). -
STATEMENT_NOT_FOUND- A prepared statement with the name provided could not be found. -
UNAUTHORIZED- The requester does not have permission to access the workgroup that contains the prepared statement.
sourcepub fn build(self) -> UnprocessedPreparedStatementName
pub fn build(self) -> UnprocessedPreparedStatementName
Consumes the builder and constructs a UnprocessedPreparedStatementName.