aws_sdk_apigateway/operation/get_sdk/
_get_sdk_output.rs1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct GetSdkOutput {
7 pub content_type: ::std::option::Option<::std::string::String>,
9 pub content_disposition: ::std::option::Option<::std::string::String>,
11 pub body: ::std::option::Option<::aws_smithy_types::Blob>,
13 _request_id: Option<String>,
14}
15impl GetSdkOutput {
16 pub fn content_type(&self) -> ::std::option::Option<&str> {
18 self.content_type.as_deref()
19 }
20 pub fn content_disposition(&self) -> ::std::option::Option<&str> {
22 self.content_disposition.as_deref()
23 }
24 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 pub fn builder() -> crate::operation::get_sdk::builders::GetSdkOutputBuilder {
37 crate::operation::get_sdk::builders::GetSdkOutputBuilder::default()
38 }
39}
40
41#[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 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 pub fn set_content_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
58 self.content_type = input;
59 self
60 }
61 pub fn get_content_type(&self) -> &::std::option::Option<::std::string::String> {
63 &self.content_type
64 }
65 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 pub fn set_content_disposition(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
72 self.content_disposition = input;
73 self
74 }
75 pub fn get_content_disposition(&self) -> &::std::option::Option<::std::string::String> {
77 &self.content_disposition
78 }
79 pub fn body(mut self, input: ::aws_smithy_types::Blob) -> Self {
81 self.body = ::std::option::Option::Some(input);
82 self
83 }
84 pub fn set_body(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
86 self.body = input;
87 self
88 }
89 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 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}