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 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DescribeBrokerOutput {
/// <p>A list of actions required for a broker.</p>
#[doc(hidden)]
pub actions_required: std::option::Option<std::vec::Vec<crate::types::ActionRequired>>,
/// <p>The authentication strategy used to secure the broker. The default is SIMPLE.</p>
#[doc(hidden)]
pub authentication_strategy: std::option::Option<crate::types::AuthenticationStrategy>,
/// <p>Enables automatic upgrades to new minor versions for brokers, as new versions are released and supported by Amazon MQ. Automatic upgrades occur during the scheduled maintenance window of the broker or after a manual broker reboot.</p>
#[doc(hidden)]
pub auto_minor_version_upgrade: bool,
/// <p>The broker's Amazon Resource Name (ARN).</p>
#[doc(hidden)]
pub broker_arn: std::option::Option<std::string::String>,
/// <p>The unique ID that Amazon MQ generates for the broker.</p>
#[doc(hidden)]
pub broker_id: std::option::Option<std::string::String>,
/// <p>A list of information about allocated brokers.</p>
#[doc(hidden)]
pub broker_instances: std::option::Option<std::vec::Vec<crate::types::BrokerInstance>>,
/// <p>The broker's name. This value must be unique in your AWS account, 1-50 characters long, must contain only letters, numbers, dashes, and underscores, and must not contain white spaces, brackets, wildcard characters, or special characters.</p>
#[doc(hidden)]
pub broker_name: std::option::Option<std::string::String>,
/// <p>The broker's status.</p>
#[doc(hidden)]
pub broker_state: std::option::Option<crate::types::BrokerState>,
/// <p>The list of all revisions for the specified configuration.</p>
#[doc(hidden)]
pub configurations: std::option::Option<crate::types::Configurations>,
/// <p>The time when the broker was created.</p>
#[doc(hidden)]
pub created: std::option::Option<aws_smithy_types::DateTime>,
/// <p>The broker's deployment mode.</p>
#[doc(hidden)]
pub deployment_mode: std::option::Option<crate::types::DeploymentMode>,
/// <p>Encryption options for the broker. Does not apply to RabbitMQ brokers.</p>
#[doc(hidden)]
pub encryption_options: std::option::Option<crate::types::EncryptionOptions>,
/// <p>The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ.</p>
#[doc(hidden)]
pub engine_type: std::option::Option<crate::types::EngineType>,
/// <p>The broker engine's version. For a list of supported engine versions, see <a href="https://docs.aws.amazon.com//amazon-mq/latest/developer-guide/broker-engine.html">Supported engines</a>.</p>
#[doc(hidden)]
pub engine_version: std::option::Option<std::string::String>,
/// <p>The broker's instance type.</p>
#[doc(hidden)]
pub host_instance_type: std::option::Option<std::string::String>,
/// <p>The metadata of the LDAP server used to authenticate and authorize connections to the broker.</p>
#[doc(hidden)]
pub ldap_server_metadata: std::option::Option<crate::types::LdapServerMetadataOutput>,
/// <p>The list of information about logs currently enabled and pending to be deployed for the specified broker.</p>
#[doc(hidden)]
pub logs: std::option::Option<crate::types::LogsSummary>,
/// <p>The parameters that determine the WeeklyStartTime.</p>
#[doc(hidden)]
pub maintenance_window_start_time: std::option::Option<crate::types::WeeklyStartTime>,
/// <p>The authentication strategy that will be applied when the broker is rebooted. The default is SIMPLE.</p>
#[doc(hidden)]
pub pending_authentication_strategy: std::option::Option<crate::types::AuthenticationStrategy>,
/// <p>The broker engine version to upgrade to. For a list of supported engine versions, see <a href="https://docs.aws.amazon.com//amazon-mq/latest/developer-guide/broker-engine.html">Supported engines</a>.</p>
#[doc(hidden)]
pub pending_engine_version: std::option::Option<std::string::String>,
/// <p>The broker's host instance type to upgrade to. For a list of supported instance types, see <a href="https://docs.aws.amazon.com//amazon-mq/latest/developer-guide/broker.html#broker-instance-types">Broker instance types</a>.</p>
#[doc(hidden)]
pub pending_host_instance_type: std::option::Option<std::string::String>,
/// <p>The metadata of the LDAP server that will be used to authenticate and authorize connections to the broker after it is rebooted.</p>
#[doc(hidden)]
pub pending_ldap_server_metadata: std::option::Option<crate::types::LdapServerMetadataOutput>,
/// <p>The list of pending security groups to authorize connections to brokers.</p>
#[doc(hidden)]
pub pending_security_groups: std::option::Option<std::vec::Vec<std::string::String>>,
/// <p>Enables connections from applications outside of the VPC that hosts the broker's subnets.</p>
#[doc(hidden)]
pub publicly_accessible: bool,
/// <p>The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.</p>
#[doc(hidden)]
pub security_groups: std::option::Option<std::vec::Vec<std::string::String>>,
/// <p>The broker's storage type.</p>
#[doc(hidden)]
pub storage_type: std::option::Option<crate::types::BrokerStorageType>,
/// <p>The list of groups that define which subnets and IP ranges the broker can use from different Availability Zones.</p>
#[doc(hidden)]
pub subnet_ids: std::option::Option<std::vec::Vec<std::string::String>>,
/// <p>The list of all tags associated with this broker.</p>
#[doc(hidden)]
pub tags:
std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
/// <p>The list of all broker usernames for the specified broker.</p>
#[doc(hidden)]
pub users: std::option::Option<std::vec::Vec<crate::types::UserSummary>>,
_request_id: Option<String>,
}
impl DescribeBrokerOutput {
/// <p>A list of actions required for a broker.</p>
pub fn actions_required(&self) -> std::option::Option<&[crate::types::ActionRequired]> {
self.actions_required.as_deref()
}
/// <p>The authentication strategy used to secure the broker. The default is SIMPLE.</p>
pub fn authentication_strategy(
&self,
) -> std::option::Option<&crate::types::AuthenticationStrategy> {
self.authentication_strategy.as_ref()
}
/// <p>Enables automatic upgrades to new minor versions for brokers, as new versions are released and supported by Amazon MQ. Automatic upgrades occur during the scheduled maintenance window of the broker or after a manual broker reboot.</p>
pub fn auto_minor_version_upgrade(&self) -> bool {
self.auto_minor_version_upgrade
}
/// <p>The broker's Amazon Resource Name (ARN).</p>
pub fn broker_arn(&self) -> std::option::Option<&str> {
self.broker_arn.as_deref()
}
/// <p>The unique ID that Amazon MQ generates for the broker.</p>
pub fn broker_id(&self) -> std::option::Option<&str> {
self.broker_id.as_deref()
}
/// <p>A list of information about allocated brokers.</p>
pub fn broker_instances(&self) -> std::option::Option<&[crate::types::BrokerInstance]> {
self.broker_instances.as_deref()
}
/// <p>The broker's name. This value must be unique in your AWS account, 1-50 characters long, must contain only letters, numbers, dashes, and underscores, and must not contain white spaces, brackets, wildcard characters, or special characters.</p>
pub fn broker_name(&self) -> std::option::Option<&str> {
self.broker_name.as_deref()
}
/// <p>The broker's status.</p>
pub fn broker_state(&self) -> std::option::Option<&crate::types::BrokerState> {
self.broker_state.as_ref()
}
/// <p>The list of all revisions for the specified configuration.</p>
pub fn configurations(&self) -> std::option::Option<&crate::types::Configurations> {
self.configurations.as_ref()
}
/// <p>The time when the broker was created.</p>
pub fn created(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.created.as_ref()
}
/// <p>The broker's deployment mode.</p>
pub fn deployment_mode(&self) -> std::option::Option<&crate::types::DeploymentMode> {
self.deployment_mode.as_ref()
}
/// <p>Encryption options for the broker. Does not apply to RabbitMQ brokers.</p>
pub fn encryption_options(&self) -> std::option::Option<&crate::types::EncryptionOptions> {
self.encryption_options.as_ref()
}
/// <p>The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ.</p>
pub fn engine_type(&self) -> std::option::Option<&crate::types::EngineType> {
self.engine_type.as_ref()
}
/// <p>The broker engine's version. For a list of supported engine versions, see <a href="https://docs.aws.amazon.com//amazon-mq/latest/developer-guide/broker-engine.html">Supported engines</a>.</p>
pub fn engine_version(&self) -> std::option::Option<&str> {
self.engine_version.as_deref()
}
/// <p>The broker's instance type.</p>
pub fn host_instance_type(&self) -> std::option::Option<&str> {
self.host_instance_type.as_deref()
}
/// <p>The metadata of the LDAP server used to authenticate and authorize connections to the broker.</p>
pub fn ldap_server_metadata(
&self,
) -> std::option::Option<&crate::types::LdapServerMetadataOutput> {
self.ldap_server_metadata.as_ref()
}
/// <p>The list of information about logs currently enabled and pending to be deployed for the specified broker.</p>
pub fn logs(&self) -> std::option::Option<&crate::types::LogsSummary> {
self.logs.as_ref()
}
/// <p>The parameters that determine the WeeklyStartTime.</p>
pub fn maintenance_window_start_time(
&self,
) -> std::option::Option<&crate::types::WeeklyStartTime> {
self.maintenance_window_start_time.as_ref()
}
/// <p>The authentication strategy that will be applied when the broker is rebooted. The default is SIMPLE.</p>
pub fn pending_authentication_strategy(
&self,
) -> std::option::Option<&crate::types::AuthenticationStrategy> {
self.pending_authentication_strategy.as_ref()
}
/// <p>The broker engine version to upgrade to. For a list of supported engine versions, see <a href="https://docs.aws.amazon.com//amazon-mq/latest/developer-guide/broker-engine.html">Supported engines</a>.</p>
pub fn pending_engine_version(&self) -> std::option::Option<&str> {
self.pending_engine_version.as_deref()
}
/// <p>The broker's host instance type to upgrade to. For a list of supported instance types, see <a href="https://docs.aws.amazon.com//amazon-mq/latest/developer-guide/broker.html#broker-instance-types">Broker instance types</a>.</p>
pub fn pending_host_instance_type(&self) -> std::option::Option<&str> {
self.pending_host_instance_type.as_deref()
}
/// <p>The metadata of the LDAP server that will be used to authenticate and authorize connections to the broker after it is rebooted.</p>
pub fn pending_ldap_server_metadata(
&self,
) -> std::option::Option<&crate::types::LdapServerMetadataOutput> {
self.pending_ldap_server_metadata.as_ref()
}
/// <p>The list of pending security groups to authorize connections to brokers.</p>
pub fn pending_security_groups(&self) -> std::option::Option<&[std::string::String]> {
self.pending_security_groups.as_deref()
}
/// <p>Enables connections from applications outside of the VPC that hosts the broker's subnets.</p>
pub fn publicly_accessible(&self) -> bool {
self.publicly_accessible
}
/// <p>The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.</p>
pub fn security_groups(&self) -> std::option::Option<&[std::string::String]> {
self.security_groups.as_deref()
}
/// <p>The broker's storage type.</p>
pub fn storage_type(&self) -> std::option::Option<&crate::types::BrokerStorageType> {
self.storage_type.as_ref()
}
/// <p>The list of groups that define which subnets and IP ranges the broker can use from different Availability Zones.</p>
pub fn subnet_ids(&self) -> std::option::Option<&[std::string::String]> {
self.subnet_ids.as_deref()
}
/// <p>The list of all tags associated with this broker.</p>
pub fn tags(
&self,
) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
{
self.tags.as_ref()
}
/// <p>The list of all broker usernames for the specified broker.</p>
pub fn users(&self) -> std::option::Option<&[crate::types::UserSummary]> {
self.users.as_deref()
}
}
impl aws_http::request_id::RequestId for DescribeBrokerOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DescribeBrokerOutput {
/// Creates a new builder-style object to manufacture [`DescribeBrokerOutput`](crate::operation::describe_broker::DescribeBrokerOutput).
pub fn builder() -> crate::operation::describe_broker::builders::DescribeBrokerOutputBuilder {
crate::operation::describe_broker::builders::DescribeBrokerOutputBuilder::default()
}
}
/// A builder for [`DescribeBrokerOutput`](crate::operation::describe_broker::DescribeBrokerOutput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DescribeBrokerOutputBuilder {
pub(crate) actions_required: std::option::Option<std::vec::Vec<crate::types::ActionRequired>>,
pub(crate) authentication_strategy: std::option::Option<crate::types::AuthenticationStrategy>,
pub(crate) auto_minor_version_upgrade: std::option::Option<bool>,
pub(crate) broker_arn: std::option::Option<std::string::String>,
pub(crate) broker_id: std::option::Option<std::string::String>,
pub(crate) broker_instances: std::option::Option<std::vec::Vec<crate::types::BrokerInstance>>,
pub(crate) broker_name: std::option::Option<std::string::String>,
pub(crate) broker_state: std::option::Option<crate::types::BrokerState>,
pub(crate) configurations: std::option::Option<crate::types::Configurations>,
pub(crate) created: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) deployment_mode: std::option::Option<crate::types::DeploymentMode>,
pub(crate) encryption_options: std::option::Option<crate::types::EncryptionOptions>,
pub(crate) engine_type: std::option::Option<crate::types::EngineType>,
pub(crate) engine_version: std::option::Option<std::string::String>,
pub(crate) host_instance_type: std::option::Option<std::string::String>,
pub(crate) ldap_server_metadata: std::option::Option<crate::types::LdapServerMetadataOutput>,
pub(crate) logs: std::option::Option<crate::types::LogsSummary>,
pub(crate) maintenance_window_start_time: std::option::Option<crate::types::WeeklyStartTime>,
pub(crate) pending_authentication_strategy:
std::option::Option<crate::types::AuthenticationStrategy>,
pub(crate) pending_engine_version: std::option::Option<std::string::String>,
pub(crate) pending_host_instance_type: std::option::Option<std::string::String>,
pub(crate) pending_ldap_server_metadata:
std::option::Option<crate::types::LdapServerMetadataOutput>,
pub(crate) pending_security_groups: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) publicly_accessible: std::option::Option<bool>,
pub(crate) security_groups: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) storage_type: std::option::Option<crate::types::BrokerStorageType>,
pub(crate) subnet_ids: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) tags:
std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
pub(crate) users: std::option::Option<std::vec::Vec<crate::types::UserSummary>>,
_request_id: Option<String>,
}
impl DescribeBrokerOutputBuilder {
/// Appends an item to `actions_required`.
///
/// To override the contents of this collection use [`set_actions_required`](Self::set_actions_required).
///
/// <p>A list of actions required for a broker.</p>
pub fn actions_required(mut self, input: crate::types::ActionRequired) -> Self {
let mut v = self.actions_required.unwrap_or_default();
v.push(input);
self.actions_required = Some(v);
self
}
/// <p>A list of actions required for a broker.</p>
pub fn set_actions_required(
mut self,
input: std::option::Option<std::vec::Vec<crate::types::ActionRequired>>,
) -> Self {
self.actions_required = input;
self
}
/// <p>The authentication strategy used to secure the broker. The default is SIMPLE.</p>
pub fn authentication_strategy(mut self, input: crate::types::AuthenticationStrategy) -> Self {
self.authentication_strategy = Some(input);
self
}
/// <p>The authentication strategy used to secure the broker. The default is SIMPLE.</p>
pub fn set_authentication_strategy(
mut self,
input: std::option::Option<crate::types::AuthenticationStrategy>,
) -> Self {
self.authentication_strategy = input;
self
}
/// <p>Enables automatic upgrades to new minor versions for brokers, as new versions are released and supported by Amazon MQ. Automatic upgrades occur during the scheduled maintenance window of the broker or after a manual broker reboot.</p>
pub fn auto_minor_version_upgrade(mut self, input: bool) -> Self {
self.auto_minor_version_upgrade = Some(input);
self
}
/// <p>Enables automatic upgrades to new minor versions for brokers, as new versions are released and supported by Amazon MQ. Automatic upgrades occur during the scheduled maintenance window of the broker or after a manual broker reboot.</p>
pub fn set_auto_minor_version_upgrade(mut self, input: std::option::Option<bool>) -> Self {
self.auto_minor_version_upgrade = input;
self
}
/// <p>The broker's Amazon Resource Name (ARN).</p>
pub fn broker_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.broker_arn = Some(input.into());
self
}
/// <p>The broker's Amazon Resource Name (ARN).</p>
pub fn set_broker_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.broker_arn = input;
self
}
/// <p>The unique ID that Amazon MQ generates for the broker.</p>
pub fn broker_id(mut self, input: impl Into<std::string::String>) -> Self {
self.broker_id = Some(input.into());
self
}
/// <p>The unique ID that Amazon MQ generates for the broker.</p>
pub fn set_broker_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.broker_id = input;
self
}
/// Appends an item to `broker_instances`.
///
/// To override the contents of this collection use [`set_broker_instances`](Self::set_broker_instances).
///
/// <p>A list of information about allocated brokers.</p>
pub fn broker_instances(mut self, input: crate::types::BrokerInstance) -> Self {
let mut v = self.broker_instances.unwrap_or_default();
v.push(input);
self.broker_instances = Some(v);
self
}
/// <p>A list of information about allocated brokers.</p>
pub fn set_broker_instances(
mut self,
input: std::option::Option<std::vec::Vec<crate::types::BrokerInstance>>,
) -> Self {
self.broker_instances = input;
self
}
/// <p>The broker's name. This value must be unique in your AWS account, 1-50 characters long, must contain only letters, numbers, dashes, and underscores, and must not contain white spaces, brackets, wildcard characters, or special characters.</p>
pub fn broker_name(mut self, input: impl Into<std::string::String>) -> Self {
self.broker_name = Some(input.into());
self
}
/// <p>The broker's name. This value must be unique in your AWS account, 1-50 characters long, must contain only letters, numbers, dashes, and underscores, and must not contain white spaces, brackets, wildcard characters, or special characters.</p>
pub fn set_broker_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.broker_name = input;
self
}
/// <p>The broker's status.</p>
pub fn broker_state(mut self, input: crate::types::BrokerState) -> Self {
self.broker_state = Some(input);
self
}
/// <p>The broker's status.</p>
pub fn set_broker_state(
mut self,
input: std::option::Option<crate::types::BrokerState>,
) -> Self {
self.broker_state = input;
self
}
/// <p>The list of all revisions for the specified configuration.</p>
pub fn configurations(mut self, input: crate::types::Configurations) -> Self {
self.configurations = Some(input);
self
}
/// <p>The list of all revisions for the specified configuration.</p>
pub fn set_configurations(
mut self,
input: std::option::Option<crate::types::Configurations>,
) -> Self {
self.configurations = input;
self
}
/// <p>The time when the broker was created.</p>
pub fn created(mut self, input: aws_smithy_types::DateTime) -> Self {
self.created = Some(input);
self
}
/// <p>The time when the broker was created.</p>
pub fn set_created(mut self, input: std::option::Option<aws_smithy_types::DateTime>) -> Self {
self.created = input;
self
}
/// <p>The broker's deployment mode.</p>
pub fn deployment_mode(mut self, input: crate::types::DeploymentMode) -> Self {
self.deployment_mode = Some(input);
self
}
/// <p>The broker's deployment mode.</p>
pub fn set_deployment_mode(
mut self,
input: std::option::Option<crate::types::DeploymentMode>,
) -> Self {
self.deployment_mode = input;
self
}
/// <p>Encryption options for the broker. Does not apply to RabbitMQ brokers.</p>
pub fn encryption_options(mut self, input: crate::types::EncryptionOptions) -> Self {
self.encryption_options = Some(input);
self
}
/// <p>Encryption options for the broker. Does not apply to RabbitMQ brokers.</p>
pub fn set_encryption_options(
mut self,
input: std::option::Option<crate::types::EncryptionOptions>,
) -> Self {
self.encryption_options = input;
self
}
/// <p>The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ.</p>
pub fn engine_type(mut self, input: crate::types::EngineType) -> Self {
self.engine_type = Some(input);
self
}
/// <p>The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ.</p>
pub fn set_engine_type(mut self, input: std::option::Option<crate::types::EngineType>) -> Self {
self.engine_type = input;
self
}
/// <p>The broker engine's version. For a list of supported engine versions, see <a href="https://docs.aws.amazon.com//amazon-mq/latest/developer-guide/broker-engine.html">Supported engines</a>.</p>
pub fn engine_version(mut self, input: impl Into<std::string::String>) -> Self {
self.engine_version = Some(input.into());
self
}
/// <p>The broker engine's version. For a list of supported engine versions, see <a href="https://docs.aws.amazon.com//amazon-mq/latest/developer-guide/broker-engine.html">Supported engines</a>.</p>
pub fn set_engine_version(mut self, input: std::option::Option<std::string::String>) -> Self {
self.engine_version = input;
self
}
/// <p>The broker's instance type.</p>
pub fn host_instance_type(mut self, input: impl Into<std::string::String>) -> Self {
self.host_instance_type = Some(input.into());
self
}
/// <p>The broker's instance type.</p>
pub fn set_host_instance_type(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.host_instance_type = input;
self
}
/// <p>The metadata of the LDAP server used to authenticate and authorize connections to the broker.</p>
pub fn ldap_server_metadata(mut self, input: crate::types::LdapServerMetadataOutput) -> Self {
self.ldap_server_metadata = Some(input);
self
}
/// <p>The metadata of the LDAP server used to authenticate and authorize connections to the broker.</p>
pub fn set_ldap_server_metadata(
mut self,
input: std::option::Option<crate::types::LdapServerMetadataOutput>,
) -> Self {
self.ldap_server_metadata = input;
self
}
/// <p>The list of information about logs currently enabled and pending to be deployed for the specified broker.</p>
pub fn logs(mut self, input: crate::types::LogsSummary) -> Self {
self.logs = Some(input);
self
}
/// <p>The list of information about logs currently enabled and pending to be deployed for the specified broker.</p>
pub fn set_logs(mut self, input: std::option::Option<crate::types::LogsSummary>) -> Self {
self.logs = input;
self
}
/// <p>The parameters that determine the WeeklyStartTime.</p>
pub fn maintenance_window_start_time(mut self, input: crate::types::WeeklyStartTime) -> Self {
self.maintenance_window_start_time = Some(input);
self
}
/// <p>The parameters that determine the WeeklyStartTime.</p>
pub fn set_maintenance_window_start_time(
mut self,
input: std::option::Option<crate::types::WeeklyStartTime>,
) -> Self {
self.maintenance_window_start_time = input;
self
}
/// <p>The authentication strategy that will be applied when the broker is rebooted. The default is SIMPLE.</p>
pub fn pending_authentication_strategy(
mut self,
input: crate::types::AuthenticationStrategy,
) -> Self {
self.pending_authentication_strategy = Some(input);
self
}
/// <p>The authentication strategy that will be applied when the broker is rebooted. The default is SIMPLE.</p>
pub fn set_pending_authentication_strategy(
mut self,
input: std::option::Option<crate::types::AuthenticationStrategy>,
) -> Self {
self.pending_authentication_strategy = input;
self
}
/// <p>The broker engine version to upgrade to. For a list of supported engine versions, see <a href="https://docs.aws.amazon.com//amazon-mq/latest/developer-guide/broker-engine.html">Supported engines</a>.</p>
pub fn pending_engine_version(mut self, input: impl Into<std::string::String>) -> Self {
self.pending_engine_version = Some(input.into());
self
}
/// <p>The broker engine version to upgrade to. For a list of supported engine versions, see <a href="https://docs.aws.amazon.com//amazon-mq/latest/developer-guide/broker-engine.html">Supported engines</a>.</p>
pub fn set_pending_engine_version(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.pending_engine_version = input;
self
}
/// <p>The broker's host instance type to upgrade to. For a list of supported instance types, see <a href="https://docs.aws.amazon.com//amazon-mq/latest/developer-guide/broker.html#broker-instance-types">Broker instance types</a>.</p>
pub fn pending_host_instance_type(mut self, input: impl Into<std::string::String>) -> Self {
self.pending_host_instance_type = Some(input.into());
self
}
/// <p>The broker's host instance type to upgrade to. For a list of supported instance types, see <a href="https://docs.aws.amazon.com//amazon-mq/latest/developer-guide/broker.html#broker-instance-types">Broker instance types</a>.</p>
pub fn set_pending_host_instance_type(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.pending_host_instance_type = input;
self
}
/// <p>The metadata of the LDAP server that will be used to authenticate and authorize connections to the broker after it is rebooted.</p>
pub fn pending_ldap_server_metadata(
mut self,
input: crate::types::LdapServerMetadataOutput,
) -> Self {
self.pending_ldap_server_metadata = Some(input);
self
}
/// <p>The metadata of the LDAP server that will be used to authenticate and authorize connections to the broker after it is rebooted.</p>
pub fn set_pending_ldap_server_metadata(
mut self,
input: std::option::Option<crate::types::LdapServerMetadataOutput>,
) -> Self {
self.pending_ldap_server_metadata = input;
self
}
/// Appends an item to `pending_security_groups`.
///
/// To override the contents of this collection use [`set_pending_security_groups`](Self::set_pending_security_groups).
///
/// <p>The list of pending security groups to authorize connections to brokers.</p>
pub fn pending_security_groups(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.pending_security_groups.unwrap_or_default();
v.push(input.into());
self.pending_security_groups = Some(v);
self
}
/// <p>The list of pending security groups to authorize connections to brokers.</p>
pub fn set_pending_security_groups(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.pending_security_groups = input;
self
}
/// <p>Enables connections from applications outside of the VPC that hosts the broker's subnets.</p>
pub fn publicly_accessible(mut self, input: bool) -> Self {
self.publicly_accessible = Some(input);
self
}
/// <p>Enables connections from applications outside of the VPC that hosts the broker's subnets.</p>
pub fn set_publicly_accessible(mut self, input: std::option::Option<bool>) -> Self {
self.publicly_accessible = input;
self
}
/// Appends an item to `security_groups`.
///
/// To override the contents of this collection use [`set_security_groups`](Self::set_security_groups).
///
/// <p>The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.</p>
pub fn security_groups(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.security_groups.unwrap_or_default();
v.push(input.into());
self.security_groups = Some(v);
self
}
/// <p>The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.</p>
pub fn set_security_groups(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.security_groups = input;
self
}
/// <p>The broker's storage type.</p>
pub fn storage_type(mut self, input: crate::types::BrokerStorageType) -> Self {
self.storage_type = Some(input);
self
}
/// <p>The broker's storage type.</p>
pub fn set_storage_type(
mut self,
input: std::option::Option<crate::types::BrokerStorageType>,
) -> Self {
self.storage_type = input;
self
}
/// Appends an item to `subnet_ids`.
///
/// To override the contents of this collection use [`set_subnet_ids`](Self::set_subnet_ids).
///
/// <p>The list of groups that define which subnets and IP ranges the broker can use from different Availability Zones.</p>
pub fn subnet_ids(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.subnet_ids.unwrap_or_default();
v.push(input.into());
self.subnet_ids = Some(v);
self
}
/// <p>The list of groups that define which subnets and IP ranges the broker can use from different Availability Zones.</p>
pub fn set_subnet_ids(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.subnet_ids = input;
self
}
/// Adds a key-value pair to `tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>The list of all tags associated with this broker.</p>
pub fn tags(
mut self,
k: impl Into<std::string::String>,
v: impl Into<std::string::String>,
) -> Self {
let mut hash_map = self.tags.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.tags = Some(hash_map);
self
}
/// <p>The list of all tags associated with this broker.</p>
pub fn set_tags(
mut self,
input: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
) -> Self {
self.tags = input;
self
}
/// Appends an item to `users`.
///
/// To override the contents of this collection use [`set_users`](Self::set_users).
///
/// <p>The list of all broker usernames for the specified broker.</p>
pub fn users(mut self, input: crate::types::UserSummary) -> Self {
let mut v = self.users.unwrap_or_default();
v.push(input);
self.users = Some(v);
self
}
/// <p>The list of all broker usernames for the specified broker.</p>
pub fn set_users(
mut self,
input: std::option::Option<std::vec::Vec<crate::types::UserSummary>>,
) -> Self {
self.users = input;
self
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
/// Consumes the builder and constructs a [`DescribeBrokerOutput`](crate::operation::describe_broker::DescribeBrokerOutput).
pub fn build(self) -> crate::operation::describe_broker::DescribeBrokerOutput {
crate::operation::describe_broker::DescribeBrokerOutput {
actions_required: self.actions_required,
authentication_strategy: self.authentication_strategy,
auto_minor_version_upgrade: self.auto_minor_version_upgrade.unwrap_or_default(),
broker_arn: self.broker_arn,
broker_id: self.broker_id,
broker_instances: self.broker_instances,
broker_name: self.broker_name,
broker_state: self.broker_state,
configurations: self.configurations,
created: self.created,
deployment_mode: self.deployment_mode,
encryption_options: self.encryption_options,
engine_type: self.engine_type,
engine_version: self.engine_version,
host_instance_type: self.host_instance_type,
ldap_server_metadata: self.ldap_server_metadata,
logs: self.logs,
maintenance_window_start_time: self.maintenance_window_start_time,
pending_authentication_strategy: self.pending_authentication_strategy,
pending_engine_version: self.pending_engine_version,
pending_host_instance_type: self.pending_host_instance_type,
pending_ldap_server_metadata: self.pending_ldap_server_metadata,
pending_security_groups: self.pending_security_groups,
publicly_accessible: self.publicly_accessible.unwrap_or_default(),
security_groups: self.security_groups,
storage_type: self.storage_type,
subnet_ids: self.subnet_ids,
tags: self.tags,
users: self.users,
_request_id: self._request_id,
}
}
}