#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct UpdateLaunchProfileInput {
pub client_token: ::std::option::Option<::std::string::String>,
pub description: ::std::option::Option<::std::string::String>,
pub launch_profile_id: ::std::option::Option<::std::string::String>,
pub launch_profile_protocol_versions: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub name: ::std::option::Option<::std::string::String>,
pub stream_configuration: ::std::option::Option<crate::types::StreamConfigurationCreate>,
pub studio_component_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub studio_id: ::std::option::Option<::std::string::String>,
}
impl UpdateLaunchProfileInput {
pub fn client_token(&self) -> ::std::option::Option<&str> {
self.client_token.as_deref()
}
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
pub fn launch_profile_id(&self) -> ::std::option::Option<&str> {
self.launch_profile_id.as_deref()
}
pub fn launch_profile_protocol_versions(&self) -> &[::std::string::String] {
self.launch_profile_protocol_versions.as_deref().unwrap_or_default()
}
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
pub fn stream_configuration(&self) -> ::std::option::Option<&crate::types::StreamConfigurationCreate> {
self.stream_configuration.as_ref()
}
pub fn studio_component_ids(&self) -> &[::std::string::String] {
self.studio_component_ids.as_deref().unwrap_or_default()
}
pub fn studio_id(&self) -> ::std::option::Option<&str> {
self.studio_id.as_deref()
}
}
impl ::std::fmt::Debug for UpdateLaunchProfileInput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("UpdateLaunchProfileInput");
formatter.field("client_token", &self.client_token);
formatter.field("description", &"*** Sensitive Data Redacted ***");
formatter.field("launch_profile_id", &self.launch_profile_id);
formatter.field("launch_profile_protocol_versions", &self.launch_profile_protocol_versions);
formatter.field("name", &"*** Sensitive Data Redacted ***");
formatter.field("stream_configuration", &self.stream_configuration);
formatter.field("studio_component_ids", &self.studio_component_ids);
formatter.field("studio_id", &self.studio_id);
formatter.finish()
}
}
impl UpdateLaunchProfileInput {
pub fn builder() -> crate::operation::update_launch_profile::builders::UpdateLaunchProfileInputBuilder {
crate::operation::update_launch_profile::builders::UpdateLaunchProfileInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct UpdateLaunchProfileInputBuilder {
pub(crate) client_token: ::std::option::Option<::std::string::String>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) launch_profile_id: ::std::option::Option<::std::string::String>,
pub(crate) launch_profile_protocol_versions: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) stream_configuration: ::std::option::Option<crate::types::StreamConfigurationCreate>,
pub(crate) studio_component_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) studio_id: ::std::option::Option<::std::string::String>,
}
impl UpdateLaunchProfileInputBuilder {
pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.client_token = ::std::option::Option::Some(input.into());
self
}
pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.client_token = input;
self
}
pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
&self.client_token
}
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
pub fn launch_profile_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.launch_profile_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_launch_profile_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.launch_profile_id = input;
self
}
pub fn get_launch_profile_id(&self) -> &::std::option::Option<::std::string::String> {
&self.launch_profile_id
}
pub fn launch_profile_protocol_versions(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.launch_profile_protocol_versions.unwrap_or_default();
v.push(input.into());
self.launch_profile_protocol_versions = ::std::option::Option::Some(v);
self
}
pub fn set_launch_profile_protocol_versions(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.launch_profile_protocol_versions = input;
self
}
pub fn get_launch_profile_protocol_versions(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.launch_profile_protocol_versions
}
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 stream_configuration(mut self, input: crate::types::StreamConfigurationCreate) -> Self {
self.stream_configuration = ::std::option::Option::Some(input);
self
}
pub fn set_stream_configuration(mut self, input: ::std::option::Option<crate::types::StreamConfigurationCreate>) -> Self {
self.stream_configuration = input;
self
}
pub fn get_stream_configuration(&self) -> &::std::option::Option<crate::types::StreamConfigurationCreate> {
&self.stream_configuration
}
pub fn studio_component_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.studio_component_ids.unwrap_or_default();
v.push(input.into());
self.studio_component_ids = ::std::option::Option::Some(v);
self
}
pub fn set_studio_component_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.studio_component_ids = input;
self
}
pub fn get_studio_component_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.studio_component_ids
}
pub fn studio_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.studio_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_studio_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.studio_id = input;
self
}
pub fn get_studio_id(&self) -> &::std::option::Option<::std::string::String> {
&self.studio_id
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_launch_profile::UpdateLaunchProfileInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::update_launch_profile::UpdateLaunchProfileInput {
client_token: self.client_token,
description: self.description,
launch_profile_id: self.launch_profile_id,
launch_profile_protocol_versions: self.launch_profile_protocol_versions,
name: self.name,
stream_configuration: self.stream_configuration,
studio_component_ids: self.studio_component_ids,
studio_id: self.studio_id,
})
}
}
impl ::std::fmt::Debug for UpdateLaunchProfileInputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("UpdateLaunchProfileInputBuilder");
formatter.field("client_token", &self.client_token);
formatter.field("description", &"*** Sensitive Data Redacted ***");
formatter.field("launch_profile_id", &self.launch_profile_id);
formatter.field("launch_profile_protocol_versions", &self.launch_profile_protocol_versions);
formatter.field("name", &"*** Sensitive Data Redacted ***");
formatter.field("stream_configuration", &self.stream_configuration);
formatter.field("studio_component_ids", &self.studio_component_ids);
formatter.field("studio_id", &self.studio_id);
formatter.finish()
}
}