#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GrantFlowEntitlementsOutput {
pub entitlements: ::std::option::Option<::std::vec::Vec<crate::types::Entitlement>>,
pub flow_arn: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl GrantFlowEntitlementsOutput {
pub fn entitlements(&self) -> &[crate::types::Entitlement] {
self.entitlements.as_deref().unwrap_or_default()
}
pub fn flow_arn(&self) -> ::std::option::Option<&str> {
self.flow_arn.as_deref()
}
}
impl ::aws_types::request_id::RequestId for GrantFlowEntitlementsOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GrantFlowEntitlementsOutput {
pub fn builder() -> crate::operation::grant_flow_entitlements::builders::GrantFlowEntitlementsOutputBuilder {
crate::operation::grant_flow_entitlements::builders::GrantFlowEntitlementsOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GrantFlowEntitlementsOutputBuilder {
pub(crate) entitlements: ::std::option::Option<::std::vec::Vec<crate::types::Entitlement>>,
pub(crate) flow_arn: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl GrantFlowEntitlementsOutputBuilder {
pub fn entitlements(mut self, input: crate::types::Entitlement) -> Self {
let mut v = self.entitlements.unwrap_or_default();
v.push(input);
self.entitlements = ::std::option::Option::Some(v);
self
}
pub fn set_entitlements(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Entitlement>>) -> Self {
self.entitlements = input;
self
}
pub fn get_entitlements(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Entitlement>> {
&self.entitlements
}
pub fn flow_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.flow_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_flow_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.flow_arn = input;
self
}
pub fn get_flow_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.flow_arn
}
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::grant_flow_entitlements::GrantFlowEntitlementsOutput {
crate::operation::grant_flow_entitlements::GrantFlowEntitlementsOutput {
entitlements: self.entitlements,
flow_arn: self.flow_arn,
_request_id: self._request_id,
}
}
}