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)]
|
5 + | pub struct HeadersEvent {
|
6 + | #[allow(missing_docs)] // documentation missing in model
|
7 + | pub boolean_header: ::std::option::Option<bool>,
|
8 + | #[allow(missing_docs)] // documentation missing in model
|
9 + | pub byte_header: ::std::option::Option<i8>,
|
10 + | #[allow(missing_docs)] // documentation missing in model
|
11 + | pub short_header: ::std::option::Option<i16>,
|
12 + | #[allow(missing_docs)] // documentation missing in model
|
13 + | pub int_header: ::std::option::Option<i32>,
|
14 + | #[allow(missing_docs)] // documentation missing in model
|
15 + | pub long_header: ::std::option::Option<i64>,
|
16 + | #[allow(missing_docs)] // documentation missing in model
|
17 + | pub blob_header: ::std::option::Option<::aws_smithy_types::Blob>,
|
18 + | #[allow(missing_docs)] // documentation missing in model
|
19 + | pub string_header: ::std::option::Option<::std::string::String>,
|
20 + | #[allow(missing_docs)] // documentation missing in model
|
21 + | pub timestamp_header: ::std::option::Option<::aws_smithy_types::DateTime>,
|
22 + | }
|
23 + | impl HeadersEvent {
|
24 + | #[allow(missing_docs)] // documentation missing in model
|
25 + | pub fn boolean_header(&self) -> ::std::option::Option<bool> {
|
26 + | self.boolean_header
|
27 + | }
|
28 + | #[allow(missing_docs)] // documentation missing in model
|
29 + | pub fn byte_header(&self) -> ::std::option::Option<i8> {
|
30 + | self.byte_header
|
31 + | }
|
32 + | #[allow(missing_docs)] // documentation missing in model
|
33 + | pub fn short_header(&self) -> ::std::option::Option<i16> {
|
34 + | self.short_header
|
35 + | }
|
36 + | #[allow(missing_docs)] // documentation missing in model
|
37 + | pub fn int_header(&self) -> ::std::option::Option<i32> {
|
38 + | self.int_header
|
39 + | }
|
40 + | #[allow(missing_docs)] // documentation missing in model
|
41 + | pub fn long_header(&self) -> ::std::option::Option<i64> {
|
42 + | self.long_header
|
43 + | }
|
44 + | #[allow(missing_docs)] // documentation missing in model
|
45 + | pub fn blob_header(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
|
46 + | self.blob_header.as_ref()
|
47 + | }
|
48 + | #[allow(missing_docs)] // documentation missing in model
|
49 + | pub fn string_header(&self) -> ::std::option::Option<&str> {
|
50 + | self.string_header.as_deref()
|
51 + | }
|
52 + | #[allow(missing_docs)] // documentation missing in model
|
53 + | pub fn timestamp_header(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
54 + | self.timestamp_header.as_ref()
|
55 + | }
|
56 + | }
|
57 + | impl HeadersEvent {
|
58 + | /// Creates a new builder-style object to manufacture [`HeadersEvent`](crate::types::HeadersEvent).
|
59 + | pub fn builder() -> crate::types::builders::HeadersEventBuilder {
|
60 + | crate::types::builders::HeadersEventBuilder::default()
|
61 + | }
|
62 + | }
|
63 + |
|
64 + | /// A builder for [`HeadersEvent`](crate::types::HeadersEvent).
|
65 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
66 + | #[non_exhaustive]
|
67 + | pub struct HeadersEventBuilder {
|
68 + | pub(crate) boolean_header: ::std::option::Option<bool>,
|
69 + | pub(crate) byte_header: ::std::option::Option<i8>,
|
70 + | pub(crate) short_header: ::std::option::Option<i16>,
|
71 + | pub(crate) int_header: ::std::option::Option<i32>,
|
72 + | pub(crate) long_header: ::std::option::Option<i64>,
|
73 + | pub(crate) blob_header: ::std::option::Option<::aws_smithy_types::Blob>,
|
74 + | pub(crate) string_header: ::std::option::Option<::std::string::String>,
|
75 + | pub(crate) timestamp_header: ::std::option::Option<::aws_smithy_types::DateTime>,
|
76 + | }
|
77 + | impl HeadersEventBuilder {
|
78 + | #[allow(missing_docs)] // documentation missing in model
|
79 + | pub fn boolean_header(mut self, input: bool) -> Self {
|
80 + | self.boolean_header = ::std::option::Option::Some(input);
|
81 + | self
|
82 + | }
|
83 + | #[allow(missing_docs)] // documentation missing in model
|
84 + | pub fn set_boolean_header(mut self, input: ::std::option::Option<bool>) -> Self {
|
85 + | self.boolean_header = input;
|
86 + | self
|
87 + | }
|
88 + | #[allow(missing_docs)] // documentation missing in model
|
89 + | pub fn get_boolean_header(&self) -> &::std::option::Option<bool> {
|
90 + | &self.boolean_header
|
91 + | }
|
92 + | #[allow(missing_docs)] // documentation missing in model
|
93 + | pub fn byte_header(mut self, input: i8) -> Self {
|
94 + | self.byte_header = ::std::option::Option::Some(input);
|
95 + | self
|
96 + | }
|
97 + | #[allow(missing_docs)] // documentation missing in model
|
98 + | pub fn set_byte_header(mut self, input: ::std::option::Option<i8>) -> Self {
|
99 + | self.byte_header = input;
|
100 + | self
|
101 + | }
|
102 + | #[allow(missing_docs)] // documentation missing in model
|
103 + | pub fn get_byte_header(&self) -> &::std::option::Option<i8> {
|
104 + | &self.byte_header
|
105 + | }
|
106 + | #[allow(missing_docs)] // documentation missing in model
|
107 + | pub fn short_header(mut self, input: i16) -> Self {
|
108 + | self.short_header = ::std::option::Option::Some(input);
|
109 + | self
|
110 + | }
|
111 + | #[allow(missing_docs)] // documentation missing in model
|
112 + | pub fn set_short_header(mut self, input: ::std::option::Option<i16>) -> Self {
|
113 + | self.short_header = input;
|
114 + | self
|
115 + | }
|
116 + | #[allow(missing_docs)] // documentation missing in model
|
117 + | pub fn get_short_header(&self) -> &::std::option::Option<i16> {
|
118 + | &self.short_header
|
119 + | }
|
120 + | #[allow(missing_docs)] // documentation missing in model
|
121 + | pub fn int_header(mut self, input: i32) -> Self {
|
122 + | self.int_header = ::std::option::Option::Some(input);
|
123 + | self
|
124 + | }
|
125 + | #[allow(missing_docs)] // documentation missing in model
|
126 + | pub fn set_int_header(mut self, input: ::std::option::Option<i32>) -> Self {
|
127 + | self.int_header = input;
|
128 + | self
|
129 + | }
|
130 + | #[allow(missing_docs)] // documentation missing in model
|
131 + | pub fn get_int_header(&self) -> &::std::option::Option<i32> {
|
132 + | &self.int_header
|
133 + | }
|
134 + | #[allow(missing_docs)] // documentation missing in model
|
135 + | pub fn long_header(mut self, input: i64) -> Self {
|
136 + | self.long_header = ::std::option::Option::Some(input);
|
137 + | self
|
138 + | }
|
139 + | #[allow(missing_docs)] // documentation missing in model
|
140 + | pub fn set_long_header(mut self, input: ::std::option::Option<i64>) -> Self {
|
141 + | self.long_header = input;
|
142 + | self
|
143 + | }
|
144 + | #[allow(missing_docs)] // documentation missing in model
|
145 + | pub fn get_long_header(&self) -> &::std::option::Option<i64> {
|
146 + | &self.long_header
|
147 + | }
|
148 + | #[allow(missing_docs)] // documentation missing in model
|
149 + | pub fn blob_header(mut self, input: ::aws_smithy_types::Blob) -> Self {
|
150 + | self.blob_header = ::std::option::Option::Some(input);
|
151 + | self
|
152 + | }
|
153 + | #[allow(missing_docs)] // documentation missing in model
|
154 + | pub fn set_blob_header(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
|
155 + | self.blob_header = input;
|
156 + | self
|
157 + | }
|
158 + | #[allow(missing_docs)] // documentation missing in model
|
159 + | pub fn get_blob_header(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
|
160 + | &self.blob_header
|
161 + | }
|
162 + | #[allow(missing_docs)] // documentation missing in model
|
163 + | pub fn string_header(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
164 + | self.string_header = ::std::option::Option::Some(input.into());
|
165 + | self
|
166 + | }
|
167 + | #[allow(missing_docs)] // documentation missing in model
|
168 + | pub fn set_string_header(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
169 + | self.string_header = input;
|
170 + | self
|
171 + | }
|
172 + | #[allow(missing_docs)] // documentation missing in model
|
173 + | pub fn get_string_header(&self) -> &::std::option::Option<::std::string::String> {
|
174 + | &self.string_header
|
175 + | }
|
176 + | #[allow(missing_docs)] // documentation missing in model
|
177 + | pub fn timestamp_header(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
178 + | self.timestamp_header = ::std::option::Option::Some(input);
|
179 + | self
|
180 + | }
|
181 + | #[allow(missing_docs)] // documentation missing in model
|
182 + | pub fn set_timestamp_header(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
183 + | self.timestamp_header = input;
|
184 + | self
|
185 + | }
|
186 + | #[allow(missing_docs)] // documentation missing in model
|
187 + | pub fn get_timestamp_header(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
188 + | &self.timestamp_header
|
189 + | }
|
190 + | /// Consumes the builder and constructs a [`HeadersEvent`](crate::types::HeadersEvent).
|
191 + | pub fn build(self) -> crate::types::HeadersEvent {
|
192 + | crate::types::HeadersEvent {
|
193 + | boolean_header: self.boolean_header,
|
194 + | byte_header: self.byte_header,
|
195 + | short_header: self.short_header,
|
196 + | int_header: self.int_header,
|
197 + | long_header: self.long_header,
|
198 + | blob_header: self.blob_header,
|
199 + | string_header: self.string_header,
|
200 + | timestamp_header: self.timestamp_header,
|
201 + | }
|
202 + | }
|
203 + | }
|