aws-sdk-devopsagent 1.3.0

AWS SDK for AWS DevOps Agent Service
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// Output containing the updated association and optional webhook configuration.
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateAssociationOutput {
    /// Represents a service association within an AgentSpace, defining how the agent interacts with external services.
    pub association: ::std::option::Option<crate::types::Association>,
    /// Generic webhook configuration
    pub webhook: ::std::option::Option<crate::types::GenericWebhook>,
    _request_id: Option<String>,
}
impl UpdateAssociationOutput {
    /// Represents a service association within an AgentSpace, defining how the agent interacts with external services.
    pub fn association(&self) -> ::std::option::Option<&crate::types::Association> {
        self.association.as_ref()
    }
    /// Generic webhook configuration
    pub fn webhook(&self) -> ::std::option::Option<&crate::types::GenericWebhook> {
        self.webhook.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for UpdateAssociationOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl UpdateAssociationOutput {
    /// Creates a new builder-style object to manufacture [`UpdateAssociationOutput`](crate::operation::update_association::UpdateAssociationOutput).
    pub fn builder() -> crate::operation::update_association::builders::UpdateAssociationOutputBuilder {
        crate::operation::update_association::builders::UpdateAssociationOutputBuilder::default()
    }
}

/// A builder for [`UpdateAssociationOutput`](crate::operation::update_association::UpdateAssociationOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateAssociationOutputBuilder {
    pub(crate) association: ::std::option::Option<crate::types::Association>,
    pub(crate) webhook: ::std::option::Option<crate::types::GenericWebhook>,
    _request_id: Option<String>,
}
impl UpdateAssociationOutputBuilder {
    /// Represents a service association within an AgentSpace, defining how the agent interacts with external services.
    /// This field is required.
    pub fn association(mut self, input: crate::types::Association) -> Self {
        self.association = ::std::option::Option::Some(input);
        self
    }
    /// Represents a service association within an AgentSpace, defining how the agent interacts with external services.
    pub fn set_association(mut self, input: ::std::option::Option<crate::types::Association>) -> Self {
        self.association = input;
        self
    }
    /// Represents a service association within an AgentSpace, defining how the agent interacts with external services.
    pub fn get_association(&self) -> &::std::option::Option<crate::types::Association> {
        &self.association
    }
    /// Generic webhook configuration
    pub fn webhook(mut self, input: crate::types::GenericWebhook) -> Self {
        self.webhook = ::std::option::Option::Some(input);
        self
    }
    /// Generic webhook configuration
    pub fn set_webhook(mut self, input: ::std::option::Option<crate::types::GenericWebhook>) -> Self {
        self.webhook = input;
        self
    }
    /// Generic webhook configuration
    pub fn get_webhook(&self) -> &::std::option::Option<crate::types::GenericWebhook> {
        &self.webhook
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`UpdateAssociationOutput`](crate::operation::update_association::UpdateAssociationOutput).
    pub fn build(self) -> crate::operation::update_association::UpdateAssociationOutput {
        crate::operation::update_association::UpdateAssociationOutput {
            association: self.association,
            webhook: self.webhook,
            _request_id: self._request_id,
        }
    }
}