aws_sdk_cloudfront/operation/get_realtime_log_config/
_get_realtime_log_config_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct GetRealtimeLogConfigInput {
6 pub name: ::std::option::Option<::std::string::String>,
8 pub arn: ::std::option::Option<::std::string::String>,
10}
11impl GetRealtimeLogConfigInput {
12 pub fn name(&self) -> ::std::option::Option<&str> {
14 self.name.as_deref()
15 }
16 pub fn arn(&self) -> ::std::option::Option<&str> {
18 self.arn.as_deref()
19 }
20}
21impl GetRealtimeLogConfigInput {
22 pub fn builder() -> crate::operation::get_realtime_log_config::builders::GetRealtimeLogConfigInputBuilder {
24 crate::operation::get_realtime_log_config::builders::GetRealtimeLogConfigInputBuilder::default()
25 }
26}
27
28#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
30#[non_exhaustive]
31pub struct GetRealtimeLogConfigInputBuilder {
32 pub(crate) name: ::std::option::Option<::std::string::String>,
33 pub(crate) arn: ::std::option::Option<::std::string::String>,
34}
35impl GetRealtimeLogConfigInputBuilder {
36 pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
38 self.name = ::std::option::Option::Some(input.into());
39 self
40 }
41 pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
43 self.name = input;
44 self
45 }
46 pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
48 &self.name
49 }
50 pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
52 self.arn = ::std::option::Option::Some(input.into());
53 self
54 }
55 pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
57 self.arn = input;
58 self
59 }
60 pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
62 &self.arn
63 }
64 pub fn build(
66 self,
67 ) -> ::std::result::Result<crate::operation::get_realtime_log_config::GetRealtimeLogConfigInput, ::aws_smithy_types::error::operation::BuildError>
68 {
69 ::std::result::Result::Ok(crate::operation::get_realtime_log_config::GetRealtimeLogConfigInput {
70 name: self.name,
71 arn: self.arn,
72 })
73 }
74}