Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Retrieves the statement.
Synopsis
- data GetStatement = GetStatement' {}
- newGetStatement :: Text -> Int -> GetStatement
- getStatement_requestOrigin :: Lens' GetStatement (Maybe Text)
- getStatement_sessionId :: Lens' GetStatement Text
- getStatement_id :: Lens' GetStatement Int
- data GetStatementResponse = GetStatementResponse' {
- statement :: Maybe Statement
- httpStatus :: Int
- newGetStatementResponse :: Int -> GetStatementResponse
- getStatementResponse_statement :: Lens' GetStatementResponse (Maybe Statement)
- getStatementResponse_httpStatus :: Lens' GetStatementResponse Int
Creating a Request
data GetStatement Source #
See: newGetStatement
smart constructor.
Instances
Create a value of GetStatement
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:requestOrigin:GetStatement'
, getStatement_requestOrigin
- The origin of the request.
$sel:sessionId:GetStatement'
, getStatement_sessionId
- The Session ID of the statement.
GetStatement
, getStatement_id
- The Id of the statement.
Request Lenses
getStatement_requestOrigin :: Lens' GetStatement (Maybe Text) Source #
The origin of the request.
getStatement_sessionId :: Lens' GetStatement Text Source #
The Session ID of the statement.
getStatement_id :: Lens' GetStatement Int Source #
The Id of the statement.
Destructuring the Response
data GetStatementResponse Source #
See: newGetStatementResponse
smart constructor.
GetStatementResponse' | |
|
Instances
newGetStatementResponse Source #
Create a value of GetStatementResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:statement:GetStatementResponse'
, getStatementResponse_statement
- Returns the statement.
$sel:httpStatus:GetStatementResponse'
, getStatementResponse_httpStatus
- The response's http status code.
Response Lenses
getStatementResponse_statement :: Lens' GetStatementResponse (Maybe Statement) Source #
Returns the statement.
getStatementResponse_httpStatus :: Lens' GetStatementResponse Int Source #
The response's http status code.