aws_sdk_apigateway/operation/get_sdk/
_get_sdk_output.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>The binary blob response to GetSdk, which contains the generated SDK.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct GetSdkOutput {
7    /// <p>The content-type header value in the HTTP response.</p>
8    pub content_type: ::std::option::Option<::std::string::String>,
9    /// <p>The content-disposition header value in the HTTP response.</p>
10    pub content_disposition: ::std::option::Option<::std::string::String>,
11    /// <p>The binary blob response to GetSdk, which contains the generated SDK.</p>
12    pub body: ::std::option::Option<::aws_smithy_types::Blob>,
13    _request_id: Option<String>,
14}
15impl GetSdkOutput {
16    /// <p>The content-type header value in the HTTP response.</p>
17    pub fn content_type(&self) -> ::std::option::Option<&str> {
18        self.content_type.as_deref()
19    }
20    /// <p>The content-disposition header value in the HTTP response.</p>
21    pub fn content_disposition(&self) -> ::std::option::Option<&str> {
22        self.content_disposition.as_deref()
23    }
24    /// <p>The binary blob response to GetSdk, which contains the generated SDK.</p>
25    pub fn body(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
26        self.body.as_ref()
27    }
28}
29impl ::aws_types::request_id::RequestId for GetSdkOutput {
30    fn request_id(&self) -> Option<&str> {
31        self._request_id.as_deref()
32    }
33}
34impl GetSdkOutput {
35    /// Creates a new builder-style object to manufacture [`GetSdkOutput`](crate::operation::get_sdk::GetSdkOutput).
36    pub fn builder() -> crate::operation::get_sdk::builders::GetSdkOutputBuilder {
37        crate::operation::get_sdk::builders::GetSdkOutputBuilder::default()
38    }
39}
40
41/// A builder for [`GetSdkOutput`](crate::operation::get_sdk::GetSdkOutput).
42#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
43#[non_exhaustive]
44pub struct GetSdkOutputBuilder {
45    pub(crate) content_type: ::std::option::Option<::std::string::String>,
46    pub(crate) content_disposition: ::std::option::Option<::std::string::String>,
47    pub(crate) body: ::std::option::Option<::aws_smithy_types::Blob>,
48    _request_id: Option<String>,
49}
50impl GetSdkOutputBuilder {
51    /// <p>The content-type header value in the HTTP response.</p>
52    pub fn content_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
53        self.content_type = ::std::option::Option::Some(input.into());
54        self
55    }
56    /// <p>The content-type header value in the HTTP response.</p>
57    pub fn set_content_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
58        self.content_type = input;
59        self
60    }
61    /// <p>The content-type header value in the HTTP response.</p>
62    pub fn get_content_type(&self) -> &::std::option::Option<::std::string::String> {
63        &self.content_type
64    }
65    /// <p>The content-disposition header value in the HTTP response.</p>
66    pub fn content_disposition(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
67        self.content_disposition = ::std::option::Option::Some(input.into());
68        self
69    }
70    /// <p>The content-disposition header value in the HTTP response.</p>
71    pub fn set_content_disposition(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
72        self.content_disposition = input;
73        self
74    }
75    /// <p>The content-disposition header value in the HTTP response.</p>
76    pub fn get_content_disposition(&self) -> &::std::option::Option<::std::string::String> {
77        &self.content_disposition
78    }
79    /// <p>The binary blob response to GetSdk, which contains the generated SDK.</p>
80    pub fn body(mut self, input: ::aws_smithy_types::Blob) -> Self {
81        self.body = ::std::option::Option::Some(input);
82        self
83    }
84    /// <p>The binary blob response to GetSdk, which contains the generated SDK.</p>
85    pub fn set_body(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
86        self.body = input;
87        self
88    }
89    /// <p>The binary blob response to GetSdk, which contains the generated SDK.</p>
90    pub fn get_body(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
91        &self.body
92    }
93    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
94        self._request_id = Some(request_id.into());
95        self
96    }
97
98    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
99        self._request_id = request_id;
100        self
101    }
102    /// Consumes the builder and constructs a [`GetSdkOutput`](crate::operation::get_sdk::GetSdkOutput).
103    pub fn build(self) -> crate::operation::get_sdk::GetSdkOutput {
104        crate::operation::get_sdk::GetSdkOutput {
105            content_type: self.content_type,
106            content_disposition: self.content_disposition,
107            body: self.body,
108            _request_id: self._request_id,
109        }
110    }
111}