aws_sdk_kafka/operation/update_configuration/_update_configuration_input.rs
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)]
5pub struct UpdateConfigurationInput {
6 /// <p>The Amazon Resource Name (ARN) of the configuration.</p>
7 pub arn: ::std::option::Option<::std::string::String>,
8 /// <p>The description of the configuration revision.</p>
9 pub description: ::std::option::Option<::std::string::String>,
10 /// <p>Contents of the <filename>
11 /// server.properties
12 /// </filename> file. When using the API, you must ensure that the contents of the file are base64 encoded. When using the AWS Management Console, the SDK, or the AWS CLI, the contents of <filename>
13 /// server.properties
14 /// </filename> can be in plaintext.</p>
15 pub server_properties: ::std::option::Option<::aws_smithy_types::Blob>,
16}
17impl UpdateConfigurationInput {
18 /// <p>The Amazon Resource Name (ARN) of the configuration.</p>
19 pub fn arn(&self) -> ::std::option::Option<&str> {
20 self.arn.as_deref()
21 }
22 /// <p>The description of the configuration revision.</p>
23 pub fn description(&self) -> ::std::option::Option<&str> {
24 self.description.as_deref()
25 }
26 /// <p>Contents of the <filename>
27 /// server.properties
28 /// </filename> file. When using the API, you must ensure that the contents of the file are base64 encoded. When using the AWS Management Console, the SDK, or the AWS CLI, the contents of <filename>
29 /// server.properties
30 /// </filename> can be in plaintext.</p>
31 pub fn server_properties(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
32 self.server_properties.as_ref()
33 }
34}
35impl UpdateConfigurationInput {
36 /// Creates a new builder-style object to manufacture [`UpdateConfigurationInput`](crate::operation::update_configuration::UpdateConfigurationInput).
37 pub fn builder() -> crate::operation::update_configuration::builders::UpdateConfigurationInputBuilder {
38 crate::operation::update_configuration::builders::UpdateConfigurationInputBuilder::default()
39 }
40}
41
42/// A builder for [`UpdateConfigurationInput`](crate::operation::update_configuration::UpdateConfigurationInput).
43#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
44#[non_exhaustive]
45pub struct UpdateConfigurationInputBuilder {
46 pub(crate) arn: ::std::option::Option<::std::string::String>,
47 pub(crate) description: ::std::option::Option<::std::string::String>,
48 pub(crate) server_properties: ::std::option::Option<::aws_smithy_types::Blob>,
49}
50impl UpdateConfigurationInputBuilder {
51 /// <p>The Amazon Resource Name (ARN) of the configuration.</p>
52 /// This field is required.
53 pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
54 self.arn = ::std::option::Option::Some(input.into());
55 self
56 }
57 /// <p>The Amazon Resource Name (ARN) of the configuration.</p>
58 pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
59 self.arn = input;
60 self
61 }
62 /// <p>The Amazon Resource Name (ARN) of the configuration.</p>
63 pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
64 &self.arn
65 }
66 /// <p>The description of the configuration revision.</p>
67 pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
68 self.description = ::std::option::Option::Some(input.into());
69 self
70 }
71 /// <p>The description of the configuration revision.</p>
72 pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
73 self.description = input;
74 self
75 }
76 /// <p>The description of the configuration revision.</p>
77 pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
78 &self.description
79 }
80 /// <p>Contents of the <filename>
81 /// server.properties
82 /// </filename> file. When using the API, you must ensure that the contents of the file are base64 encoded. When using the AWS Management Console, the SDK, or the AWS CLI, the contents of <filename>
83 /// server.properties
84 /// </filename> can be in plaintext.</p>
85 /// This field is required.
86 pub fn server_properties(mut self, input: ::aws_smithy_types::Blob) -> Self {
87 self.server_properties = ::std::option::Option::Some(input);
88 self
89 }
90 /// <p>Contents of the <filename>
91 /// server.properties
92 /// </filename> file. When using the API, you must ensure that the contents of the file are base64 encoded. When using the AWS Management Console, the SDK, or the AWS CLI, the contents of <filename>
93 /// server.properties
94 /// </filename> can be in plaintext.</p>
95 pub fn set_server_properties(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
96 self.server_properties = input;
97 self
98 }
99 /// <p>Contents of the <filename>
100 /// server.properties
101 /// </filename> file. When using the API, you must ensure that the contents of the file are base64 encoded. When using the AWS Management Console, the SDK, or the AWS CLI, the contents of <filename>
102 /// server.properties
103 /// </filename> can be in plaintext.</p>
104 pub fn get_server_properties(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
105 &self.server_properties
106 }
107 /// Consumes the builder and constructs a [`UpdateConfigurationInput`](crate::operation::update_configuration::UpdateConfigurationInput).
108 pub fn build(
109 self,
110 ) -> ::std::result::Result<crate::operation::update_configuration::UpdateConfigurationInput, ::aws_smithy_types::error::operation::BuildError>
111 {
112 ::std::result::Result::Ok(crate::operation::update_configuration::UpdateConfigurationInput {
113 arn: self.arn,
114 description: self.description,
115 server_properties: self.server_properties,
116 })
117 }
118}