1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>The configuration for a baseline model explainability job.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ModelExplainabilityBaselineConfig {
    /// <p>The name of the baseline model explainability job.</p>
    pub baselining_job_name: ::std::option::Option<::std::string::String>,
    /// <p>The constraints resource for a monitoring job.</p>
    pub constraints_resource: ::std::option::Option<crate::types::MonitoringConstraintsResource>,
}
impl ModelExplainabilityBaselineConfig {
    /// <p>The name of the baseline model explainability job.</p>
    pub fn baselining_job_name(&self) -> ::std::option::Option<&str> {
        self.baselining_job_name.as_deref()
    }
    /// <p>The constraints resource for a monitoring job.</p>
    pub fn constraints_resource(&self) -> ::std::option::Option<&crate::types::MonitoringConstraintsResource> {
        self.constraints_resource.as_ref()
    }
}
impl ModelExplainabilityBaselineConfig {
    /// Creates a new builder-style object to manufacture [`ModelExplainabilityBaselineConfig`](crate::types::ModelExplainabilityBaselineConfig).
    pub fn builder() -> crate::types::builders::ModelExplainabilityBaselineConfigBuilder {
        crate::types::builders::ModelExplainabilityBaselineConfigBuilder::default()
    }
}

/// A builder for [`ModelExplainabilityBaselineConfig`](crate::types::ModelExplainabilityBaselineConfig).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct ModelExplainabilityBaselineConfigBuilder {
    pub(crate) baselining_job_name: ::std::option::Option<::std::string::String>,
    pub(crate) constraints_resource: ::std::option::Option<crate::types::MonitoringConstraintsResource>,
}
impl ModelExplainabilityBaselineConfigBuilder {
    /// <p>The name of the baseline model explainability job.</p>
    pub fn baselining_job_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.baselining_job_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the baseline model explainability job.</p>
    pub fn set_baselining_job_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.baselining_job_name = input;
        self
    }
    /// <p>The name of the baseline model explainability job.</p>
    pub fn get_baselining_job_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.baselining_job_name
    }
    /// <p>The constraints resource for a monitoring job.</p>
    pub fn constraints_resource(mut self, input: crate::types::MonitoringConstraintsResource) -> Self {
        self.constraints_resource = ::std::option::Option::Some(input);
        self
    }
    /// <p>The constraints resource for a monitoring job.</p>
    pub fn set_constraints_resource(mut self, input: ::std::option::Option<crate::types::MonitoringConstraintsResource>) -> Self {
        self.constraints_resource = input;
        self
    }
    /// <p>The constraints resource for a monitoring job.</p>
    pub fn get_constraints_resource(&self) -> &::std::option::Option<crate::types::MonitoringConstraintsResource> {
        &self.constraints_resource
    }
    /// Consumes the builder and constructs a [`ModelExplainabilityBaselineConfig`](crate::types::ModelExplainabilityBaselineConfig).
    pub fn build(self) -> crate::types::ModelExplainabilityBaselineConfig {
        crate::types::ModelExplainabilityBaselineConfig {
            baselining_job_name: self.baselining_job_name,
            constraints_resource: self.constraints_resource,
        }
    }
}