#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetMissionProfileOutput {
pub mission_profile_id: ::std::option::Option<::std::string::String>,
pub mission_profile_arn: ::std::option::Option<::std::string::String>,
pub name: ::std::option::Option<::std::string::String>,
pub region: ::std::option::Option<::std::string::String>,
pub contact_pre_pass_duration_seconds: ::std::option::Option<i32>,
pub contact_post_pass_duration_seconds: ::std::option::Option<i32>,
pub minimum_viable_contact_duration_seconds: ::std::option::Option<i32>,
pub dataflow_edges: ::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>,
pub tracking_config_arn: ::std::option::Option<::std::string::String>,
pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
pub streams_kms_key: ::std::option::Option<crate::types::KmsKey>,
pub streams_kms_role: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl GetMissionProfileOutput {
pub fn mission_profile_id(&self) -> ::std::option::Option<&str> {
self.mission_profile_id.as_deref()
}
pub fn mission_profile_arn(&self) -> ::std::option::Option<&str> {
self.mission_profile_arn.as_deref()
}
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
pub fn region(&self) -> ::std::option::Option<&str> {
self.region.as_deref()
}
pub fn contact_pre_pass_duration_seconds(&self) -> ::std::option::Option<i32> {
self.contact_pre_pass_duration_seconds
}
pub fn contact_post_pass_duration_seconds(&self) -> ::std::option::Option<i32> {
self.contact_post_pass_duration_seconds
}
pub fn minimum_viable_contact_duration_seconds(&self) -> ::std::option::Option<i32> {
self.minimum_viable_contact_duration_seconds
}
pub fn dataflow_edges(&self) -> &[::std::vec::Vec<::std::string::String>] {
self.dataflow_edges.as_deref().unwrap_or_default()
}
pub fn tracking_config_arn(&self) -> ::std::option::Option<&str> {
self.tracking_config_arn.as_deref()
}
pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
self.tags.as_ref()
}
pub fn streams_kms_key(&self) -> ::std::option::Option<&crate::types::KmsKey> {
self.streams_kms_key.as_ref()
}
pub fn streams_kms_role(&self) -> ::std::option::Option<&str> {
self.streams_kms_role.as_deref()
}
}
impl ::aws_types::request_id::RequestId for GetMissionProfileOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetMissionProfileOutput {
pub fn builder() -> crate::operation::get_mission_profile::builders::GetMissionProfileOutputBuilder {
crate::operation::get_mission_profile::builders::GetMissionProfileOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetMissionProfileOutputBuilder {
pub(crate) mission_profile_id: ::std::option::Option<::std::string::String>,
pub(crate) mission_profile_arn: ::std::option::Option<::std::string::String>,
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) region: ::std::option::Option<::std::string::String>,
pub(crate) contact_pre_pass_duration_seconds: ::std::option::Option<i32>,
pub(crate) contact_post_pass_duration_seconds: ::std::option::Option<i32>,
pub(crate) minimum_viable_contact_duration_seconds: ::std::option::Option<i32>,
pub(crate) dataflow_edges: ::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>,
pub(crate) tracking_config_arn: ::std::option::Option<::std::string::String>,
pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
pub(crate) streams_kms_key: ::std::option::Option<crate::types::KmsKey>,
pub(crate) streams_kms_role: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl GetMissionProfileOutputBuilder {
pub fn mission_profile_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.mission_profile_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_mission_profile_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.mission_profile_id = input;
self
}
pub fn get_mission_profile_id(&self) -> &::std::option::Option<::std::string::String> {
&self.mission_profile_id
}
pub fn mission_profile_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.mission_profile_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_mission_profile_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.mission_profile_arn = input;
self
}
pub fn get_mission_profile_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.mission_profile_arn
}
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
pub fn region(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.region = ::std::option::Option::Some(input.into());
self
}
pub fn set_region(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.region = input;
self
}
pub fn get_region(&self) -> &::std::option::Option<::std::string::String> {
&self.region
}
pub fn contact_pre_pass_duration_seconds(mut self, input: i32) -> Self {
self.contact_pre_pass_duration_seconds = ::std::option::Option::Some(input);
self
}
pub fn set_contact_pre_pass_duration_seconds(mut self, input: ::std::option::Option<i32>) -> Self {
self.contact_pre_pass_duration_seconds = input;
self
}
pub fn get_contact_pre_pass_duration_seconds(&self) -> &::std::option::Option<i32> {
&self.contact_pre_pass_duration_seconds
}
pub fn contact_post_pass_duration_seconds(mut self, input: i32) -> Self {
self.contact_post_pass_duration_seconds = ::std::option::Option::Some(input);
self
}
pub fn set_contact_post_pass_duration_seconds(mut self, input: ::std::option::Option<i32>) -> Self {
self.contact_post_pass_duration_seconds = input;
self
}
pub fn get_contact_post_pass_duration_seconds(&self) -> &::std::option::Option<i32> {
&self.contact_post_pass_duration_seconds
}
pub fn minimum_viable_contact_duration_seconds(mut self, input: i32) -> Self {
self.minimum_viable_contact_duration_seconds = ::std::option::Option::Some(input);
self
}
pub fn set_minimum_viable_contact_duration_seconds(mut self, input: ::std::option::Option<i32>) -> Self {
self.minimum_viable_contact_duration_seconds = input;
self
}
pub fn get_minimum_viable_contact_duration_seconds(&self) -> &::std::option::Option<i32> {
&self.minimum_viable_contact_duration_seconds
}
pub fn dataflow_edges(mut self, input: ::std::vec::Vec<::std::string::String>) -> Self {
let mut v = self.dataflow_edges.unwrap_or_default();
v.push(input);
self.dataflow_edges = ::std::option::Option::Some(v);
self
}
pub fn set_dataflow_edges(mut self, input: ::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>>) -> Self {
self.dataflow_edges = input;
self
}
pub fn get_dataflow_edges(&self) -> &::std::option::Option<::std::vec::Vec<::std::vec::Vec<::std::string::String>>> {
&self.dataflow_edges
}
pub fn tracking_config_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.tracking_config_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_tracking_config_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.tracking_config_arn = input;
self
}
pub fn get_tracking_config_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.tracking_config_arn
}
pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut hash_map = self.tags.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.tags = ::std::option::Option::Some(hash_map);
self
}
pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
self.tags = input;
self
}
pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
&self.tags
}
pub fn streams_kms_key(mut self, input: crate::types::KmsKey) -> Self {
self.streams_kms_key = ::std::option::Option::Some(input);
self
}
pub fn set_streams_kms_key(mut self, input: ::std::option::Option<crate::types::KmsKey>) -> Self {
self.streams_kms_key = input;
self
}
pub fn get_streams_kms_key(&self) -> &::std::option::Option<crate::types::KmsKey> {
&self.streams_kms_key
}
pub fn streams_kms_role(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.streams_kms_role = ::std::option::Option::Some(input.into());
self
}
pub fn set_streams_kms_role(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.streams_kms_role = input;
self
}
pub fn get_streams_kms_role(&self) -> &::std::option::Option<::std::string::String> {
&self.streams_kms_role
}
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_mission_profile::GetMissionProfileOutput {
crate::operation::get_mission_profile::GetMissionProfileOutput {
mission_profile_id: self.mission_profile_id,
mission_profile_arn: self.mission_profile_arn,
name: self.name,
region: self.region,
contact_pre_pass_duration_seconds: self.contact_pre_pass_duration_seconds,
contact_post_pass_duration_seconds: self.contact_post_pass_duration_seconds,
minimum_viable_contact_duration_seconds: self.minimum_viable_contact_duration_seconds,
dataflow_edges: self.dataflow_edges,
tracking_config_arn: self.tracking_config_arn,
tags: self.tags,
streams_kms_key: self.streams_kms_key,
streams_kms_role: self.streams_kms_role,
_request_id: self._request_id,
}
}
}