Skip to main content

aws_sdk_devopsguru/operation/update_service_integration/
_update_service_integration_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 UpdateServiceIntegrationInput {
6    /// <p>An <code>IntegratedServiceConfig</code> object used to specify the integrated service you want to update, and whether you want to update it to enabled or disabled.</p>
7    pub service_integration: ::std::option::Option<crate::types::UpdateServiceIntegrationConfig>,
8}
9impl UpdateServiceIntegrationInput {
10    /// <p>An <code>IntegratedServiceConfig</code> object used to specify the integrated service you want to update, and whether you want to update it to enabled or disabled.</p>
11    pub fn service_integration(&self) -> ::std::option::Option<&crate::types::UpdateServiceIntegrationConfig> {
12        self.service_integration.as_ref()
13    }
14}
15impl UpdateServiceIntegrationInput {
16    /// Creates a new builder-style object to manufacture [`UpdateServiceIntegrationInput`](crate::operation::update_service_integration::UpdateServiceIntegrationInput).
17    pub fn builder() -> crate::operation::update_service_integration::builders::UpdateServiceIntegrationInputBuilder {
18        crate::operation::update_service_integration::builders::UpdateServiceIntegrationInputBuilder::default()
19    }
20}
21
22/// A builder for [`UpdateServiceIntegrationInput`](crate::operation::update_service_integration::UpdateServiceIntegrationInput).
23#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
24#[non_exhaustive]
25pub struct UpdateServiceIntegrationInputBuilder {
26    pub(crate) service_integration: ::std::option::Option<crate::types::UpdateServiceIntegrationConfig>,
27}
28impl UpdateServiceIntegrationInputBuilder {
29    /// <p>An <code>IntegratedServiceConfig</code> object used to specify the integrated service you want to update, and whether you want to update it to enabled or disabled.</p>
30    /// This field is required.
31    pub fn service_integration(mut self, input: crate::types::UpdateServiceIntegrationConfig) -> Self {
32        self.service_integration = ::std::option::Option::Some(input);
33        self
34    }
35    /// <p>An <code>IntegratedServiceConfig</code> object used to specify the integrated service you want to update, and whether you want to update it to enabled or disabled.</p>
36    pub fn set_service_integration(mut self, input: ::std::option::Option<crate::types::UpdateServiceIntegrationConfig>) -> Self {
37        self.service_integration = input;
38        self
39    }
40    /// <p>An <code>IntegratedServiceConfig</code> object used to specify the integrated service you want to update, and whether you want to update it to enabled or disabled.</p>
41    pub fn get_service_integration(&self) -> &::std::option::Option<crate::types::UpdateServiceIntegrationConfig> {
42        &self.service_integration
43    }
44    /// Consumes the builder and constructs a [`UpdateServiceIntegrationInput`](crate::operation::update_service_integration::UpdateServiceIntegrationInput).
45    pub fn build(
46        self,
47    ) -> ::std::result::Result<
48        crate::operation::update_service_integration::UpdateServiceIntegrationInput,
49        ::aws_smithy_types::error::operation::BuildError,
50    > {
51        ::std::result::Result::Ok(crate::operation::update_service_integration::UpdateServiceIntegrationInput {
52            service_integration: self.service_integration,
53        })
54    }
55}