1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// Request body for UpdateConnectivity.
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateConnectivityInput {
/// <p>The Amazon Resource Name (ARN) of the configuration.</p>
pub cluster_arn: ::std::option::Option<::std::string::String>,
/// <p>Information about the broker access configuration.</p>
pub connectivity_info: ::std::option::Option<crate::types::ConnectivityInfo>,
/// <p>The version of the MSK cluster to update. Cluster versions aren't simple numbers. You can describe an MSK cluster to find its version. When this update operation is successful, it generates a new cluster version.</p>
pub current_version: ::std::option::Option<::std::string::String>,
}
impl UpdateConnectivityInput {
/// <p>The Amazon Resource Name (ARN) of the configuration.</p>
pub fn cluster_arn(&self) -> ::std::option::Option<&str> {
self.cluster_arn.as_deref()
}
/// <p>Information about the broker access configuration.</p>
pub fn connectivity_info(&self) -> ::std::option::Option<&crate::types::ConnectivityInfo> {
self.connectivity_info.as_ref()
}
/// <p>The version of the MSK cluster to update. Cluster versions aren't simple numbers. You can describe an MSK cluster to find its version. When this update operation is successful, it generates a new cluster version.</p>
pub fn current_version(&self) -> ::std::option::Option<&str> {
self.current_version.as_deref()
}
}
impl UpdateConnectivityInput {
/// Creates a new builder-style object to manufacture [`UpdateConnectivityInput`](crate::operation::update_connectivity::UpdateConnectivityInput).
pub fn builder() -> crate::operation::update_connectivity::builders::UpdateConnectivityInputBuilder {
crate::operation::update_connectivity::builders::UpdateConnectivityInputBuilder::default()
}
}
/// A builder for [`UpdateConnectivityInput`](crate::operation::update_connectivity::UpdateConnectivityInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct UpdateConnectivityInputBuilder {
pub(crate) cluster_arn: ::std::option::Option<::std::string::String>,
pub(crate) connectivity_info: ::std::option::Option<crate::types::ConnectivityInfo>,
pub(crate) current_version: ::std::option::Option<::std::string::String>,
}
impl UpdateConnectivityInputBuilder {
/// <p>The Amazon Resource Name (ARN) of the configuration.</p>
/// This field is required.
pub fn cluster_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.cluster_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the configuration.</p>
pub fn set_cluster_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.cluster_arn = input;
self
}
/// <p>The Amazon Resource Name (ARN) of the configuration.</p>
pub fn get_cluster_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.cluster_arn
}
/// <p>Information about the broker access configuration.</p>
/// This field is required.
pub fn connectivity_info(mut self, input: crate::types::ConnectivityInfo) -> Self {
self.connectivity_info = ::std::option::Option::Some(input);
self
}
/// <p>Information about the broker access configuration.</p>
pub fn set_connectivity_info(mut self, input: ::std::option::Option<crate::types::ConnectivityInfo>) -> Self {
self.connectivity_info = input;
self
}
/// <p>Information about the broker access configuration.</p>
pub fn get_connectivity_info(&self) -> &::std::option::Option<crate::types::ConnectivityInfo> {
&self.connectivity_info
}
/// <p>The version of the MSK cluster to update. Cluster versions aren't simple numbers. You can describe an MSK cluster to find its version. When this update operation is successful, it generates a new cluster version.</p>
/// This field is required.
pub fn current_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.current_version = ::std::option::Option::Some(input.into());
self
}
/// <p>The version of the MSK cluster to update. Cluster versions aren't simple numbers. You can describe an MSK cluster to find its version. When this update operation is successful, it generates a new cluster version.</p>
pub fn set_current_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.current_version = input;
self
}
/// <p>The version of the MSK cluster to update. Cluster versions aren't simple numbers. You can describe an MSK cluster to find its version. When this update operation is successful, it generates a new cluster version.</p>
pub fn get_current_version(&self) -> &::std::option::Option<::std::string::String> {
&self.current_version
}
/// Consumes the builder and constructs a [`UpdateConnectivityInput`](crate::operation::update_connectivity::UpdateConnectivityInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_connectivity::UpdateConnectivityInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::update_connectivity::UpdateConnectivityInput {
cluster_arn: self.cluster_arn,
connectivity_info: self.connectivity_info,
current_version: self.current_version,
})
}
}