Skip to main content

aws_sdk_datazone/operation/get_time_series_data_point/
_get_time_series_data_point_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct GetTimeSeriesDataPointInput {
6    /// <p>The ID of the Amazon DataZone domain that houses the asset for which you want to get the data point.</p>
7    pub domain_identifier: ::std::option::Option<::std::string::String>,
8    /// <p>The ID of the asset for which you want to get the data point.</p>
9    pub entity_identifier: ::std::option::Option<::std::string::String>,
10    /// <p>The type of the asset for which you want to get the data point.</p>
11    pub entity_type: ::std::option::Option<crate::types::TimeSeriesEntityType>,
12    /// <p>The ID of the data point that you want to get.</p>
13    pub identifier: ::std::option::Option<::std::string::String>,
14    /// <p>The name of the time series form that houses the data point that you want to get.</p>
15    pub form_name: ::std::option::Option<::std::string::String>,
16}
17impl GetTimeSeriesDataPointInput {
18    /// <p>The ID of the Amazon DataZone domain that houses the asset for which you want to get the data point.</p>
19    pub fn domain_identifier(&self) -> ::std::option::Option<&str> {
20        self.domain_identifier.as_deref()
21    }
22    /// <p>The ID of the asset for which you want to get the data point.</p>
23    pub fn entity_identifier(&self) -> ::std::option::Option<&str> {
24        self.entity_identifier.as_deref()
25    }
26    /// <p>The type of the asset for which you want to get the data point.</p>
27    pub fn entity_type(&self) -> ::std::option::Option<&crate::types::TimeSeriesEntityType> {
28        self.entity_type.as_ref()
29    }
30    /// <p>The ID of the data point that you want to get.</p>
31    pub fn identifier(&self) -> ::std::option::Option<&str> {
32        self.identifier.as_deref()
33    }
34    /// <p>The name of the time series form that houses the data point that you want to get.</p>
35    pub fn form_name(&self) -> ::std::option::Option<&str> {
36        self.form_name.as_deref()
37    }
38}
39impl GetTimeSeriesDataPointInput {
40    /// Creates a new builder-style object to manufacture [`GetTimeSeriesDataPointInput`](crate::operation::get_time_series_data_point::GetTimeSeriesDataPointInput).
41    pub fn builder() -> crate::operation::get_time_series_data_point::builders::GetTimeSeriesDataPointInputBuilder {
42        crate::operation::get_time_series_data_point::builders::GetTimeSeriesDataPointInputBuilder::default()
43    }
44}
45
46/// A builder for [`GetTimeSeriesDataPointInput`](crate::operation::get_time_series_data_point::GetTimeSeriesDataPointInput).
47#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
48#[non_exhaustive]
49pub struct GetTimeSeriesDataPointInputBuilder {
50    pub(crate) domain_identifier: ::std::option::Option<::std::string::String>,
51    pub(crate) entity_identifier: ::std::option::Option<::std::string::String>,
52    pub(crate) entity_type: ::std::option::Option<crate::types::TimeSeriesEntityType>,
53    pub(crate) identifier: ::std::option::Option<::std::string::String>,
54    pub(crate) form_name: ::std::option::Option<::std::string::String>,
55}
56impl GetTimeSeriesDataPointInputBuilder {
57    /// <p>The ID of the Amazon DataZone domain that houses the asset for which you want to get the data point.</p>
58    /// This field is required.
59    pub fn domain_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
60        self.domain_identifier = ::std::option::Option::Some(input.into());
61        self
62    }
63    /// <p>The ID of the Amazon DataZone domain that houses the asset for which you want to get the data point.</p>
64    pub fn set_domain_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
65        self.domain_identifier = input;
66        self
67    }
68    /// <p>The ID of the Amazon DataZone domain that houses the asset for which you want to get the data point.</p>
69    pub fn get_domain_identifier(&self) -> &::std::option::Option<::std::string::String> {
70        &self.domain_identifier
71    }
72    /// <p>The ID of the asset for which you want to get the data point.</p>
73    /// This field is required.
74    pub fn entity_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
75        self.entity_identifier = ::std::option::Option::Some(input.into());
76        self
77    }
78    /// <p>The ID of the asset for which you want to get the data point.</p>
79    pub fn set_entity_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
80        self.entity_identifier = input;
81        self
82    }
83    /// <p>The ID of the asset for which you want to get the data point.</p>
84    pub fn get_entity_identifier(&self) -> &::std::option::Option<::std::string::String> {
85        &self.entity_identifier
86    }
87    /// <p>The type of the asset for which you want to get the data point.</p>
88    /// This field is required.
89    pub fn entity_type(mut self, input: crate::types::TimeSeriesEntityType) -> Self {
90        self.entity_type = ::std::option::Option::Some(input);
91        self
92    }
93    /// <p>The type of the asset for which you want to get the data point.</p>
94    pub fn set_entity_type(mut self, input: ::std::option::Option<crate::types::TimeSeriesEntityType>) -> Self {
95        self.entity_type = input;
96        self
97    }
98    /// <p>The type of the asset for which you want to get the data point.</p>
99    pub fn get_entity_type(&self) -> &::std::option::Option<crate::types::TimeSeriesEntityType> {
100        &self.entity_type
101    }
102    /// <p>The ID of the data point that you want to get.</p>
103    /// This field is required.
104    pub fn identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
105        self.identifier = ::std::option::Option::Some(input.into());
106        self
107    }
108    /// <p>The ID of the data point that you want to get.</p>
109    pub fn set_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
110        self.identifier = input;
111        self
112    }
113    /// <p>The ID of the data point that you want to get.</p>
114    pub fn get_identifier(&self) -> &::std::option::Option<::std::string::String> {
115        &self.identifier
116    }
117    /// <p>The name of the time series form that houses the data point that you want to get.</p>
118    /// This field is required.
119    pub fn form_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
120        self.form_name = ::std::option::Option::Some(input.into());
121        self
122    }
123    /// <p>The name of the time series form that houses the data point that you want to get.</p>
124    pub fn set_form_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
125        self.form_name = input;
126        self
127    }
128    /// <p>The name of the time series form that houses the data point that you want to get.</p>
129    pub fn get_form_name(&self) -> &::std::option::Option<::std::string::String> {
130        &self.form_name
131    }
132    /// Consumes the builder and constructs a [`GetTimeSeriesDataPointInput`](crate::operation::get_time_series_data_point::GetTimeSeriesDataPointInput).
133    pub fn build(
134        self,
135    ) -> ::std::result::Result<
136        crate::operation::get_time_series_data_point::GetTimeSeriesDataPointInput,
137        ::aws_smithy_types::error::operation::BuildError,
138    > {
139        ::std::result::Result::Ok(crate::operation::get_time_series_data_point::GetTimeSeriesDataPointInput {
140            domain_identifier: self.domain_identifier,
141            entity_identifier: self.entity_identifier,
142            entity_type: self.entity_type,
143            identifier: self.identifier,
144            form_name: self.form_name,
145        })
146    }
147}