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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>The event information.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ConfigurationEvent {
    /// <p>The name of the resource group of the application to which the configuration event belongs.</p>
    pub resource_group_name: ::std::option::Option<::std::string::String>,
    /// <p>The AWS account ID for the owner of the application to which the configuration event belongs.</p>
    pub account_id: ::std::option::Option<::std::string::String>,
    /// <p>The resource monitored by Application Insights.</p>
    pub monitored_resource_arn: ::std::option::Option<::std::string::String>,
    /// <p>The status of the configuration update event. Possible values include INFO, WARN, and ERROR.</p>
    pub event_status: ::std::option::Option<crate::types::ConfigurationEventStatus>,
    /// <p>The resource type that Application Insights attempted to configure, for example, CLOUDWATCH_ALARM.</p>
    pub event_resource_type: ::std::option::Option<crate::types::ConfigurationEventResourceType>,
    /// <p>The timestamp of the event.</p>
    pub event_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The details of the event in plain text.</p>
    pub event_detail: ::std::option::Option<::std::string::String>,
    /// <p>The name of the resource Application Insights attempted to configure.</p>
    pub event_resource_name: ::std::option::Option<::std::string::String>,
}
impl ConfigurationEvent {
    /// <p>The name of the resource group of the application to which the configuration event belongs.</p>
    pub fn resource_group_name(&self) -> ::std::option::Option<&str> {
        self.resource_group_name.as_deref()
    }
    /// <p>The AWS account ID for the owner of the application to which the configuration event belongs.</p>
    pub fn account_id(&self) -> ::std::option::Option<&str> {
        self.account_id.as_deref()
    }
    /// <p>The resource monitored by Application Insights.</p>
    pub fn monitored_resource_arn(&self) -> ::std::option::Option<&str> {
        self.monitored_resource_arn.as_deref()
    }
    /// <p>The status of the configuration update event. Possible values include INFO, WARN, and ERROR.</p>
    pub fn event_status(&self) -> ::std::option::Option<&crate::types::ConfigurationEventStatus> {
        self.event_status.as_ref()
    }
    /// <p>The resource type that Application Insights attempted to configure, for example, CLOUDWATCH_ALARM.</p>
    pub fn event_resource_type(&self) -> ::std::option::Option<&crate::types::ConfigurationEventResourceType> {
        self.event_resource_type.as_ref()
    }
    /// <p>The timestamp of the event.</p>
    pub fn event_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.event_time.as_ref()
    }
    /// <p>The details of the event in plain text.</p>
    pub fn event_detail(&self) -> ::std::option::Option<&str> {
        self.event_detail.as_deref()
    }
    /// <p>The name of the resource Application Insights attempted to configure.</p>
    pub fn event_resource_name(&self) -> ::std::option::Option<&str> {
        self.event_resource_name.as_deref()
    }
}
impl ConfigurationEvent {
    /// Creates a new builder-style object to manufacture [`ConfigurationEvent`](crate::types::ConfigurationEvent).
    pub fn builder() -> crate::types::builders::ConfigurationEventBuilder {
        crate::types::builders::ConfigurationEventBuilder::default()
    }
}

/// A builder for [`ConfigurationEvent`](crate::types::ConfigurationEvent).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct ConfigurationEventBuilder {
    pub(crate) resource_group_name: ::std::option::Option<::std::string::String>,
    pub(crate) account_id: ::std::option::Option<::std::string::String>,
    pub(crate) monitored_resource_arn: ::std::option::Option<::std::string::String>,
    pub(crate) event_status: ::std::option::Option<crate::types::ConfigurationEventStatus>,
    pub(crate) event_resource_type: ::std::option::Option<crate::types::ConfigurationEventResourceType>,
    pub(crate) event_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) event_detail: ::std::option::Option<::std::string::String>,
    pub(crate) event_resource_name: ::std::option::Option<::std::string::String>,
}
impl ConfigurationEventBuilder {
    /// <p>The name of the resource group of the application to which the configuration event belongs.</p>
    pub fn resource_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.resource_group_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the resource group of the application to which the configuration event belongs.</p>
    pub fn set_resource_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.resource_group_name = input;
        self
    }
    /// <p>The name of the resource group of the application to which the configuration event belongs.</p>
    pub fn get_resource_group_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.resource_group_name
    }
    /// <p>The AWS account ID for the owner of the application to which the configuration event belongs.</p>
    pub fn account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.account_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The AWS account ID for the owner of the application to which the configuration event belongs.</p>
    pub fn set_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.account_id = input;
        self
    }
    /// <p>The AWS account ID for the owner of the application to which the configuration event belongs.</p>
    pub fn get_account_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.account_id
    }
    /// <p>The resource monitored by Application Insights.</p>
    pub fn monitored_resource_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.monitored_resource_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The resource monitored by Application Insights.</p>
    pub fn set_monitored_resource_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.monitored_resource_arn = input;
        self
    }
    /// <p>The resource monitored by Application Insights.</p>
    pub fn get_monitored_resource_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.monitored_resource_arn
    }
    /// <p>The status of the configuration update event. Possible values include INFO, WARN, and ERROR.</p>
    pub fn event_status(mut self, input: crate::types::ConfigurationEventStatus) -> Self {
        self.event_status = ::std::option::Option::Some(input);
        self
    }
    /// <p>The status of the configuration update event. Possible values include INFO, WARN, and ERROR.</p>
    pub fn set_event_status(mut self, input: ::std::option::Option<crate::types::ConfigurationEventStatus>) -> Self {
        self.event_status = input;
        self
    }
    /// <p>The status of the configuration update event. Possible values include INFO, WARN, and ERROR.</p>
    pub fn get_event_status(&self) -> &::std::option::Option<crate::types::ConfigurationEventStatus> {
        &self.event_status
    }
    /// <p>The resource type that Application Insights attempted to configure, for example, CLOUDWATCH_ALARM.</p>
    pub fn event_resource_type(mut self, input: crate::types::ConfigurationEventResourceType) -> Self {
        self.event_resource_type = ::std::option::Option::Some(input);
        self
    }
    /// <p>The resource type that Application Insights attempted to configure, for example, CLOUDWATCH_ALARM.</p>
    pub fn set_event_resource_type(mut self, input: ::std::option::Option<crate::types::ConfigurationEventResourceType>) -> Self {
        self.event_resource_type = input;
        self
    }
    /// <p>The resource type that Application Insights attempted to configure, for example, CLOUDWATCH_ALARM.</p>
    pub fn get_event_resource_type(&self) -> &::std::option::Option<crate::types::ConfigurationEventResourceType> {
        &self.event_resource_type
    }
    /// <p>The timestamp of the event.</p>
    pub fn event_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.event_time = ::std::option::Option::Some(input);
        self
    }
    /// <p>The timestamp of the event.</p>
    pub fn set_event_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.event_time = input;
        self
    }
    /// <p>The timestamp of the event.</p>
    pub fn get_event_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.event_time
    }
    /// <p>The details of the event in plain text.</p>
    pub fn event_detail(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.event_detail = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The details of the event in plain text.</p>
    pub fn set_event_detail(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.event_detail = input;
        self
    }
    /// <p>The details of the event in plain text.</p>
    pub fn get_event_detail(&self) -> &::std::option::Option<::std::string::String> {
        &self.event_detail
    }
    /// <p>The name of the resource Application Insights attempted to configure.</p>
    pub fn event_resource_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.event_resource_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the resource Application Insights attempted to configure.</p>
    pub fn set_event_resource_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.event_resource_name = input;
        self
    }
    /// <p>The name of the resource Application Insights attempted to configure.</p>
    pub fn get_event_resource_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.event_resource_name
    }
    /// Consumes the builder and constructs a [`ConfigurationEvent`](crate::types::ConfigurationEvent).
    pub fn build(self) -> crate::types::ConfigurationEvent {
        crate::types::ConfigurationEvent {
            resource_group_name: self.resource_group_name,
            account_id: self.account_id,
            monitored_resource_arn: self.monitored_resource_arn,
            event_status: self.event_status,
            event_resource_type: self.event_resource_type,
            event_time: self.event_time,
            event_detail: self.event_detail,
            event_resource_name: self.event_resource_name,
        }
    }
}