#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetAssociatedRoleOutput {
#[doc(hidden)]
pub associated_at: std::option::Option<std::string::String>,
#[doc(hidden)]
pub role_arn: std::option::Option<std::string::String>,
_request_id: Option<String>,
}
impl GetAssociatedRoleOutput {
pub fn associated_at(&self) -> std::option::Option<&str> {
self.associated_at.as_deref()
}
pub fn role_arn(&self) -> std::option::Option<&str> {
self.role_arn.as_deref()
}
}
impl aws_http::request_id::RequestId for GetAssociatedRoleOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetAssociatedRoleOutput {
pub fn builder(
) -> crate::operation::get_associated_role::builders::GetAssociatedRoleOutputBuilder {
crate::operation::get_associated_role::builders::GetAssociatedRoleOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct GetAssociatedRoleOutputBuilder {
pub(crate) associated_at: std::option::Option<std::string::String>,
pub(crate) role_arn: std::option::Option<std::string::String>,
_request_id: Option<String>,
}
impl GetAssociatedRoleOutputBuilder {
pub fn associated_at(mut self, input: impl Into<std::string::String>) -> Self {
self.associated_at = Some(input.into());
self
}
pub fn set_associated_at(mut self, input: std::option::Option<std::string::String>) -> Self {
self.associated_at = input;
self
}
pub fn role_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.role_arn = Some(input.into());
self
}
pub fn set_role_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.role_arn = input;
self
}
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
}
pub fn build(self) -> crate::operation::get_associated_role::GetAssociatedRoleOutput {
crate::operation::get_associated_role::GetAssociatedRoleOutput {
associated_at: self.associated_at,
role_arn: self.role_arn,
_request_id: self._request_id,
}
}
}