aws_sdk_xray/operation/update_group/_update_group_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 UpdateGroupInput {
6 /// <p>The case-sensitive name of the group.</p>
7 pub group_name: ::std::option::Option<::std::string::String>,
8 /// <p>The ARN that was generated upon creation.</p>
9 pub group_arn: ::std::option::Option<::std::string::String>,
10 /// <p>The updated filter expression defining criteria by which to group traces.</p>
11 pub filter_expression: ::std::option::Option<::std::string::String>,
12 /// <p>The structure containing configurations related to insights.</p>
13 /// <ul>
14 /// <li>
15 /// <p>The InsightsEnabled boolean can be set to true to enable insights for the group or false to disable insights for the group.</p></li>
16 /// <li>
17 /// <p>The NotificationsEnabled boolean can be set to true to enable insights notifications for the group. Notifications can only be enabled on a group with InsightsEnabled set to true.</p></li>
18 /// </ul>
19 pub insights_configuration: ::std::option::Option<crate::types::InsightsConfiguration>,
20}
21impl UpdateGroupInput {
22 /// <p>The case-sensitive name of the group.</p>
23 pub fn group_name(&self) -> ::std::option::Option<&str> {
24 self.group_name.as_deref()
25 }
26 /// <p>The ARN that was generated upon creation.</p>
27 pub fn group_arn(&self) -> ::std::option::Option<&str> {
28 self.group_arn.as_deref()
29 }
30 /// <p>The updated filter expression defining criteria by which to group traces.</p>
31 pub fn filter_expression(&self) -> ::std::option::Option<&str> {
32 self.filter_expression.as_deref()
33 }
34 /// <p>The structure containing configurations related to insights.</p>
35 /// <ul>
36 /// <li>
37 /// <p>The InsightsEnabled boolean can be set to true to enable insights for the group or false to disable insights for the group.</p></li>
38 /// <li>
39 /// <p>The NotificationsEnabled boolean can be set to true to enable insights notifications for the group. Notifications can only be enabled on a group with InsightsEnabled set to true.</p></li>
40 /// </ul>
41 pub fn insights_configuration(&self) -> ::std::option::Option<&crate::types::InsightsConfiguration> {
42 self.insights_configuration.as_ref()
43 }
44}
45impl UpdateGroupInput {
46 /// Creates a new builder-style object to manufacture [`UpdateGroupInput`](crate::operation::update_group::UpdateGroupInput).
47 pub fn builder() -> crate::operation::update_group::builders::UpdateGroupInputBuilder {
48 crate::operation::update_group::builders::UpdateGroupInputBuilder::default()
49 }
50}
51
52/// A builder for [`UpdateGroupInput`](crate::operation::update_group::UpdateGroupInput).
53#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
54#[non_exhaustive]
55pub struct UpdateGroupInputBuilder {
56 pub(crate) group_name: ::std::option::Option<::std::string::String>,
57 pub(crate) group_arn: ::std::option::Option<::std::string::String>,
58 pub(crate) filter_expression: ::std::option::Option<::std::string::String>,
59 pub(crate) insights_configuration: ::std::option::Option<crate::types::InsightsConfiguration>,
60}
61impl UpdateGroupInputBuilder {
62 /// <p>The case-sensitive name of the group.</p>
63 pub fn group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
64 self.group_name = ::std::option::Option::Some(input.into());
65 self
66 }
67 /// <p>The case-sensitive name of the group.</p>
68 pub fn set_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
69 self.group_name = input;
70 self
71 }
72 /// <p>The case-sensitive name of the group.</p>
73 pub fn get_group_name(&self) -> &::std::option::Option<::std::string::String> {
74 &self.group_name
75 }
76 /// <p>The ARN that was generated upon creation.</p>
77 pub fn group_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
78 self.group_arn = ::std::option::Option::Some(input.into());
79 self
80 }
81 /// <p>The ARN that was generated upon creation.</p>
82 pub fn set_group_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
83 self.group_arn = input;
84 self
85 }
86 /// <p>The ARN that was generated upon creation.</p>
87 pub fn get_group_arn(&self) -> &::std::option::Option<::std::string::String> {
88 &self.group_arn
89 }
90 /// <p>The updated filter expression defining criteria by which to group traces.</p>
91 pub fn filter_expression(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
92 self.filter_expression = ::std::option::Option::Some(input.into());
93 self
94 }
95 /// <p>The updated filter expression defining criteria by which to group traces.</p>
96 pub fn set_filter_expression(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
97 self.filter_expression = input;
98 self
99 }
100 /// <p>The updated filter expression defining criteria by which to group traces.</p>
101 pub fn get_filter_expression(&self) -> &::std::option::Option<::std::string::String> {
102 &self.filter_expression
103 }
104 /// <p>The structure containing configurations related to insights.</p>
105 /// <ul>
106 /// <li>
107 /// <p>The InsightsEnabled boolean can be set to true to enable insights for the group or false to disable insights for the group.</p></li>
108 /// <li>
109 /// <p>The NotificationsEnabled boolean can be set to true to enable insights notifications for the group. Notifications can only be enabled on a group with InsightsEnabled set to true.</p></li>
110 /// </ul>
111 pub fn insights_configuration(mut self, input: crate::types::InsightsConfiguration) -> Self {
112 self.insights_configuration = ::std::option::Option::Some(input);
113 self
114 }
115 /// <p>The structure containing configurations related to insights.</p>
116 /// <ul>
117 /// <li>
118 /// <p>The InsightsEnabled boolean can be set to true to enable insights for the group or false to disable insights for the group.</p></li>
119 /// <li>
120 /// <p>The NotificationsEnabled boolean can be set to true to enable insights notifications for the group. Notifications can only be enabled on a group with InsightsEnabled set to true.</p></li>
121 /// </ul>
122 pub fn set_insights_configuration(mut self, input: ::std::option::Option<crate::types::InsightsConfiguration>) -> Self {
123 self.insights_configuration = input;
124 self
125 }
126 /// <p>The structure containing configurations related to insights.</p>
127 /// <ul>
128 /// <li>
129 /// <p>The InsightsEnabled boolean can be set to true to enable insights for the group or false to disable insights for the group.</p></li>
130 /// <li>
131 /// <p>The NotificationsEnabled boolean can be set to true to enable insights notifications for the group. Notifications can only be enabled on a group with InsightsEnabled set to true.</p></li>
132 /// </ul>
133 pub fn get_insights_configuration(&self) -> &::std::option::Option<crate::types::InsightsConfiguration> {
134 &self.insights_configuration
135 }
136 /// Consumes the builder and constructs a [`UpdateGroupInput`](crate::operation::update_group::UpdateGroupInput).
137 pub fn build(self) -> ::std::result::Result<crate::operation::update_group::UpdateGroupInput, ::aws_smithy_types::error::operation::BuildError> {
138 ::std::result::Result::Ok(crate::operation::update_group::UpdateGroupInput {
139 group_name: self.group_name,
140 group_arn: self.group_arn,
141 filter_expression: self.filter_expression,
142 insights_configuration: self.insights_configuration,
143 })
144 }
145}