aws-sdk-glue 1.149.0

AWS SDK for AWS Glue
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetDashboardUrlInput {
    /// <p>The unique identifier of the resource for which to retrieve the dashboard URL.</p>
    pub resource_id: ::std::option::Option<::std::string::String>,
    /// <p>The type of the resource. Valid values are <code>SESSION</code> and <code>JOB</code>.</p>
    pub resource_type: ::std::option::Option<crate::types::GlueResourceType>,
    /// <p>The origin of the request.</p>
    pub request_origin: ::std::option::Option<::std::string::String>,
}
impl GetDashboardUrlInput {
    /// <p>The unique identifier of the resource for which to retrieve the dashboard URL.</p>
    pub fn resource_id(&self) -> ::std::option::Option<&str> {
        self.resource_id.as_deref()
    }
    /// <p>The type of the resource. Valid values are <code>SESSION</code> and <code>JOB</code>.</p>
    pub fn resource_type(&self) -> ::std::option::Option<&crate::types::GlueResourceType> {
        self.resource_type.as_ref()
    }
    /// <p>The origin of the request.</p>
    pub fn request_origin(&self) -> ::std::option::Option<&str> {
        self.request_origin.as_deref()
    }
}
impl GetDashboardUrlInput {
    /// Creates a new builder-style object to manufacture [`GetDashboardUrlInput`](crate::operation::get_dashboard_url::GetDashboardUrlInput).
    pub fn builder() -> crate::operation::get_dashboard_url::builders::GetDashboardUrlInputBuilder {
        crate::operation::get_dashboard_url::builders::GetDashboardUrlInputBuilder::default()
    }
}

/// A builder for [`GetDashboardUrlInput`](crate::operation::get_dashboard_url::GetDashboardUrlInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetDashboardUrlInputBuilder {
    pub(crate) resource_id: ::std::option::Option<::std::string::String>,
    pub(crate) resource_type: ::std::option::Option<crate::types::GlueResourceType>,
    pub(crate) request_origin: ::std::option::Option<::std::string::String>,
}
impl GetDashboardUrlInputBuilder {
    /// <p>The unique identifier of the resource for which to retrieve the dashboard URL.</p>
    /// This field is required.
    pub fn resource_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.resource_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the resource for which to retrieve the dashboard URL.</p>
    pub fn set_resource_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.resource_id = input;
        self
    }
    /// <p>The unique identifier of the resource for which to retrieve the dashboard URL.</p>
    pub fn get_resource_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.resource_id
    }
    /// <p>The type of the resource. Valid values are <code>SESSION</code> and <code>JOB</code>.</p>
    /// This field is required.
    pub fn resource_type(mut self, input: crate::types::GlueResourceType) -> Self {
        self.resource_type = ::std::option::Option::Some(input);
        self
    }
    /// <p>The type of the resource. Valid values are <code>SESSION</code> and <code>JOB</code>.</p>
    pub fn set_resource_type(mut self, input: ::std::option::Option<crate::types::GlueResourceType>) -> Self {
        self.resource_type = input;
        self
    }
    /// <p>The type of the resource. Valid values are <code>SESSION</code> and <code>JOB</code>.</p>
    pub fn get_resource_type(&self) -> &::std::option::Option<crate::types::GlueResourceType> {
        &self.resource_type
    }
    /// <p>The origin of the request.</p>
    pub fn request_origin(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.request_origin = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The origin of the request.</p>
    pub fn set_request_origin(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.request_origin = input;
        self
    }
    /// <p>The origin of the request.</p>
    pub fn get_request_origin(&self) -> &::std::option::Option<::std::string::String> {
        &self.request_origin
    }
    /// Consumes the builder and constructs a [`GetDashboardUrlInput`](crate::operation::get_dashboard_url::GetDashboardUrlInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_dashboard_url::GetDashboardUrlInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_dashboard_url::GetDashboardUrlInput {
            resource_id: self.resource_id,
            resource_type: self.resource_type,
            request_origin: self.request_origin,
        })
    }
}