aws_sdk_glacier/types/
_output_location.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>Contains information about the location where the select job results are stored.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct OutputLocation {
7    /// <p>Describes an S3 location that will receive the results of the job request.</p>
8    pub s3: ::std::option::Option<crate::types::S3Location>,
9}
10impl OutputLocation {
11    /// <p>Describes an S3 location that will receive the results of the job request.</p>
12    pub fn s3(&self) -> ::std::option::Option<&crate::types::S3Location> {
13        self.s3.as_ref()
14    }
15}
16impl OutputLocation {
17    /// Creates a new builder-style object to manufacture [`OutputLocation`](crate::types::OutputLocation).
18    pub fn builder() -> crate::types::builders::OutputLocationBuilder {
19        crate::types::builders::OutputLocationBuilder::default()
20    }
21}
22
23/// A builder for [`OutputLocation`](crate::types::OutputLocation).
24#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
25#[non_exhaustive]
26pub struct OutputLocationBuilder {
27    pub(crate) s3: ::std::option::Option<crate::types::S3Location>,
28}
29impl OutputLocationBuilder {
30    /// <p>Describes an S3 location that will receive the results of the job request.</p>
31    pub fn s3(mut self, input: crate::types::S3Location) -> Self {
32        self.s3 = ::std::option::Option::Some(input);
33        self
34    }
35    /// <p>Describes an S3 location that will receive the results of the job request.</p>
36    pub fn set_s3(mut self, input: ::std::option::Option<crate::types::S3Location>) -> Self {
37        self.s3 = input;
38        self
39    }
40    /// <p>Describes an S3 location that will receive the results of the job request.</p>
41    pub fn get_s3(&self) -> &::std::option::Option<crate::types::S3Location> {
42        &self.s3
43    }
44    /// Consumes the builder and constructs a [`OutputLocation`](crate::types::OutputLocation).
45    pub fn build(self) -> crate::types::OutputLocation {
46        crate::types::OutputLocation { s3: self.s3 }
47    }
48}