aws_sdk_machinelearning/operation/delete_evaluation/
_delete_evaluation_output.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>Represents the output of a <code>DeleteEvaluation</code> operation. The output indicates that Amazon Machine Learning (Amazon ML) received the request.</p>
4/// <p>You can use the <code>GetEvaluation</code> operation and check the value of the <code>Status</code> parameter to see whether an <code>Evaluation</code> is marked as <code>DELETED</code>.</p>
5#[non_exhaustive]
6#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
7pub struct DeleteEvaluationOutput {
8    /// <p>A user-supplied ID that uniquely identifies the <code>Evaluation</code>. This value should be identical to the value of the <code>EvaluationId</code> in the request.</p>
9    pub evaluation_id: ::std::option::Option<::std::string::String>,
10    _request_id: Option<String>,
11}
12impl DeleteEvaluationOutput {
13    /// <p>A user-supplied ID that uniquely identifies the <code>Evaluation</code>. This value should be identical to the value of the <code>EvaluationId</code> in the request.</p>
14    pub fn evaluation_id(&self) -> ::std::option::Option<&str> {
15        self.evaluation_id.as_deref()
16    }
17}
18impl ::aws_types::request_id::RequestId for DeleteEvaluationOutput {
19    fn request_id(&self) -> Option<&str> {
20        self._request_id.as_deref()
21    }
22}
23impl DeleteEvaluationOutput {
24    /// Creates a new builder-style object to manufacture [`DeleteEvaluationOutput`](crate::operation::delete_evaluation::DeleteEvaluationOutput).
25    pub fn builder() -> crate::operation::delete_evaluation::builders::DeleteEvaluationOutputBuilder {
26        crate::operation::delete_evaluation::builders::DeleteEvaluationOutputBuilder::default()
27    }
28}
29
30/// A builder for [`DeleteEvaluationOutput`](crate::operation::delete_evaluation::DeleteEvaluationOutput).
31#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
32#[non_exhaustive]
33pub struct DeleteEvaluationOutputBuilder {
34    pub(crate) evaluation_id: ::std::option::Option<::std::string::String>,
35    _request_id: Option<String>,
36}
37impl DeleteEvaluationOutputBuilder {
38    /// <p>A user-supplied ID that uniquely identifies the <code>Evaluation</code>. This value should be identical to the value of the <code>EvaluationId</code> in the request.</p>
39    pub fn evaluation_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
40        self.evaluation_id = ::std::option::Option::Some(input.into());
41        self
42    }
43    /// <p>A user-supplied ID that uniquely identifies the <code>Evaluation</code>. This value should be identical to the value of the <code>EvaluationId</code> in the request.</p>
44    pub fn set_evaluation_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
45        self.evaluation_id = input;
46        self
47    }
48    /// <p>A user-supplied ID that uniquely identifies the <code>Evaluation</code>. This value should be identical to the value of the <code>EvaluationId</code> in the request.</p>
49    pub fn get_evaluation_id(&self) -> &::std::option::Option<::std::string::String> {
50        &self.evaluation_id
51    }
52    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
53        self._request_id = Some(request_id.into());
54        self
55    }
56
57    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
58        self._request_id = request_id;
59        self
60    }
61    /// Consumes the builder and constructs a [`DeleteEvaluationOutput`](crate::operation::delete_evaluation::DeleteEvaluationOutput).
62    pub fn build(self) -> crate::operation::delete_evaluation::DeleteEvaluationOutput {
63        crate::operation::delete_evaluation::DeleteEvaluationOutput {
64            evaluation_id: self.evaluation_id,
65            _request_id: self._request_id,
66        }
67    }
68}