aws_sdk_drs/types/
_licensing.rs1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct Licensing {
7 pub os_byol: ::std::option::Option<bool>,
9}
10impl Licensing {
11 pub fn os_byol(&self) -> ::std::option::Option<bool> {
13 self.os_byol
14 }
15}
16impl Licensing {
17 pub fn builder() -> crate::types::builders::LicensingBuilder {
19 crate::types::builders::LicensingBuilder::default()
20 }
21}
22
23#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
25#[non_exhaustive]
26pub struct LicensingBuilder {
27 pub(crate) os_byol: ::std::option::Option<bool>,
28}
29impl LicensingBuilder {
30 pub fn os_byol(mut self, input: bool) -> Self {
32 self.os_byol = ::std::option::Option::Some(input);
33 self
34 }
35 pub fn set_os_byol(mut self, input: ::std::option::Option<bool>) -> Self {
37 self.os_byol = input;
38 self
39 }
40 pub fn get_os_byol(&self) -> &::std::option::Option<bool> {
42 &self.os_byol
43 }
44 pub fn build(self) -> crate::types::Licensing {
46 crate::types::Licensing { os_byol: self.os_byol }
47 }
48}