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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateStreamingUrlInput {
/// <p>The name of the stack.</p>
pub stack_name: ::std::option::Option<::std::string::String>,
/// <p>The name of the fleet.</p>
pub fleet_name: ::std::option::Option<::std::string::String>,
/// <p>The identifier of the user.</p>
pub user_id: ::std::option::Option<::std::string::String>,
/// <p>The name of the application to launch after the session starts. This is the name that you specified as <b>Name</b> in the Image Assistant. If your fleet is enabled for the <b>Desktop</b> stream view, you can also choose to launch directly to the operating system desktop. To do so, specify <b>Desktop</b>.</p>
pub application_id: ::std::option::Option<::std::string::String>,
/// <p>The time that the streaming URL will be valid, in seconds. Specify a value between 1 and 604800 seconds. The default is 60 seconds.</p>
pub validity: ::std::option::Option<i64>,
/// <p>The session context. For more information, see <a href="https://docs.aws.amazon.com/appstream2/latest/developerguide/managing-stacks-fleets.html#managing-stacks-fleets-parameters">Session Context</a> in the <i>Amazon WorkSpaces Applications Administration Guide</i>.</p>
pub session_context: ::std::option::Option<::std::string::String>,
}
impl CreateStreamingUrlInput {
/// <p>The name of the stack.</p>
pub fn stack_name(&self) -> ::std::option::Option<&str> {
self.stack_name.as_deref()
}
/// <p>The name of the fleet.</p>
pub fn fleet_name(&self) -> ::std::option::Option<&str> {
self.fleet_name.as_deref()
}
/// <p>The identifier of the user.</p>
pub fn user_id(&self) -> ::std::option::Option<&str> {
self.user_id.as_deref()
}
/// <p>The name of the application to launch after the session starts. This is the name that you specified as <b>Name</b> in the Image Assistant. If your fleet is enabled for the <b>Desktop</b> stream view, you can also choose to launch directly to the operating system desktop. To do so, specify <b>Desktop</b>.</p>
pub fn application_id(&self) -> ::std::option::Option<&str> {
self.application_id.as_deref()
}
/// <p>The time that the streaming URL will be valid, in seconds. Specify a value between 1 and 604800 seconds. The default is 60 seconds.</p>
pub fn validity(&self) -> ::std::option::Option<i64> {
self.validity
}
/// <p>The session context. For more information, see <a href="https://docs.aws.amazon.com/appstream2/latest/developerguide/managing-stacks-fleets.html#managing-stacks-fleets-parameters">Session Context</a> in the <i>Amazon WorkSpaces Applications Administration Guide</i>.</p>
pub fn session_context(&self) -> ::std::option::Option<&str> {
self.session_context.as_deref()
}
}
impl CreateStreamingUrlInput {
/// Creates a new builder-style object to manufacture [`CreateStreamingUrlInput`](crate::operation::create_streaming_url::CreateStreamingUrlInput).
pub fn builder() -> crate::operation::create_streaming_url::builders::CreateStreamingUrlInputBuilder {
crate::operation::create_streaming_url::builders::CreateStreamingUrlInputBuilder::default()
}
}
/// A builder for [`CreateStreamingUrlInput`](crate::operation::create_streaming_url::CreateStreamingUrlInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateStreamingUrlInputBuilder {
pub(crate) stack_name: ::std::option::Option<::std::string::String>,
pub(crate) fleet_name: ::std::option::Option<::std::string::String>,
pub(crate) user_id: ::std::option::Option<::std::string::String>,
pub(crate) application_id: ::std::option::Option<::std::string::String>,
pub(crate) validity: ::std::option::Option<i64>,
pub(crate) session_context: ::std::option::Option<::std::string::String>,
}
impl CreateStreamingUrlInputBuilder {
/// <p>The name of the stack.</p>
/// This field is required.
pub fn stack_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.stack_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the stack.</p>
pub fn set_stack_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.stack_name = input;
self
}
/// <p>The name of the stack.</p>
pub fn get_stack_name(&self) -> &::std::option::Option<::std::string::String> {
&self.stack_name
}
/// <p>The name of the fleet.</p>
/// This field is required.
pub fn fleet_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.fleet_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the fleet.</p>
pub fn set_fleet_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.fleet_name = input;
self
}
/// <p>The name of the fleet.</p>
pub fn get_fleet_name(&self) -> &::std::option::Option<::std::string::String> {
&self.fleet_name
}
/// <p>The identifier of the user.</p>
/// This field is required.
pub fn user_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.user_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The identifier of the user.</p>
pub fn set_user_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.user_id = input;
self
}
/// <p>The identifier of the user.</p>
pub fn get_user_id(&self) -> &::std::option::Option<::std::string::String> {
&self.user_id
}
/// <p>The name of the application to launch after the session starts. This is the name that you specified as <b>Name</b> in the Image Assistant. If your fleet is enabled for the <b>Desktop</b> stream view, you can also choose to launch directly to the operating system desktop. To do so, specify <b>Desktop</b>.</p>
pub fn application_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.application_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the application to launch after the session starts. This is the name that you specified as <b>Name</b> in the Image Assistant. If your fleet is enabled for the <b>Desktop</b> stream view, you can also choose to launch directly to the operating system desktop. To do so, specify <b>Desktop</b>.</p>
pub fn set_application_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.application_id = input;
self
}
/// <p>The name of the application to launch after the session starts. This is the name that you specified as <b>Name</b> in the Image Assistant. If your fleet is enabled for the <b>Desktop</b> stream view, you can also choose to launch directly to the operating system desktop. To do so, specify <b>Desktop</b>.</p>
pub fn get_application_id(&self) -> &::std::option::Option<::std::string::String> {
&self.application_id
}
/// <p>The time that the streaming URL will be valid, in seconds. Specify a value between 1 and 604800 seconds. The default is 60 seconds.</p>
pub fn validity(mut self, input: i64) -> Self {
self.validity = ::std::option::Option::Some(input);
self
}
/// <p>The time that the streaming URL will be valid, in seconds. Specify a value between 1 and 604800 seconds. The default is 60 seconds.</p>
pub fn set_validity(mut self, input: ::std::option::Option<i64>) -> Self {
self.validity = input;
self
}
/// <p>The time that the streaming URL will be valid, in seconds. Specify a value between 1 and 604800 seconds. The default is 60 seconds.</p>
pub fn get_validity(&self) -> &::std::option::Option<i64> {
&self.validity
}
/// <p>The session context. For more information, see <a href="https://docs.aws.amazon.com/appstream2/latest/developerguide/managing-stacks-fleets.html#managing-stacks-fleets-parameters">Session Context</a> in the <i>Amazon WorkSpaces Applications Administration Guide</i>.</p>
pub fn session_context(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.session_context = ::std::option::Option::Some(input.into());
self
}
/// <p>The session context. For more information, see <a href="https://docs.aws.amazon.com/appstream2/latest/developerguide/managing-stacks-fleets.html#managing-stacks-fleets-parameters">Session Context</a> in the <i>Amazon WorkSpaces Applications Administration Guide</i>.</p>
pub fn set_session_context(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.session_context = input;
self
}
/// <p>The session context. For more information, see <a href="https://docs.aws.amazon.com/appstream2/latest/developerguide/managing-stacks-fleets.html#managing-stacks-fleets-parameters">Session Context</a> in the <i>Amazon WorkSpaces Applications Administration Guide</i>.</p>
pub fn get_session_context(&self) -> &::std::option::Option<::std::string::String> {
&self.session_context
}
/// Consumes the builder and constructs a [`CreateStreamingUrlInput`](crate::operation::create_streaming_url::CreateStreamingUrlInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::create_streaming_url::CreateStreamingUrlInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::create_streaming_url::CreateStreamingUrlInput {
stack_name: self.stack_name,
fleet_name: self.fleet_name,
user_id: self.user_id,
application_id: self.application_id,
validity: self.validity,
session_context: self.session_context,
})
}
}