1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>The object that contains the Docker image URI for either your robot or simulation applications.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Environment {
/// <p>The Docker image URI for either your robot or simulation applications.</p>
pub uri: ::std::option::Option<::std::string::String>,
}
impl Environment {
/// <p>The Docker image URI for either your robot or simulation applications.</p>
pub fn uri(&self) -> ::std::option::Option<&str> {
self.uri.as_deref()
}
}
impl Environment {
/// Creates a new builder-style object to manufacture [`Environment`](crate::types::Environment).
pub fn builder() -> crate::types::builders::EnvironmentBuilder {
crate::types::builders::EnvironmentBuilder::default()
}
}
/// A builder for [`Environment`](crate::types::Environment).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct EnvironmentBuilder {
pub(crate) uri: ::std::option::Option<::std::string::String>,
}
impl EnvironmentBuilder {
/// <p>The Docker image URI for either your robot or simulation applications.</p>
pub fn uri(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.uri = ::std::option::Option::Some(input.into());
self
}
/// <p>The Docker image URI for either your robot or simulation applications.</p>
pub fn set_uri(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.uri = input;
self
}
/// <p>The Docker image URI for either your robot or simulation applications.</p>
pub fn get_uri(&self) -> &::std::option::Option<::std::string::String> {
&self.uri
}
/// Consumes the builder and constructs a [`Environment`](crate::types::Environment).
pub fn build(self) -> crate::types::Environment {
crate::types::Environment { uri: self.uri }
}
}