aws_db_esdk/deps/aws_cryptography_primitives/types/
_generate_random_bytes_input.rs1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6#[allow(missing_docs)]
7pub struct GenerateRandomBytesInput {
8 #[allow(missing_docs)]
9 pub length: ::std::option::Option<::std::primitive::i32>,
10}
11impl GenerateRandomBytesInput {
12 #[allow(missing_docs)]
13 pub fn length(&self) -> &::std::option::Option<::std::primitive::i32> {
14 &self.length
15 }
16}
17impl GenerateRandomBytesInput {
18 pub fn builder(
20 ) -> crate::deps::aws_cryptography_primitives::types::builders::GenerateRandomBytesInputBuilder
21 {
22 crate::deps::aws_cryptography_primitives::types::builders::GenerateRandomBytesInputBuilder::default()
23 }
24}
25
26#[non_exhaustive]
28#[derive(
29 ::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug,
30)]
31pub struct GenerateRandomBytesInputBuilder {
32 pub(crate) length: ::std::option::Option<::std::primitive::i32>,
33}
34impl GenerateRandomBytesInputBuilder {
35 #[allow(missing_docs)]
36 pub fn length(mut self, input: impl ::std::convert::Into<::std::primitive::i32>) -> Self {
37 self.length = ::std::option::Option::Some(input.into());
38 self
39 }
40 #[allow(missing_docs)]
41 pub fn set_length(mut self, input: ::std::option::Option<::std::primitive::i32>) -> Self {
42 self.length = input;
43 self
44 }
45 #[allow(missing_docs)]
46 pub fn get_length(&self) -> &::std::option::Option<::std::primitive::i32> {
47 &self.length
48 }
49 pub fn build(
51 self,
52 ) -> ::std::result::Result<
53 crate::deps::aws_cryptography_primitives::types::GenerateRandomBytesInput,
54 ::aws_smithy_types::error::operation::BuildError,
55 > {
56 ::std::result::Result::Ok(
57 crate::deps::aws_cryptography_primitives::types::GenerateRandomBytesInput {
58 length: self.length,
59 },
60 )
61 }
62}