aws_sdk_gamelift/operation/update_script/_update_script_output.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct UpdateScriptOutput {
6 /// <p>The newly created script record with a unique script ID. The new script's storage location reflects an Amazon S3 location: (1) If the script was uploaded from an S3 bucket under your account, the storage location reflects the information that was provided in the <i>CreateScript</i> request; (2) If the script file was uploaded from a local zip file, the storage location reflects an S3 location controls by the Amazon GameLift Servers service.</p>
7 pub script: ::std::option::Option<crate::types::Script>,
8 _request_id: Option<String>,
9}
10impl UpdateScriptOutput {
11 /// <p>The newly created script record with a unique script ID. The new script's storage location reflects an Amazon S3 location: (1) If the script was uploaded from an S3 bucket under your account, the storage location reflects the information that was provided in the <i>CreateScript</i> request; (2) If the script file was uploaded from a local zip file, the storage location reflects an S3 location controls by the Amazon GameLift Servers service.</p>
12 pub fn script(&self) -> ::std::option::Option<&crate::types::Script> {
13 self.script.as_ref()
14 }
15}
16impl ::aws_types::request_id::RequestId for UpdateScriptOutput {
17 fn request_id(&self) -> Option<&str> {
18 self._request_id.as_deref()
19 }
20}
21impl UpdateScriptOutput {
22 /// Creates a new builder-style object to manufacture [`UpdateScriptOutput`](crate::operation::update_script::UpdateScriptOutput).
23 pub fn builder() -> crate::operation::update_script::builders::UpdateScriptOutputBuilder {
24 crate::operation::update_script::builders::UpdateScriptOutputBuilder::default()
25 }
26}
27
28/// A builder for [`UpdateScriptOutput`](crate::operation::update_script::UpdateScriptOutput).
29#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
30#[non_exhaustive]
31pub struct UpdateScriptOutputBuilder {
32 pub(crate) script: ::std::option::Option<crate::types::Script>,
33 _request_id: Option<String>,
34}
35impl UpdateScriptOutputBuilder {
36 /// <p>The newly created script record with a unique script ID. The new script's storage location reflects an Amazon S3 location: (1) If the script was uploaded from an S3 bucket under your account, the storage location reflects the information that was provided in the <i>CreateScript</i> request; (2) If the script file was uploaded from a local zip file, the storage location reflects an S3 location controls by the Amazon GameLift Servers service.</p>
37 pub fn script(mut self, input: crate::types::Script) -> Self {
38 self.script = ::std::option::Option::Some(input);
39 self
40 }
41 /// <p>The newly created script record with a unique script ID. The new script's storage location reflects an Amazon S3 location: (1) If the script was uploaded from an S3 bucket under your account, the storage location reflects the information that was provided in the <i>CreateScript</i> request; (2) If the script file was uploaded from a local zip file, the storage location reflects an S3 location controls by the Amazon GameLift Servers service.</p>
42 pub fn set_script(mut self, input: ::std::option::Option<crate::types::Script>) -> Self {
43 self.script = input;
44 self
45 }
46 /// <p>The newly created script record with a unique script ID. The new script's storage location reflects an Amazon S3 location: (1) If the script was uploaded from an S3 bucket under your account, the storage location reflects the information that was provided in the <i>CreateScript</i> request; (2) If the script file was uploaded from a local zip file, the storage location reflects an S3 location controls by the Amazon GameLift Servers service.</p>
47 pub fn get_script(&self) -> &::std::option::Option<crate::types::Script> {
48 &self.script
49 }
50 pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
51 self._request_id = Some(request_id.into());
52 self
53 }
54
55 pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
56 self._request_id = request_id;
57 self
58 }
59 /// Consumes the builder and constructs a [`UpdateScriptOutput`](crate::operation::update_script::UpdateScriptOutput).
60 pub fn build(self) -> crate::operation::update_script::UpdateScriptOutput {
61 crate::operation::update_script::UpdateScriptOutput {
62 script: self.script,
63 _request_id: self._request_id,
64 }
65 }
66}