aws_sdk_machinelearning/operation/create_batch_prediction/
_create_batch_prediction_output.rs1#[non_exhaustive]
6#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
7pub struct CreateBatchPredictionOutput {
8 pub batch_prediction_id: ::std::option::Option<::std::string::String>,
10 _request_id: Option<String>,
11}
12impl CreateBatchPredictionOutput {
13 pub fn batch_prediction_id(&self) -> ::std::option::Option<&str> {
15 self.batch_prediction_id.as_deref()
16 }
17}
18impl ::aws_types::request_id::RequestId for CreateBatchPredictionOutput {
19 fn request_id(&self) -> Option<&str> {
20 self._request_id.as_deref()
21 }
22}
23impl CreateBatchPredictionOutput {
24 pub fn builder() -> crate::operation::create_batch_prediction::builders::CreateBatchPredictionOutputBuilder {
26 crate::operation::create_batch_prediction::builders::CreateBatchPredictionOutputBuilder::default()
27 }
28}
29
30#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
32#[non_exhaustive]
33pub struct CreateBatchPredictionOutputBuilder {
34 pub(crate) batch_prediction_id: ::std::option::Option<::std::string::String>,
35 _request_id: Option<String>,
36}
37impl CreateBatchPredictionOutputBuilder {
38 pub fn batch_prediction_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
40 self.batch_prediction_id = ::std::option::Option::Some(input.into());
41 self
42 }
43 pub fn set_batch_prediction_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
45 self.batch_prediction_id = input;
46 self
47 }
48 pub fn get_batch_prediction_id(&self) -> &::std::option::Option<::std::string::String> {
50 &self.batch_prediction_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 pub fn build(self) -> crate::operation::create_batch_prediction::CreateBatchPredictionOutput {
63 crate::operation::create_batch_prediction::CreateBatchPredictionOutput {
64 batch_prediction_id: self.batch_prediction_id,
65 _request_id: self._request_id,
66 }
67 }
68}