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.

/// Input for listing service associations within an AgentSpace.
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ListAssociationsInput {
    /// The unique identifier of the AgentSpace
    pub agent_space_id: ::std::option::Option<::std::string::String>,
    /// Maximum number of results to return in a single call.
    pub max_results: ::std::option::Option<i32>,
    /// Token for the next page of results.
    pub next_token: ::std::option::Option<::std::string::String>,
    /// A comma-separated list of service types to filter list associations output
    pub filter_service_types: ::std::option::Option<::std::string::String>,
}
impl ListAssociationsInput {
    /// The unique identifier of the AgentSpace
    pub fn agent_space_id(&self) -> ::std::option::Option<&str> {
        self.agent_space_id.as_deref()
    }
    /// Maximum number of results to return in a single call.
    pub fn max_results(&self) -> ::std::option::Option<i32> {
        self.max_results
    }
    /// Token for the next page of results.
    pub fn next_token(&self) -> ::std::option::Option<&str> {
        self.next_token.as_deref()
    }
    /// A comma-separated list of service types to filter list associations output
    pub fn filter_service_types(&self) -> ::std::option::Option<&str> {
        self.filter_service_types.as_deref()
    }
}
impl ListAssociationsInput {
    /// Creates a new builder-style object to manufacture [`ListAssociationsInput`](crate::operation::list_associations::ListAssociationsInput).
    pub fn builder() -> crate::operation::list_associations::builders::ListAssociationsInputBuilder {
        crate::operation::list_associations::builders::ListAssociationsInputBuilder::default()
    }
}

/// A builder for [`ListAssociationsInput`](crate::operation::list_associations::ListAssociationsInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ListAssociationsInputBuilder {
    pub(crate) agent_space_id: ::std::option::Option<::std::string::String>,
    pub(crate) max_results: ::std::option::Option<i32>,
    pub(crate) next_token: ::std::option::Option<::std::string::String>,
    pub(crate) filter_service_types: ::std::option::Option<::std::string::String>,
}
impl ListAssociationsInputBuilder {
    /// The unique identifier of the AgentSpace
    /// This field is required.
    pub fn agent_space_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.agent_space_id = ::std::option::Option::Some(input.into());
        self
    }
    /// The unique identifier of the AgentSpace
    pub fn set_agent_space_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.agent_space_id = input;
        self
    }
    /// The unique identifier of the AgentSpace
    pub fn get_agent_space_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.agent_space_id
    }
    /// Maximum number of results to return in a single call.
    pub fn max_results(mut self, input: i32) -> Self {
        self.max_results = ::std::option::Option::Some(input);
        self
    }
    /// Maximum number of results to return in a single call.
    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
        self.max_results = input;
        self
    }
    /// Maximum number of results to return in a single call.
    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
        &self.max_results
    }
    /// Token for the next page of results.
    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.next_token = ::std::option::Option::Some(input.into());
        self
    }
    /// Token for the next page of results.
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.next_token = input;
        self
    }
    /// Token for the next page of results.
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
        &self.next_token
    }
    /// A comma-separated list of service types to filter list associations output
    pub fn filter_service_types(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.filter_service_types = ::std::option::Option::Some(input.into());
        self
    }
    /// A comma-separated list of service types to filter list associations output
    pub fn set_filter_service_types(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.filter_service_types = input;
        self
    }
    /// A comma-separated list of service types to filter list associations output
    pub fn get_filter_service_types(&self) -> &::std::option::Option<::std::string::String> {
        &self.filter_service_types
    }
    /// Consumes the builder and constructs a [`ListAssociationsInput`](crate::operation::list_associations::ListAssociationsInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::list_associations::ListAssociationsInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::list_associations::ListAssociationsInput {
            agent_space_id: self.agent_space_id,
            max_results: self.max_results,
            next_token: self.next_token,
            filter_service_types: self.filter_service_types,
        })
    }
}