pub struct DescribeClusterResponseBuilder { /* private fields */ }
Expand description
Builder for DescribeClusterResponse
.
Implementations§
source§impl DescribeClusterResponseBuilder
impl DescribeClusterResponseBuilder
sourcepub fn throttle_time_ms(&mut self, value: i32) -> &mut Self
pub fn throttle_time_ms(&mut self, value: i32) -> &mut Self
The duration in milliseconds for which the request was throttled due to a quota violation, or zero if the request did not violate any quota.
Supported API versions: 0-1
sourcepub fn error_code(&mut self, value: i16) -> &mut Self
pub fn error_code(&mut self, value: i16) -> &mut Self
The top-level error code, or 0 if there was no error
Supported API versions: 0-1
sourcepub fn error_message(&mut self, value: Option<StrBytes>) -> &mut Self
pub fn error_message(&mut self, value: Option<StrBytes>) -> &mut Self
The top-level error message, or null if there was no error.
Supported API versions: 0-1
sourcepub fn endpoint_type(&mut self, value: i8) -> &mut Self
pub fn endpoint_type(&mut self, value: i8) -> &mut Self
The endpoint type that was described. 1=brokers, 2=controllers.
Supported API versions: 1
sourcepub fn cluster_id(&mut self, value: StrBytes) -> &mut Self
pub fn cluster_id(&mut self, value: StrBytes) -> &mut Self
The cluster ID that responding broker belongs to.
Supported API versions: 0-1
sourcepub fn controller_id(&mut self, value: BrokerId) -> &mut Self
pub fn controller_id(&mut self, value: BrokerId) -> &mut Self
The ID of the controller broker.
Supported API versions: 0-1
sourcepub fn brokers(
&mut self,
value: IndexMap<BrokerId, DescribeClusterBroker>
) -> &mut Self
pub fn brokers( &mut self, value: IndexMap<BrokerId, DescribeClusterBroker> ) -> &mut Self
Each broker in the response.
Supported API versions: 0-1
32-bit bitfield to represent authorized operations for this cluster.
Supported API versions: 0-1
sourcepub fn unknown_tagged_fields(
&mut self,
value: BTreeMap<i32, Bytes>
) -> &mut Self
pub fn unknown_tagged_fields( &mut self, value: BTreeMap<i32, Bytes> ) -> &mut Self
Other tagged fields
sourcepub fn build(
&self
) -> Result<DescribeClusterResponse, DescribeClusterResponseBuilderError>
pub fn build( &self ) -> Result<DescribeClusterResponse, DescribeClusterResponseBuilderError>
Trait Implementations§
source§impl Clone for DescribeClusterResponseBuilder
impl Clone for DescribeClusterResponseBuilder
source§fn clone(&self) -> DescribeClusterResponseBuilder
fn clone(&self) -> DescribeClusterResponseBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more