aws_sdk_evidently/operation/start_launch/
_start_launch_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct StartLaunchInput {
6 pub project: ::std::option::Option<::std::string::String>,
8 pub launch: ::std::option::Option<::std::string::String>,
10}
11impl StartLaunchInput {
12 pub fn project(&self) -> ::std::option::Option<&str> {
14 self.project.as_deref()
15 }
16 pub fn launch(&self) -> ::std::option::Option<&str> {
18 self.launch.as_deref()
19 }
20}
21impl StartLaunchInput {
22 pub fn builder() -> crate::operation::start_launch::builders::StartLaunchInputBuilder {
24 crate::operation::start_launch::builders::StartLaunchInputBuilder::default()
25 }
26}
27
28#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
30#[non_exhaustive]
31pub struct StartLaunchInputBuilder {
32 pub(crate) project: ::std::option::Option<::std::string::String>,
33 pub(crate) launch: ::std::option::Option<::std::string::String>,
34}
35impl StartLaunchInputBuilder {
36 pub fn project(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
39 self.project = ::std::option::Option::Some(input.into());
40 self
41 }
42 pub fn set_project(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
44 self.project = input;
45 self
46 }
47 pub fn get_project(&self) -> &::std::option::Option<::std::string::String> {
49 &self.project
50 }
51 pub fn launch(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
54 self.launch = ::std::option::Option::Some(input.into());
55 self
56 }
57 pub fn set_launch(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
59 self.launch = input;
60 self
61 }
62 pub fn get_launch(&self) -> &::std::option::Option<::std::string::String> {
64 &self.launch
65 }
66 pub fn build(self) -> ::std::result::Result<crate::operation::start_launch::StartLaunchInput, ::aws_smithy_types::error::operation::BuildError> {
68 ::std::result::Result::Ok(crate::operation::start_launch::StartLaunchInput {
69 project: self.project,
70 launch: self.launch,
71 })
72 }
73}