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 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075
// 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 UntagQueueOutput {}
/// See [`UntagQueueOutput`](crate::output::UntagQueueOutput).
pub mod untag_queue_output {
/// A builder for [`UntagQueueOutput`](crate::output::UntagQueueOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`UntagQueueOutput`](crate::output::UntagQueueOutput).
pub fn build(self) -> crate::output::UntagQueueOutput {
crate::output::UntagQueueOutput {}
}
}
}
impl UntagQueueOutput {
/// Creates a new builder-style object to manufacture [`UntagQueueOutput`](crate::output::UntagQueueOutput).
pub fn builder() -> crate::output::untag_queue_output::Builder {
crate::output::untag_queue_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TagQueueOutput {}
/// See [`TagQueueOutput`](crate::output::TagQueueOutput).
pub mod tag_queue_output {
/// A builder for [`TagQueueOutput`](crate::output::TagQueueOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`TagQueueOutput`](crate::output::TagQueueOutput).
pub fn build(self) -> crate::output::TagQueueOutput {
crate::output::TagQueueOutput {}
}
}
}
impl TagQueueOutput {
/// Creates a new builder-style object to manufacture [`TagQueueOutput`](crate::output::TagQueueOutput).
pub fn builder() -> crate::output::tag_queue_output::Builder {
crate::output::tag_queue_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct SetQueueAttributesOutput {}
/// See [`SetQueueAttributesOutput`](crate::output::SetQueueAttributesOutput).
pub mod set_queue_attributes_output {
/// A builder for [`SetQueueAttributesOutput`](crate::output::SetQueueAttributesOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`SetQueueAttributesOutput`](crate::output::SetQueueAttributesOutput).
pub fn build(self) -> crate::output::SetQueueAttributesOutput {
crate::output::SetQueueAttributesOutput {}
}
}
}
impl SetQueueAttributesOutput {
/// Creates a new builder-style object to manufacture [`SetQueueAttributesOutput`](crate::output::SetQueueAttributesOutput).
pub fn builder() -> crate::output::set_queue_attributes_output::Builder {
crate::output::set_queue_attributes_output::Builder::default()
}
}
/// <p>For each message in the batch, the response contains a <code> <code>SendMessageBatchResultEntry</code> </code> tag if the message succeeds or a <code> <code>BatchResultErrorEntry</code> </code> tag if the message fails.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct SendMessageBatchOutput {
/// <p>A list of <code> <code>SendMessageBatchResultEntry</code> </code> items.</p>
#[doc(hidden)]
pub successful: std::option::Option<std::vec::Vec<crate::model::SendMessageBatchResultEntry>>,
/// <p>A list of <code> <code>BatchResultErrorEntry</code> </code> items with error details about each message that can't be enqueued.</p>
#[doc(hidden)]
pub failed: std::option::Option<std::vec::Vec<crate::model::BatchResultErrorEntry>>,
}
impl SendMessageBatchOutput {
/// <p>A list of <code> <code>SendMessageBatchResultEntry</code> </code> items.</p>
pub fn successful(&self) -> std::option::Option<&[crate::model::SendMessageBatchResultEntry]> {
self.successful.as_deref()
}
/// <p>A list of <code> <code>BatchResultErrorEntry</code> </code> items with error details about each message that can't be enqueued.</p>
pub fn failed(&self) -> std::option::Option<&[crate::model::BatchResultErrorEntry]> {
self.failed.as_deref()
}
}
/// See [`SendMessageBatchOutput`](crate::output::SendMessageBatchOutput).
pub mod send_message_batch_output {
/// A builder for [`SendMessageBatchOutput`](crate::output::SendMessageBatchOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) successful:
std::option::Option<std::vec::Vec<crate::model::SendMessageBatchResultEntry>>,
pub(crate) failed: std::option::Option<std::vec::Vec<crate::model::BatchResultErrorEntry>>,
}
impl Builder {
/// Appends an item to `successful`.
///
/// To override the contents of this collection use [`set_successful`](Self::set_successful).
///
/// <p>A list of <code> <code>SendMessageBatchResultEntry</code> </code> items.</p>
pub fn successful(mut self, input: crate::model::SendMessageBatchResultEntry) -> Self {
let mut v = self.successful.unwrap_or_default();
v.push(input);
self.successful = Some(v);
self
}
/// <p>A list of <code> <code>SendMessageBatchResultEntry</code> </code> items.</p>
pub fn set_successful(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::SendMessageBatchResultEntry>>,
) -> Self {
self.successful = input;
self
}
/// Appends an item to `failed`.
///
/// To override the contents of this collection use [`set_failed`](Self::set_failed).
///
/// <p>A list of <code> <code>BatchResultErrorEntry</code> </code> items with error details about each message that can't be enqueued.</p>
pub fn failed(mut self, input: crate::model::BatchResultErrorEntry) -> Self {
let mut v = self.failed.unwrap_or_default();
v.push(input);
self.failed = Some(v);
self
}
/// <p>A list of <code> <code>BatchResultErrorEntry</code> </code> items with error details about each message that can't be enqueued.</p>
pub fn set_failed(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::BatchResultErrorEntry>>,
) -> Self {
self.failed = input;
self
}
/// Consumes the builder and constructs a [`SendMessageBatchOutput`](crate::output::SendMessageBatchOutput).
pub fn build(self) -> crate::output::SendMessageBatchOutput {
crate::output::SendMessageBatchOutput {
successful: self.successful,
failed: self.failed,
}
}
}
}
impl SendMessageBatchOutput {
/// Creates a new builder-style object to manufacture [`SendMessageBatchOutput`](crate::output::SendMessageBatchOutput).
pub fn builder() -> crate::output::send_message_batch_output::Builder {
crate::output::send_message_batch_output::Builder::default()
}
}
/// <p>The <code>MD5OfMessageBody</code> and <code>MessageId</code> elements.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct SendMessageOutput {
/// <p>An MD5 digest of the non-URL-encoded message body string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information about MD5, see <a href="https://www.ietf.org/rfc/rfc1321.txt">RFC1321</a>.</p>
#[doc(hidden)]
pub md5_of_message_body: std::option::Option<std::string::String>,
/// <p>An MD5 digest of the non-URL-encoded message attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information about MD5, see <a href="https://www.ietf.org/rfc/rfc1321.txt">RFC1321</a>.</p>
#[doc(hidden)]
pub md5_of_message_attributes: std::option::Option<std::string::String>,
/// <p>An MD5 digest of the non-URL-encoded message system attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest.</p>
#[doc(hidden)]
pub md5_of_message_system_attributes: std::option::Option<std::string::String>,
/// <p>An attribute containing the <code>MessageId</code> of the message sent to the queue. For more information, see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-queue-message-identifiers.html">Queue and Message Identifiers</a> in the <i>Amazon SQS Developer Guide</i>. </p>
#[doc(hidden)]
pub message_id: std::option::Option<std::string::String>,
/// <p>This parameter applies only to FIFO (first-in-first-out) queues.</p>
/// <p>The large, non-consecutive number that Amazon SQS assigns to each message.</p>
/// <p>The length of <code>SequenceNumber</code> is 128 bits. <code>SequenceNumber</code> continues to increase for a particular <code>MessageGroupId</code>.</p>
#[doc(hidden)]
pub sequence_number: std::option::Option<std::string::String>,
}
impl SendMessageOutput {
/// <p>An MD5 digest of the non-URL-encoded message body string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information about MD5, see <a href="https://www.ietf.org/rfc/rfc1321.txt">RFC1321</a>.</p>
pub fn md5_of_message_body(&self) -> std::option::Option<&str> {
self.md5_of_message_body.as_deref()
}
/// <p>An MD5 digest of the non-URL-encoded message attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information about MD5, see <a href="https://www.ietf.org/rfc/rfc1321.txt">RFC1321</a>.</p>
pub fn md5_of_message_attributes(&self) -> std::option::Option<&str> {
self.md5_of_message_attributes.as_deref()
}
/// <p>An MD5 digest of the non-URL-encoded message system attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest.</p>
pub fn md5_of_message_system_attributes(&self) -> std::option::Option<&str> {
self.md5_of_message_system_attributes.as_deref()
}
/// <p>An attribute containing the <code>MessageId</code> of the message sent to the queue. For more information, see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-queue-message-identifiers.html">Queue and Message Identifiers</a> in the <i>Amazon SQS Developer Guide</i>. </p>
pub fn message_id(&self) -> std::option::Option<&str> {
self.message_id.as_deref()
}
/// <p>This parameter applies only to FIFO (first-in-first-out) queues.</p>
/// <p>The large, non-consecutive number that Amazon SQS assigns to each message.</p>
/// <p>The length of <code>SequenceNumber</code> is 128 bits. <code>SequenceNumber</code> continues to increase for a particular <code>MessageGroupId</code>.</p>
pub fn sequence_number(&self) -> std::option::Option<&str> {
self.sequence_number.as_deref()
}
}
/// See [`SendMessageOutput`](crate::output::SendMessageOutput).
pub mod send_message_output {
/// A builder for [`SendMessageOutput`](crate::output::SendMessageOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) md5_of_message_body: std::option::Option<std::string::String>,
pub(crate) md5_of_message_attributes: std::option::Option<std::string::String>,
pub(crate) md5_of_message_system_attributes: std::option::Option<std::string::String>,
pub(crate) message_id: std::option::Option<std::string::String>,
pub(crate) sequence_number: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>An MD5 digest of the non-URL-encoded message body string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information about MD5, see <a href="https://www.ietf.org/rfc/rfc1321.txt">RFC1321</a>.</p>
pub fn md5_of_message_body(mut self, input: impl Into<std::string::String>) -> Self {
self.md5_of_message_body = Some(input.into());
self
}
/// <p>An MD5 digest of the non-URL-encoded message body string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information about MD5, see <a href="https://www.ietf.org/rfc/rfc1321.txt">RFC1321</a>.</p>
pub fn set_md5_of_message_body(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.md5_of_message_body = input;
self
}
/// <p>An MD5 digest of the non-URL-encoded message attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information about MD5, see <a href="https://www.ietf.org/rfc/rfc1321.txt">RFC1321</a>.</p>
pub fn md5_of_message_attributes(mut self, input: impl Into<std::string::String>) -> Self {
self.md5_of_message_attributes = Some(input.into());
self
}
/// <p>An MD5 digest of the non-URL-encoded message attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information about MD5, see <a href="https://www.ietf.org/rfc/rfc1321.txt">RFC1321</a>.</p>
pub fn set_md5_of_message_attributes(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.md5_of_message_attributes = input;
self
}
/// <p>An MD5 digest of the non-URL-encoded message system attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest.</p>
pub fn md5_of_message_system_attributes(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.md5_of_message_system_attributes = Some(input.into());
self
}
/// <p>An MD5 digest of the non-URL-encoded message system attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest.</p>
pub fn set_md5_of_message_system_attributes(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.md5_of_message_system_attributes = input;
self
}
/// <p>An attribute containing the <code>MessageId</code> of the message sent to the queue. For more information, see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-queue-message-identifiers.html">Queue and Message Identifiers</a> in the <i>Amazon SQS Developer Guide</i>. </p>
pub fn message_id(mut self, input: impl Into<std::string::String>) -> Self {
self.message_id = Some(input.into());
self
}
/// <p>An attribute containing the <code>MessageId</code> of the message sent to the queue. For more information, see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-queue-message-identifiers.html">Queue and Message Identifiers</a> in the <i>Amazon SQS Developer Guide</i>. </p>
pub fn set_message_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message_id = input;
self
}
/// <p>This parameter applies only to FIFO (first-in-first-out) queues.</p>
/// <p>The large, non-consecutive number that Amazon SQS assigns to each message.</p>
/// <p>The length of <code>SequenceNumber</code> is 128 bits. <code>SequenceNumber</code> continues to increase for a particular <code>MessageGroupId</code>.</p>
pub fn sequence_number(mut self, input: impl Into<std::string::String>) -> Self {
self.sequence_number = Some(input.into());
self
}
/// <p>This parameter applies only to FIFO (first-in-first-out) queues.</p>
/// <p>The large, non-consecutive number that Amazon SQS assigns to each message.</p>
/// <p>The length of <code>SequenceNumber</code> is 128 bits. <code>SequenceNumber</code> continues to increase for a particular <code>MessageGroupId</code>.</p>
pub fn set_sequence_number(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.sequence_number = input;
self
}
/// Consumes the builder and constructs a [`SendMessageOutput`](crate::output::SendMessageOutput).
pub fn build(self) -> crate::output::SendMessageOutput {
crate::output::SendMessageOutput {
md5_of_message_body: self.md5_of_message_body,
md5_of_message_attributes: self.md5_of_message_attributes,
md5_of_message_system_attributes: self.md5_of_message_system_attributes,
message_id: self.message_id,
sequence_number: self.sequence_number,
}
}
}
}
impl SendMessageOutput {
/// Creates a new builder-style object to manufacture [`SendMessageOutput`](crate::output::SendMessageOutput).
pub fn builder() -> crate::output::send_message_output::Builder {
crate::output::send_message_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct RemovePermissionOutput {}
/// See [`RemovePermissionOutput`](crate::output::RemovePermissionOutput).
pub mod remove_permission_output {
/// A builder for [`RemovePermissionOutput`](crate::output::RemovePermissionOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`RemovePermissionOutput`](crate::output::RemovePermissionOutput).
pub fn build(self) -> crate::output::RemovePermissionOutput {
crate::output::RemovePermissionOutput {}
}
}
}
impl RemovePermissionOutput {
/// Creates a new builder-style object to manufacture [`RemovePermissionOutput`](crate::output::RemovePermissionOutput).
pub fn builder() -> crate::output::remove_permission_output::Builder {
crate::output::remove_permission_output::Builder::default()
}
}
/// <p>A list of received messages.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ReceiveMessageOutput {
/// <p>A list of messages.</p>
#[doc(hidden)]
pub messages: std::option::Option<std::vec::Vec<crate::model::Message>>,
}
impl ReceiveMessageOutput {
/// <p>A list of messages.</p>
pub fn messages(&self) -> std::option::Option<&[crate::model::Message]> {
self.messages.as_deref()
}
}
/// See [`ReceiveMessageOutput`](crate::output::ReceiveMessageOutput).
pub mod receive_message_output {
/// A builder for [`ReceiveMessageOutput`](crate::output::ReceiveMessageOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) messages: std::option::Option<std::vec::Vec<crate::model::Message>>,
}
impl Builder {
/// Appends an item to `messages`.
///
/// To override the contents of this collection use [`set_messages`](Self::set_messages).
///
/// <p>A list of messages.</p>
pub fn messages(mut self, input: crate::model::Message) -> Self {
let mut v = self.messages.unwrap_or_default();
v.push(input);
self.messages = Some(v);
self
}
/// <p>A list of messages.</p>
pub fn set_messages(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Message>>,
) -> Self {
self.messages = input;
self
}
/// Consumes the builder and constructs a [`ReceiveMessageOutput`](crate::output::ReceiveMessageOutput).
pub fn build(self) -> crate::output::ReceiveMessageOutput {
crate::output::ReceiveMessageOutput {
messages: self.messages,
}
}
}
}
impl ReceiveMessageOutput {
/// Creates a new builder-style object to manufacture [`ReceiveMessageOutput`](crate::output::ReceiveMessageOutput).
pub fn builder() -> crate::output::receive_message_output::Builder {
crate::output::receive_message_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct PurgeQueueOutput {}
/// See [`PurgeQueueOutput`](crate::output::PurgeQueueOutput).
pub mod purge_queue_output {
/// A builder for [`PurgeQueueOutput`](crate::output::PurgeQueueOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`PurgeQueueOutput`](crate::output::PurgeQueueOutput).
pub fn build(self) -> crate::output::PurgeQueueOutput {
crate::output::PurgeQueueOutput {}
}
}
}
impl PurgeQueueOutput {
/// Creates a new builder-style object to manufacture [`PurgeQueueOutput`](crate::output::PurgeQueueOutput).
pub fn builder() -> crate::output::purge_queue_output::Builder {
crate::output::purge_queue_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListQueueTagsOutput {
/// <p>The list of all tags added to the specified queue.</p>
#[doc(hidden)]
pub tags:
std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
}
impl ListQueueTagsOutput {
/// <p>The list of all tags added to the specified queue.</p>
pub fn tags(
&self,
) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
{
self.tags.as_ref()
}
}
/// See [`ListQueueTagsOutput`](crate::output::ListQueueTagsOutput).
pub mod list_queue_tags_output {
/// A builder for [`ListQueueTagsOutput`](crate::output::ListQueueTagsOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) tags: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
}
impl Builder {
/// 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 added to the specified queue.</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 added to the specified queue.</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
}
/// Consumes the builder and constructs a [`ListQueueTagsOutput`](crate::output::ListQueueTagsOutput).
pub fn build(self) -> crate::output::ListQueueTagsOutput {
crate::output::ListQueueTagsOutput { tags: self.tags }
}
}
}
impl ListQueueTagsOutput {
/// Creates a new builder-style object to manufacture [`ListQueueTagsOutput`](crate::output::ListQueueTagsOutput).
pub fn builder() -> crate::output::list_queue_tags_output::Builder {
crate::output::list_queue_tags_output::Builder::default()
}
}
/// <p>A list of your queues.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListQueuesOutput {
/// <p>Pagination token to include in the next request. Token value is <code>null</code> if there are no additional results to request, or if you did not set <code>MaxResults</code> in the request.</p>
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
/// <p>A list of queue URLs, up to 1,000 entries, or the value of MaxResults that you sent in the request.</p>
#[doc(hidden)]
pub queue_urls: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl ListQueuesOutput {
/// <p>Pagination token to include in the next request. Token value is <code>null</code> if there are no additional results to request, or if you did not set <code>MaxResults</code> in the request.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
/// <p>A list of queue URLs, up to 1,000 entries, or the value of MaxResults that you sent in the request.</p>
pub fn queue_urls(&self) -> std::option::Option<&[std::string::String]> {
self.queue_urls.as_deref()
}
}
/// See [`ListQueuesOutput`](crate::output::ListQueuesOutput).
pub mod list_queues_output {
/// A builder for [`ListQueuesOutput`](crate::output::ListQueuesOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) next_token: std::option::Option<std::string::String>,
pub(crate) queue_urls: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl Builder {
/// <p>Pagination token to include in the next request. Token value is <code>null</code> if there are no additional results to request, or if you did not set <code>MaxResults</code> in the request.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>Pagination token to include in the next request. Token value is <code>null</code> if there are no additional results to request, or if you did not set <code>MaxResults</code> in the request.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Appends an item to `queue_urls`.
///
/// To override the contents of this collection use [`set_queue_urls`](Self::set_queue_urls).
///
/// <p>A list of queue URLs, up to 1,000 entries, or the value of MaxResults that you sent in the request.</p>
pub fn queue_urls(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.queue_urls.unwrap_or_default();
v.push(input.into());
self.queue_urls = Some(v);
self
}
/// <p>A list of queue URLs, up to 1,000 entries, or the value of MaxResults that you sent in the request.</p>
pub fn set_queue_urls(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.queue_urls = input;
self
}
/// Consumes the builder and constructs a [`ListQueuesOutput`](crate::output::ListQueuesOutput).
pub fn build(self) -> crate::output::ListQueuesOutput {
crate::output::ListQueuesOutput {
next_token: self.next_token,
queue_urls: self.queue_urls,
}
}
}
}
impl ListQueuesOutput {
/// Creates a new builder-style object to manufacture [`ListQueuesOutput`](crate::output::ListQueuesOutput).
pub fn builder() -> crate::output::list_queues_output::Builder {
crate::output::list_queues_output::Builder::default()
}
}
/// <p>A list of your dead letter source queues.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListDeadLetterSourceQueuesOutput {
/// <p>A list of source queue URLs that have the <code>RedrivePolicy</code> queue attribute configured with a dead-letter queue.</p>
#[doc(hidden)]
pub queue_urls: std::option::Option<std::vec::Vec<std::string::String>>,
/// <p>Pagination token to include in the next request. Token value is <code>null</code> if there are no additional results to request, or if you did not set <code>MaxResults</code> in the request.</p>
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl ListDeadLetterSourceQueuesOutput {
/// <p>A list of source queue URLs that have the <code>RedrivePolicy</code> queue attribute configured with a dead-letter queue.</p>
pub fn queue_urls(&self) -> std::option::Option<&[std::string::String]> {
self.queue_urls.as_deref()
}
/// <p>Pagination token to include in the next request. Token value is <code>null</code> if there are no additional results to request, or if you did not set <code>MaxResults</code> in the request.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
/// See [`ListDeadLetterSourceQueuesOutput`](crate::output::ListDeadLetterSourceQueuesOutput).
pub mod list_dead_letter_source_queues_output {
/// A builder for [`ListDeadLetterSourceQueuesOutput`](crate::output::ListDeadLetterSourceQueuesOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) queue_urls: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
/// Appends an item to `queue_urls`.
///
/// To override the contents of this collection use [`set_queue_urls`](Self::set_queue_urls).
///
/// <p>A list of source queue URLs that have the <code>RedrivePolicy</code> queue attribute configured with a dead-letter queue.</p>
pub fn queue_urls(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.queue_urls.unwrap_or_default();
v.push(input.into());
self.queue_urls = Some(v);
self
}
/// <p>A list of source queue URLs that have the <code>RedrivePolicy</code> queue attribute configured with a dead-letter queue.</p>
pub fn set_queue_urls(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.queue_urls = input;
self
}
/// <p>Pagination token to include in the next request. Token value is <code>null</code> if there are no additional results to request, or if you did not set <code>MaxResults</code> in the request.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>Pagination token to include in the next request. Token value is <code>null</code> if there are no additional results to request, or if you did not set <code>MaxResults</code> in the request.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Consumes the builder and constructs a [`ListDeadLetterSourceQueuesOutput`](crate::output::ListDeadLetterSourceQueuesOutput).
pub fn build(self) -> crate::output::ListDeadLetterSourceQueuesOutput {
crate::output::ListDeadLetterSourceQueuesOutput {
queue_urls: self.queue_urls,
next_token: self.next_token,
}
}
}
}
impl ListDeadLetterSourceQueuesOutput {
/// Creates a new builder-style object to manufacture [`ListDeadLetterSourceQueuesOutput`](crate::output::ListDeadLetterSourceQueuesOutput).
pub fn builder() -> crate::output::list_dead_letter_source_queues_output::Builder {
crate::output::list_dead_letter_source_queues_output::Builder::default()
}
}
/// <p>For more information, see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-api-responses.html">Interpreting Responses</a> in the <i>Amazon SQS Developer Guide</i>.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetQueueUrlOutput {
/// <p>The URL of the queue.</p>
#[doc(hidden)]
pub queue_url: std::option::Option<std::string::String>,
}
impl GetQueueUrlOutput {
/// <p>The URL of the queue.</p>
pub fn queue_url(&self) -> std::option::Option<&str> {
self.queue_url.as_deref()
}
}
/// See [`GetQueueUrlOutput`](crate::output::GetQueueUrlOutput).
pub mod get_queue_url_output {
/// A builder for [`GetQueueUrlOutput`](crate::output::GetQueueUrlOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) queue_url: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>The URL of the queue.</p>
pub fn queue_url(mut self, input: impl Into<std::string::String>) -> Self {
self.queue_url = Some(input.into());
self
}
/// <p>The URL of the queue.</p>
pub fn set_queue_url(mut self, input: std::option::Option<std::string::String>) -> Self {
self.queue_url = input;
self
}
/// Consumes the builder and constructs a [`GetQueueUrlOutput`](crate::output::GetQueueUrlOutput).
pub fn build(self) -> crate::output::GetQueueUrlOutput {
crate::output::GetQueueUrlOutput {
queue_url: self.queue_url,
}
}
}
}
impl GetQueueUrlOutput {
/// Creates a new builder-style object to manufacture [`GetQueueUrlOutput`](crate::output::GetQueueUrlOutput).
pub fn builder() -> crate::output::get_queue_url_output::Builder {
crate::output::get_queue_url_output::Builder::default()
}
}
/// <p>A list of returned queue attributes.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetQueueAttributesOutput {
/// <p>A map of attributes to their respective values.</p>
#[doc(hidden)]
pub attributes: std::option::Option<
std::collections::HashMap<crate::model::QueueAttributeName, std::string::String>,
>,
}
impl GetQueueAttributesOutput {
/// <p>A map of attributes to their respective values.</p>
pub fn attributes(
&self,
) -> std::option::Option<
&std::collections::HashMap<crate::model::QueueAttributeName, std::string::String>,
> {
self.attributes.as_ref()
}
}
/// See [`GetQueueAttributesOutput`](crate::output::GetQueueAttributesOutput).
pub mod get_queue_attributes_output {
/// A builder for [`GetQueueAttributesOutput`](crate::output::GetQueueAttributesOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) attributes: std::option::Option<
std::collections::HashMap<crate::model::QueueAttributeName, std::string::String>,
>,
}
impl Builder {
/// Adds a key-value pair to `attributes`.
///
/// To override the contents of this collection use [`set_attributes`](Self::set_attributes).
///
/// <p>A map of attributes to their respective values.</p>
pub fn attributes(
mut self,
k: crate::model::QueueAttributeName,
v: impl Into<std::string::String>,
) -> Self {
let mut hash_map = self.attributes.unwrap_or_default();
hash_map.insert(k, v.into());
self.attributes = Some(hash_map);
self
}
/// <p>A map of attributes to their respective values.</p>
pub fn set_attributes(
mut self,
input: std::option::Option<
std::collections::HashMap<crate::model::QueueAttributeName, std::string::String>,
>,
) -> Self {
self.attributes = input;
self
}
/// Consumes the builder and constructs a [`GetQueueAttributesOutput`](crate::output::GetQueueAttributesOutput).
pub fn build(self) -> crate::output::GetQueueAttributesOutput {
crate::output::GetQueueAttributesOutput {
attributes: self.attributes,
}
}
}
}
impl GetQueueAttributesOutput {
/// Creates a new builder-style object to manufacture [`GetQueueAttributesOutput`](crate::output::GetQueueAttributesOutput).
pub fn builder() -> crate::output::get_queue_attributes_output::Builder {
crate::output::get_queue_attributes_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteQueueOutput {}
/// See [`DeleteQueueOutput`](crate::output::DeleteQueueOutput).
pub mod delete_queue_output {
/// A builder for [`DeleteQueueOutput`](crate::output::DeleteQueueOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`DeleteQueueOutput`](crate::output::DeleteQueueOutput).
pub fn build(self) -> crate::output::DeleteQueueOutput {
crate::output::DeleteQueueOutput {}
}
}
}
impl DeleteQueueOutput {
/// Creates a new builder-style object to manufacture [`DeleteQueueOutput`](crate::output::DeleteQueueOutput).
pub fn builder() -> crate::output::delete_queue_output::Builder {
crate::output::delete_queue_output::Builder::default()
}
}
/// <p>For each message in the batch, the response contains a <code> <code>DeleteMessageBatchResultEntry</code> </code> tag if the message is deleted or a <code> <code>BatchResultErrorEntry</code> </code> tag if the message can't be deleted.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteMessageBatchOutput {
/// <p>A list of <code> <code>DeleteMessageBatchResultEntry</code> </code> items.</p>
#[doc(hidden)]
pub successful: std::option::Option<std::vec::Vec<crate::model::DeleteMessageBatchResultEntry>>,
/// <p>A list of <code> <code>BatchResultErrorEntry</code> </code> items.</p>
#[doc(hidden)]
pub failed: std::option::Option<std::vec::Vec<crate::model::BatchResultErrorEntry>>,
}
impl DeleteMessageBatchOutput {
/// <p>A list of <code> <code>DeleteMessageBatchResultEntry</code> </code> items.</p>
pub fn successful(
&self,
) -> std::option::Option<&[crate::model::DeleteMessageBatchResultEntry]> {
self.successful.as_deref()
}
/// <p>A list of <code> <code>BatchResultErrorEntry</code> </code> items.</p>
pub fn failed(&self) -> std::option::Option<&[crate::model::BatchResultErrorEntry]> {
self.failed.as_deref()
}
}
/// See [`DeleteMessageBatchOutput`](crate::output::DeleteMessageBatchOutput).
pub mod delete_message_batch_output {
/// A builder for [`DeleteMessageBatchOutput`](crate::output::DeleteMessageBatchOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) successful:
std::option::Option<std::vec::Vec<crate::model::DeleteMessageBatchResultEntry>>,
pub(crate) failed: std::option::Option<std::vec::Vec<crate::model::BatchResultErrorEntry>>,
}
impl Builder {
/// Appends an item to `successful`.
///
/// To override the contents of this collection use [`set_successful`](Self::set_successful).
///
/// <p>A list of <code> <code>DeleteMessageBatchResultEntry</code> </code> items.</p>
pub fn successful(mut self, input: crate::model::DeleteMessageBatchResultEntry) -> Self {
let mut v = self.successful.unwrap_or_default();
v.push(input);
self.successful = Some(v);
self
}
/// <p>A list of <code> <code>DeleteMessageBatchResultEntry</code> </code> items.</p>
pub fn set_successful(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::DeleteMessageBatchResultEntry>>,
) -> Self {
self.successful = input;
self
}
/// Appends an item to `failed`.
///
/// To override the contents of this collection use [`set_failed`](Self::set_failed).
///
/// <p>A list of <code> <code>BatchResultErrorEntry</code> </code> items.</p>
pub fn failed(mut self, input: crate::model::BatchResultErrorEntry) -> Self {
let mut v = self.failed.unwrap_or_default();
v.push(input);
self.failed = Some(v);
self
}
/// <p>A list of <code> <code>BatchResultErrorEntry</code> </code> items.</p>
pub fn set_failed(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::BatchResultErrorEntry>>,
) -> Self {
self.failed = input;
self
}
/// Consumes the builder and constructs a [`DeleteMessageBatchOutput`](crate::output::DeleteMessageBatchOutput).
pub fn build(self) -> crate::output::DeleteMessageBatchOutput {
crate::output::DeleteMessageBatchOutput {
successful: self.successful,
failed: self.failed,
}
}
}
}
impl DeleteMessageBatchOutput {
/// Creates a new builder-style object to manufacture [`DeleteMessageBatchOutput`](crate::output::DeleteMessageBatchOutput).
pub fn builder() -> crate::output::delete_message_batch_output::Builder {
crate::output::delete_message_batch_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteMessageOutput {}
/// See [`DeleteMessageOutput`](crate::output::DeleteMessageOutput).
pub mod delete_message_output {
/// A builder for [`DeleteMessageOutput`](crate::output::DeleteMessageOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`DeleteMessageOutput`](crate::output::DeleteMessageOutput).
pub fn build(self) -> crate::output::DeleteMessageOutput {
crate::output::DeleteMessageOutput {}
}
}
}
impl DeleteMessageOutput {
/// Creates a new builder-style object to manufacture [`DeleteMessageOutput`](crate::output::DeleteMessageOutput).
pub fn builder() -> crate::output::delete_message_output::Builder {
crate::output::delete_message_output::Builder::default()
}
}
/// <p>Returns the <code>QueueUrl</code> attribute of the created queue.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreateQueueOutput {
/// <p>The URL of the created Amazon SQS queue.</p>
#[doc(hidden)]
pub queue_url: std::option::Option<std::string::String>,
}
impl CreateQueueOutput {
/// <p>The URL of the created Amazon SQS queue.</p>
pub fn queue_url(&self) -> std::option::Option<&str> {
self.queue_url.as_deref()
}
}
/// See [`CreateQueueOutput`](crate::output::CreateQueueOutput).
pub mod create_queue_output {
/// A builder for [`CreateQueueOutput`](crate::output::CreateQueueOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) queue_url: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>The URL of the created Amazon SQS queue.</p>
pub fn queue_url(mut self, input: impl Into<std::string::String>) -> Self {
self.queue_url = Some(input.into());
self
}
/// <p>The URL of the created Amazon SQS queue.</p>
pub fn set_queue_url(mut self, input: std::option::Option<std::string::String>) -> Self {
self.queue_url = input;
self
}
/// Consumes the builder and constructs a [`CreateQueueOutput`](crate::output::CreateQueueOutput).
pub fn build(self) -> crate::output::CreateQueueOutput {
crate::output::CreateQueueOutput {
queue_url: self.queue_url,
}
}
}
}
impl CreateQueueOutput {
/// Creates a new builder-style object to manufacture [`CreateQueueOutput`](crate::output::CreateQueueOutput).
pub fn builder() -> crate::output::create_queue_output::Builder {
crate::output::create_queue_output::Builder::default()
}
}
/// <p>For each message in the batch, the response contains a <code> <code>ChangeMessageVisibilityBatchResultEntry</code> </code> tag if the message succeeds or a <code> <code>BatchResultErrorEntry</code> </code> tag if the message fails.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ChangeMessageVisibilityBatchOutput {
/// <p>A list of <code> <code>ChangeMessageVisibilityBatchResultEntry</code> </code> items.</p>
#[doc(hidden)]
pub successful:
std::option::Option<std::vec::Vec<crate::model::ChangeMessageVisibilityBatchResultEntry>>,
/// <p>A list of <code> <code>BatchResultErrorEntry</code> </code> items.</p>
#[doc(hidden)]
pub failed: std::option::Option<std::vec::Vec<crate::model::BatchResultErrorEntry>>,
}
impl ChangeMessageVisibilityBatchOutput {
/// <p>A list of <code> <code>ChangeMessageVisibilityBatchResultEntry</code> </code> items.</p>
pub fn successful(
&self,
) -> std::option::Option<&[crate::model::ChangeMessageVisibilityBatchResultEntry]> {
self.successful.as_deref()
}
/// <p>A list of <code> <code>BatchResultErrorEntry</code> </code> items.</p>
pub fn failed(&self) -> std::option::Option<&[crate::model::BatchResultErrorEntry]> {
self.failed.as_deref()
}
}
/// See [`ChangeMessageVisibilityBatchOutput`](crate::output::ChangeMessageVisibilityBatchOutput).
pub mod change_message_visibility_batch_output {
/// A builder for [`ChangeMessageVisibilityBatchOutput`](crate::output::ChangeMessageVisibilityBatchOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) successful: std::option::Option<
std::vec::Vec<crate::model::ChangeMessageVisibilityBatchResultEntry>,
>,
pub(crate) failed: std::option::Option<std::vec::Vec<crate::model::BatchResultErrorEntry>>,
}
impl Builder {
/// Appends an item to `successful`.
///
/// To override the contents of this collection use [`set_successful`](Self::set_successful).
///
/// <p>A list of <code> <code>ChangeMessageVisibilityBatchResultEntry</code> </code> items.</p>
pub fn successful(
mut self,
input: crate::model::ChangeMessageVisibilityBatchResultEntry,
) -> Self {
let mut v = self.successful.unwrap_or_default();
v.push(input);
self.successful = Some(v);
self
}
/// <p>A list of <code> <code>ChangeMessageVisibilityBatchResultEntry</code> </code> items.</p>
pub fn set_successful(
mut self,
input: std::option::Option<
std::vec::Vec<crate::model::ChangeMessageVisibilityBatchResultEntry>,
>,
) -> Self {
self.successful = input;
self
}
/// Appends an item to `failed`.
///
/// To override the contents of this collection use [`set_failed`](Self::set_failed).
///
/// <p>A list of <code> <code>BatchResultErrorEntry</code> </code> items.</p>
pub fn failed(mut self, input: crate::model::BatchResultErrorEntry) -> Self {
let mut v = self.failed.unwrap_or_default();
v.push(input);
self.failed = Some(v);
self
}
/// <p>A list of <code> <code>BatchResultErrorEntry</code> </code> items.</p>
pub fn set_failed(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::BatchResultErrorEntry>>,
) -> Self {
self.failed = input;
self
}
/// Consumes the builder and constructs a [`ChangeMessageVisibilityBatchOutput`](crate::output::ChangeMessageVisibilityBatchOutput).
pub fn build(self) -> crate::output::ChangeMessageVisibilityBatchOutput {
crate::output::ChangeMessageVisibilityBatchOutput {
successful: self.successful,
failed: self.failed,
}
}
}
}
impl ChangeMessageVisibilityBatchOutput {
/// Creates a new builder-style object to manufacture [`ChangeMessageVisibilityBatchOutput`](crate::output::ChangeMessageVisibilityBatchOutput).
pub fn builder() -> crate::output::change_message_visibility_batch_output::Builder {
crate::output::change_message_visibility_batch_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ChangeMessageVisibilityOutput {}
/// See [`ChangeMessageVisibilityOutput`](crate::output::ChangeMessageVisibilityOutput).
pub mod change_message_visibility_output {
/// A builder for [`ChangeMessageVisibilityOutput`](crate::output::ChangeMessageVisibilityOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`ChangeMessageVisibilityOutput`](crate::output::ChangeMessageVisibilityOutput).
pub fn build(self) -> crate::output::ChangeMessageVisibilityOutput {
crate::output::ChangeMessageVisibilityOutput {}
}
}
}
impl ChangeMessageVisibilityOutput {
/// Creates a new builder-style object to manufacture [`ChangeMessageVisibilityOutput`](crate::output::ChangeMessageVisibilityOutput).
pub fn builder() -> crate::output::change_message_visibility_output::Builder {
crate::output::change_message_visibility_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct AddPermissionOutput {}
/// See [`AddPermissionOutput`](crate::output::AddPermissionOutput).
pub mod add_permission_output {
/// A builder for [`AddPermissionOutput`](crate::output::AddPermissionOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`AddPermissionOutput`](crate::output::AddPermissionOutput).
pub fn build(self) -> crate::output::AddPermissionOutput {
crate::output::AddPermissionOutput {}
}
}
}
impl AddPermissionOutput {
/// Creates a new builder-style object to manufacture [`AddPermissionOutput`](crate::output::AddPermissionOutput).
pub fn builder() -> crate::output::add_permission_output::Builder {
crate::output::add_permission_output::Builder::default()
}
}