aws-sdk-codecatalyst 1.98.0

AWS SDK for Amazon CodeCatalyst
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Information about an integrated development environment (IDE) used in a Dev Environment.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Ide {
    /// <p>A link to the IDE runtime image.</p>
    pub runtime: ::std::option::Option<::std::string::String>,
    /// <p>The name of the IDE.</p>
    pub name: ::std::option::Option<::std::string::String>,
}
impl Ide {
    /// <p>A link to the IDE runtime image.</p>
    pub fn runtime(&self) -> ::std::option::Option<&str> {
        self.runtime.as_deref()
    }
    /// <p>The name of the IDE.</p>
    pub fn name(&self) -> ::std::option::Option<&str> {
        self.name.as_deref()
    }
}
impl Ide {
    /// Creates a new builder-style object to manufacture [`Ide`](crate::types::Ide).
    pub fn builder() -> crate::types::builders::IdeBuilder {
        crate::types::builders::IdeBuilder::default()
    }
}

/// A builder for [`Ide`](crate::types::Ide).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct IdeBuilder {
    pub(crate) runtime: ::std::option::Option<::std::string::String>,
    pub(crate) name: ::std::option::Option<::std::string::String>,
}
impl IdeBuilder {
    /// <p>A link to the IDE runtime image.</p>
    pub fn runtime(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.runtime = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A link to the IDE runtime image.</p>
    pub fn set_runtime(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.runtime = input;
        self
    }
    /// <p>A link to the IDE runtime image.</p>
    pub fn get_runtime(&self) -> &::std::option::Option<::std::string::String> {
        &self.runtime
    }
    /// <p>The name of the IDE.</p>
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the IDE.</p>
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.name = input;
        self
    }
    /// <p>The name of the IDE.</p>
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.name
    }
    /// Consumes the builder and constructs a [`Ide`](crate::types::Ide).
    pub fn build(self) -> crate::types::Ide {
        crate::types::Ide {
            runtime: self.runtime,
            name: self.name,
        }
    }
}