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
// 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 ListScheduleGroupsOutput {
/// <p>Indicates whether there are additional results to retrieve. If the value is null, there are no more results.</p>
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
/// <p>The schedule groups that match the specified criteria.</p>
#[doc(hidden)]
pub schedule_groups: std::option::Option<std::vec::Vec<crate::model::ScheduleGroupSummary>>,
}
impl ListScheduleGroupsOutput {
/// <p>Indicates whether there are additional results to retrieve. If the value is null, there are no more results.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
/// <p>The schedule groups that match the specified criteria.</p>
pub fn schedule_groups(&self) -> std::option::Option<&[crate::model::ScheduleGroupSummary]> {
self.schedule_groups.as_deref()
}
}
/// See [`ListScheduleGroupsOutput`](crate::output::ListScheduleGroupsOutput).
pub mod list_schedule_groups_output {
/// A builder for [`ListScheduleGroupsOutput`](crate::output::ListScheduleGroupsOutput).
#[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) schedule_groups:
std::option::Option<std::vec::Vec<crate::model::ScheduleGroupSummary>>,
}
impl Builder {
/// <p>Indicates whether there are additional results to retrieve. If the value is null, there are no more results.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>Indicates whether there are additional results to retrieve. If the value is null, there are no more results.</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 `schedule_groups`.
///
/// To override the contents of this collection use [`set_schedule_groups`](Self::set_schedule_groups).
///
/// <p>The schedule groups that match the specified criteria.</p>
pub fn schedule_groups(mut self, input: crate::model::ScheduleGroupSummary) -> Self {
let mut v = self.schedule_groups.unwrap_or_default();
v.push(input);
self.schedule_groups = Some(v);
self
}
/// <p>The schedule groups that match the specified criteria.</p>
pub fn set_schedule_groups(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::ScheduleGroupSummary>>,
) -> Self {
self.schedule_groups = input;
self
}
/// Consumes the builder and constructs a [`ListScheduleGroupsOutput`](crate::output::ListScheduleGroupsOutput).
pub fn build(self) -> crate::output::ListScheduleGroupsOutput {
crate::output::ListScheduleGroupsOutput {
next_token: self.next_token,
schedule_groups: self.schedule_groups,
}
}
}
}
impl ListScheduleGroupsOutput {
/// Creates a new builder-style object to manufacture [`ListScheduleGroupsOutput`](crate::output::ListScheduleGroupsOutput).
pub fn builder() -> crate::output::list_schedule_groups_output::Builder {
crate::output::list_schedule_groups_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreateScheduleGroupOutput {
/// <p>The Amazon Resource Name (ARN) of the schedule group.</p>
#[doc(hidden)]
pub schedule_group_arn: std::option::Option<std::string::String>,
}
impl CreateScheduleGroupOutput {
/// <p>The Amazon Resource Name (ARN) of the schedule group.</p>
pub fn schedule_group_arn(&self) -> std::option::Option<&str> {
self.schedule_group_arn.as_deref()
}
}
/// See [`CreateScheduleGroupOutput`](crate::output::CreateScheduleGroupOutput).
pub mod create_schedule_group_output {
/// A builder for [`CreateScheduleGroupOutput`](crate::output::CreateScheduleGroupOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) schedule_group_arn: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>The Amazon Resource Name (ARN) of the schedule group.</p>
pub fn schedule_group_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.schedule_group_arn = Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the schedule group.</p>
pub fn set_schedule_group_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.schedule_group_arn = input;
self
}
/// Consumes the builder and constructs a [`CreateScheduleGroupOutput`](crate::output::CreateScheduleGroupOutput).
pub fn build(self) -> crate::output::CreateScheduleGroupOutput {
crate::output::CreateScheduleGroupOutput {
schedule_group_arn: self.schedule_group_arn,
}
}
}
}
impl CreateScheduleGroupOutput {
/// Creates a new builder-style object to manufacture [`CreateScheduleGroupOutput`](crate::output::CreateScheduleGroupOutput).
pub fn builder() -> crate::output::create_schedule_group_output::Builder {
crate::output::create_schedule_group_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteScheduleGroupOutput {}
/// See [`DeleteScheduleGroupOutput`](crate::output::DeleteScheduleGroupOutput).
pub mod delete_schedule_group_output {
/// A builder for [`DeleteScheduleGroupOutput`](crate::output::DeleteScheduleGroupOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`DeleteScheduleGroupOutput`](crate::output::DeleteScheduleGroupOutput).
pub fn build(self) -> crate::output::DeleteScheduleGroupOutput {
crate::output::DeleteScheduleGroupOutput {}
}
}
}
impl DeleteScheduleGroupOutput {
/// Creates a new builder-style object to manufacture [`DeleteScheduleGroupOutput`](crate::output::DeleteScheduleGroupOutput).
pub fn builder() -> crate::output::delete_schedule_group_output::Builder {
crate::output::delete_schedule_group_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetScheduleGroupOutput {
/// <p>The Amazon Resource Name (ARN) of the schedule group.</p>
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
/// <p>The name of the schedule group.</p>
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
/// <p>Specifies the state of the schedule group.</p>
#[doc(hidden)]
pub state: std::option::Option<crate::model::ScheduleGroupState>,
/// <p>The time at which the schedule group was created.</p>
#[doc(hidden)]
pub creation_date: std::option::Option<aws_smithy_types::DateTime>,
/// <p>The time at which the schedule group was last modified.</p>
#[doc(hidden)]
pub last_modification_date: std::option::Option<aws_smithy_types::DateTime>,
}
impl GetScheduleGroupOutput {
/// <p>The Amazon Resource Name (ARN) of the schedule group.</p>
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
/// <p>The name of the schedule group.</p>
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
/// <p>Specifies the state of the schedule group.</p>
pub fn state(&self) -> std::option::Option<&crate::model::ScheduleGroupState> {
self.state.as_ref()
}
/// <p>The time at which the schedule group was created.</p>
pub fn creation_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.creation_date.as_ref()
}
/// <p>The time at which the schedule group was last modified.</p>
pub fn last_modification_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.last_modification_date.as_ref()
}
}
/// See [`GetScheduleGroupOutput`](crate::output::GetScheduleGroupOutput).
pub mod get_schedule_group_output {
/// A builder for [`GetScheduleGroupOutput`](crate::output::GetScheduleGroupOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) arn: std::option::Option<std::string::String>,
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) state: std::option::Option<crate::model::ScheduleGroupState>,
pub(crate) creation_date: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) last_modification_date: std::option::Option<aws_smithy_types::DateTime>,
}
impl Builder {
/// <p>The Amazon Resource Name (ARN) of the schedule group.</p>
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the schedule group.</p>
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
/// <p>The name of the schedule group.</p>
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
/// <p>The name of the schedule group.</p>
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
/// <p>Specifies the state of the schedule group.</p>
pub fn state(mut self, input: crate::model::ScheduleGroupState) -> Self {
self.state = Some(input);
self
}
/// <p>Specifies the state of the schedule group.</p>
pub fn set_state(
mut self,
input: std::option::Option<crate::model::ScheduleGroupState>,
) -> Self {
self.state = input;
self
}
/// <p>The time at which the schedule group was created.</p>
pub fn creation_date(mut self, input: aws_smithy_types::DateTime) -> Self {
self.creation_date = Some(input);
self
}
/// <p>The time at which the schedule group was created.</p>
pub fn set_creation_date(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.creation_date = input;
self
}
/// <p>The time at which the schedule group was last modified.</p>
pub fn last_modification_date(mut self, input: aws_smithy_types::DateTime) -> Self {
self.last_modification_date = Some(input);
self
}
/// <p>The time at which the schedule group was last modified.</p>
pub fn set_last_modification_date(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.last_modification_date = input;
self
}
/// Consumes the builder and constructs a [`GetScheduleGroupOutput`](crate::output::GetScheduleGroupOutput).
pub fn build(self) -> crate::output::GetScheduleGroupOutput {
crate::output::GetScheduleGroupOutput {
arn: self.arn,
name: self.name,
state: self.state,
creation_date: self.creation_date,
last_modification_date: self.last_modification_date,
}
}
}
}
impl GetScheduleGroupOutput {
/// Creates a new builder-style object to manufacture [`GetScheduleGroupOutput`](crate::output::GetScheduleGroupOutput).
pub fn builder() -> crate::output::get_schedule_group_output::Builder {
crate::output::get_schedule_group_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListSchedulesOutput {
/// <p>Indicates whether there are additional results to retrieve. If the value is null, there are no more results.</p>
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
/// <p>The schedules that match the specified criteria.</p>
#[doc(hidden)]
pub schedules: std::option::Option<std::vec::Vec<crate::model::ScheduleSummary>>,
}
impl ListSchedulesOutput {
/// <p>Indicates whether there are additional results to retrieve. If the value is null, there are no more results.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
/// <p>The schedules that match the specified criteria.</p>
pub fn schedules(&self) -> std::option::Option<&[crate::model::ScheduleSummary]> {
self.schedules.as_deref()
}
}
/// See [`ListSchedulesOutput`](crate::output::ListSchedulesOutput).
pub mod list_schedules_output {
/// A builder for [`ListSchedulesOutput`](crate::output::ListSchedulesOutput).
#[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) schedules: std::option::Option<std::vec::Vec<crate::model::ScheduleSummary>>,
}
impl Builder {
/// <p>Indicates whether there are additional results to retrieve. If the value is null, there are no more results.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>Indicates whether there are additional results to retrieve. If the value is null, there are no more results.</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 `schedules`.
///
/// To override the contents of this collection use [`set_schedules`](Self::set_schedules).
///
/// <p>The schedules that match the specified criteria.</p>
pub fn schedules(mut self, input: crate::model::ScheduleSummary) -> Self {
let mut v = self.schedules.unwrap_or_default();
v.push(input);
self.schedules = Some(v);
self
}
/// <p>The schedules that match the specified criteria.</p>
pub fn set_schedules(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::ScheduleSummary>>,
) -> Self {
self.schedules = input;
self
}
/// Consumes the builder and constructs a [`ListSchedulesOutput`](crate::output::ListSchedulesOutput).
pub fn build(self) -> crate::output::ListSchedulesOutput {
crate::output::ListSchedulesOutput {
next_token: self.next_token,
schedules: self.schedules,
}
}
}
}
impl ListSchedulesOutput {
/// Creates a new builder-style object to manufacture [`ListSchedulesOutput`](crate::output::ListSchedulesOutput).
pub fn builder() -> crate::output::list_schedules_output::Builder {
crate::output::list_schedules_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreateScheduleOutput {
/// <p>The Amazon Resource Name (ARN) of the schedule.</p>
#[doc(hidden)]
pub schedule_arn: std::option::Option<std::string::String>,
}
impl CreateScheduleOutput {
/// <p>The Amazon Resource Name (ARN) of the schedule.</p>
pub fn schedule_arn(&self) -> std::option::Option<&str> {
self.schedule_arn.as_deref()
}
}
/// See [`CreateScheduleOutput`](crate::output::CreateScheduleOutput).
pub mod create_schedule_output {
/// A builder for [`CreateScheduleOutput`](crate::output::CreateScheduleOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) schedule_arn: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>The Amazon Resource Name (ARN) of the schedule.</p>
pub fn schedule_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.schedule_arn = Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the schedule.</p>
pub fn set_schedule_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.schedule_arn = input;
self
}
/// Consumes the builder and constructs a [`CreateScheduleOutput`](crate::output::CreateScheduleOutput).
pub fn build(self) -> crate::output::CreateScheduleOutput {
crate::output::CreateScheduleOutput {
schedule_arn: self.schedule_arn,
}
}
}
}
impl CreateScheduleOutput {
/// Creates a new builder-style object to manufacture [`CreateScheduleOutput`](crate::output::CreateScheduleOutput).
pub fn builder() -> crate::output::create_schedule_output::Builder {
crate::output::create_schedule_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteScheduleOutput {}
/// See [`DeleteScheduleOutput`](crate::output::DeleteScheduleOutput).
pub mod delete_schedule_output {
/// A builder for [`DeleteScheduleOutput`](crate::output::DeleteScheduleOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`DeleteScheduleOutput`](crate::output::DeleteScheduleOutput).
pub fn build(self) -> crate::output::DeleteScheduleOutput {
crate::output::DeleteScheduleOutput {}
}
}
}
impl DeleteScheduleOutput {
/// Creates a new builder-style object to manufacture [`DeleteScheduleOutput`](crate::output::DeleteScheduleOutput).
pub fn builder() -> crate::output::delete_schedule_output::Builder {
crate::output::delete_schedule_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateScheduleOutput {
/// <p>The Amazon Resource Name (ARN) of the schedule that you updated.</p>
#[doc(hidden)]
pub schedule_arn: std::option::Option<std::string::String>,
}
impl UpdateScheduleOutput {
/// <p>The Amazon Resource Name (ARN) of the schedule that you updated.</p>
pub fn schedule_arn(&self) -> std::option::Option<&str> {
self.schedule_arn.as_deref()
}
}
/// See [`UpdateScheduleOutput`](crate::output::UpdateScheduleOutput).
pub mod update_schedule_output {
/// A builder for [`UpdateScheduleOutput`](crate::output::UpdateScheduleOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) schedule_arn: std::option::Option<std::string::String>,
}
impl Builder {
/// <p>The Amazon Resource Name (ARN) of the schedule that you updated.</p>
pub fn schedule_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.schedule_arn = Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the schedule that you updated.</p>
pub fn set_schedule_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.schedule_arn = input;
self
}
/// Consumes the builder and constructs a [`UpdateScheduleOutput`](crate::output::UpdateScheduleOutput).
pub fn build(self) -> crate::output::UpdateScheduleOutput {
crate::output::UpdateScheduleOutput {
schedule_arn: self.schedule_arn,
}
}
}
}
impl UpdateScheduleOutput {
/// Creates a new builder-style object to manufacture [`UpdateScheduleOutput`](crate::output::UpdateScheduleOutput).
pub fn builder() -> crate::output::update_schedule_output::Builder {
crate::output::update_schedule_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetScheduleOutput {
/// <p>The Amazon Resource Name (ARN) of the schedule.</p>
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
/// <p>The name of the schedule group associated with this schedule.</p>
#[doc(hidden)]
pub group_name: std::option::Option<std::string::String>,
/// <p>The name of the schedule.</p>
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
/// <p> The expression that defines when the schedule runs. The following formats are supported. </p>
/// <ul>
/// <li> <p> <code>at</code> expression - <code>at(yyyy-mm-ddThh:mm:ss)</code> </p> </li>
/// <li> <p> <code>rate</code> expression - <code>rate(unit value)</code> </p> </li>
/// <li> <p> <code>cron</code> expression - <code>cron(fields)</code> </p> </li>
/// </ul>
/// <p> You can use <code>at</code> expressions to create one-time schedules that invoke a target once, at the time and in the time zone, that you specify. You can use <code>rate</code> and <code>cron</code> expressions to create recurring schedules. Rate-based schedules are useful when you want to invoke a target at regular intervals, such as every 15 minutes or every five days. Cron-based schedules are useful when you want to invoke a target periodically at a specific time, such as at 8:00 am (UTC+0) every 1st day of the month. </p>
/// <p> A <code>cron</code> expression consists of six fields separated by white spaces: <code>(minutes hours day_of_month month day_of_week year)</code>. </p>
/// <p> A <code>rate</code> expression consists of a <i>value</i> as a positive integer, and a <i>unit</i> with the following options: <code>minute</code> | <code>minutes</code> | <code>hour</code> | <code>hours</code> | <code>day</code> | <code>days</code> </p>
/// <p> For more information and examples, see <a href="https://docs.aws.amazon.com/scheduler/latest/UserGuide/schedule-types.html">Schedule types on EventBridge Scheduler</a> in the <i>EventBridge Scheduler User Guide</i>. </p>
#[doc(hidden)]
pub schedule_expression: std::option::Option<std::string::String>,
/// <p>The date, in UTC, after which the schedule can begin invoking its target. Depending on the schedule's recurrence expression, invocations might occur on, or after, the <code>StartDate</code> you specify. EventBridge Scheduler ignores <code>StartDate</code> for one-time schedules.</p>
#[doc(hidden)]
pub start_date: std::option::Option<aws_smithy_types::DateTime>,
/// <p>The date, in UTC, before which the schedule can invoke its target. Depending on the schedule's recurrence expression, invocations might stop on, or before, the <code>EndDate</code> you specify. EventBridge Scheduler ignores <code>EndDate</code> for one-time schedules.</p>
#[doc(hidden)]
pub end_date: std::option::Option<aws_smithy_types::DateTime>,
/// <p>The description of the schedule.</p>
#[doc(hidden)]
pub description: std::option::Option<std::string::String>,
/// <p>The timezone in which the scheduling expression is evaluated.</p>
#[doc(hidden)]
pub schedule_expression_timezone: std::option::Option<std::string::String>,
/// <p>Specifies whether the schedule is enabled or disabled.</p>
#[doc(hidden)]
pub state: std::option::Option<crate::model::ScheduleState>,
/// <p>The time at which the schedule was created.</p>
#[doc(hidden)]
pub creation_date: std::option::Option<aws_smithy_types::DateTime>,
/// <p>The time at which the schedule was last modified.</p>
#[doc(hidden)]
pub last_modification_date: std::option::Option<aws_smithy_types::DateTime>,
/// <p>The ARN for a customer managed KMS Key that is be used to encrypt and decrypt your data.</p>
#[doc(hidden)]
pub kms_key_arn: std::option::Option<std::string::String>,
/// <p>The schedule target.</p>
#[doc(hidden)]
pub target: std::option::Option<crate::model::Target>,
/// <p>Allows you to configure a time window during which EventBridge Scheduler invokes the schedule.</p>
#[doc(hidden)]
pub flexible_time_window: std::option::Option<crate::model::FlexibleTimeWindow>,
}
impl GetScheduleOutput {
/// <p>The Amazon Resource Name (ARN) of the schedule.</p>
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
/// <p>The name of the schedule group associated with this schedule.</p>
pub fn group_name(&self) -> std::option::Option<&str> {
self.group_name.as_deref()
}
/// <p>The name of the schedule.</p>
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
/// <p> The expression that defines when the schedule runs. The following formats are supported. </p>
/// <ul>
/// <li> <p> <code>at</code> expression - <code>at(yyyy-mm-ddThh:mm:ss)</code> </p> </li>
/// <li> <p> <code>rate</code> expression - <code>rate(unit value)</code> </p> </li>
/// <li> <p> <code>cron</code> expression - <code>cron(fields)</code> </p> </li>
/// </ul>
/// <p> You can use <code>at</code> expressions to create one-time schedules that invoke a target once, at the time and in the time zone, that you specify. You can use <code>rate</code> and <code>cron</code> expressions to create recurring schedules. Rate-based schedules are useful when you want to invoke a target at regular intervals, such as every 15 minutes or every five days. Cron-based schedules are useful when you want to invoke a target periodically at a specific time, such as at 8:00 am (UTC+0) every 1st day of the month. </p>
/// <p> A <code>cron</code> expression consists of six fields separated by white spaces: <code>(minutes hours day_of_month month day_of_week year)</code>. </p>
/// <p> A <code>rate</code> expression consists of a <i>value</i> as a positive integer, and a <i>unit</i> with the following options: <code>minute</code> | <code>minutes</code> | <code>hour</code> | <code>hours</code> | <code>day</code> | <code>days</code> </p>
/// <p> For more information and examples, see <a href="https://docs.aws.amazon.com/scheduler/latest/UserGuide/schedule-types.html">Schedule types on EventBridge Scheduler</a> in the <i>EventBridge Scheduler User Guide</i>. </p>
pub fn schedule_expression(&self) -> std::option::Option<&str> {
self.schedule_expression.as_deref()
}
/// <p>The date, in UTC, after which the schedule can begin invoking its target. Depending on the schedule's recurrence expression, invocations might occur on, or after, the <code>StartDate</code> you specify. EventBridge Scheduler ignores <code>StartDate</code> for one-time schedules.</p>
pub fn start_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.start_date.as_ref()
}
/// <p>The date, in UTC, before which the schedule can invoke its target. Depending on the schedule's recurrence expression, invocations might stop on, or before, the <code>EndDate</code> you specify. EventBridge Scheduler ignores <code>EndDate</code> for one-time schedules.</p>
pub fn end_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.end_date.as_ref()
}
/// <p>The description of the schedule.</p>
pub fn description(&self) -> std::option::Option<&str> {
self.description.as_deref()
}
/// <p>The timezone in which the scheduling expression is evaluated.</p>
pub fn schedule_expression_timezone(&self) -> std::option::Option<&str> {
self.schedule_expression_timezone.as_deref()
}
/// <p>Specifies whether the schedule is enabled or disabled.</p>
pub fn state(&self) -> std::option::Option<&crate::model::ScheduleState> {
self.state.as_ref()
}
/// <p>The time at which the schedule was created.</p>
pub fn creation_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.creation_date.as_ref()
}
/// <p>The time at which the schedule was last modified.</p>
pub fn last_modification_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.last_modification_date.as_ref()
}
/// <p>The ARN for a customer managed KMS Key that is be used to encrypt and decrypt your data.</p>
pub fn kms_key_arn(&self) -> std::option::Option<&str> {
self.kms_key_arn.as_deref()
}
/// <p>The schedule target.</p>
pub fn target(&self) -> std::option::Option<&crate::model::Target> {
self.target.as_ref()
}
/// <p>Allows you to configure a time window during which EventBridge Scheduler invokes the schedule.</p>
pub fn flexible_time_window(&self) -> std::option::Option<&crate::model::FlexibleTimeWindow> {
self.flexible_time_window.as_ref()
}
}
/// See [`GetScheduleOutput`](crate::output::GetScheduleOutput).
pub mod get_schedule_output {
/// A builder for [`GetScheduleOutput`](crate::output::GetScheduleOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) arn: std::option::Option<std::string::String>,
pub(crate) group_name: std::option::Option<std::string::String>,
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) schedule_expression: std::option::Option<std::string::String>,
pub(crate) start_date: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) end_date: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) description: std::option::Option<std::string::String>,
pub(crate) schedule_expression_timezone: std::option::Option<std::string::String>,
pub(crate) state: std::option::Option<crate::model::ScheduleState>,
pub(crate) creation_date: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) last_modification_date: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) kms_key_arn: std::option::Option<std::string::String>,
pub(crate) target: std::option::Option<crate::model::Target>,
pub(crate) flexible_time_window: std::option::Option<crate::model::FlexibleTimeWindow>,
}
impl Builder {
/// <p>The Amazon Resource Name (ARN) of the schedule.</p>
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the schedule.</p>
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
/// <p>The name of the schedule group associated with this schedule.</p>
pub fn group_name(mut self, input: impl Into<std::string::String>) -> Self {
self.group_name = Some(input.into());
self
}
/// <p>The name of the schedule group associated with this schedule.</p>
pub fn set_group_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.group_name = input;
self
}
/// <p>The name of the schedule.</p>
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
/// <p>The name of the schedule.</p>
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
/// <p> The expression that defines when the schedule runs. The following formats are supported. </p>
/// <ul>
/// <li> <p> <code>at</code> expression - <code>at(yyyy-mm-ddThh:mm:ss)</code> </p> </li>
/// <li> <p> <code>rate</code> expression - <code>rate(unit value)</code> </p> </li>
/// <li> <p> <code>cron</code> expression - <code>cron(fields)</code> </p> </li>
/// </ul>
/// <p> You can use <code>at</code> expressions to create one-time schedules that invoke a target once, at the time and in the time zone, that you specify. You can use <code>rate</code> and <code>cron</code> expressions to create recurring schedules. Rate-based schedules are useful when you want to invoke a target at regular intervals, such as every 15 minutes or every five days. Cron-based schedules are useful when you want to invoke a target periodically at a specific time, such as at 8:00 am (UTC+0) every 1st day of the month. </p>
/// <p> A <code>cron</code> expression consists of six fields separated by white spaces: <code>(minutes hours day_of_month month day_of_week year)</code>. </p>
/// <p> A <code>rate</code> expression consists of a <i>value</i> as a positive integer, and a <i>unit</i> with the following options: <code>minute</code> | <code>minutes</code> | <code>hour</code> | <code>hours</code> | <code>day</code> | <code>days</code> </p>
/// <p> For more information and examples, see <a href="https://docs.aws.amazon.com/scheduler/latest/UserGuide/schedule-types.html">Schedule types on EventBridge Scheduler</a> in the <i>EventBridge Scheduler User Guide</i>. </p>
pub fn schedule_expression(mut self, input: impl Into<std::string::String>) -> Self {
self.schedule_expression = Some(input.into());
self
}
/// <p> The expression that defines when the schedule runs. The following formats are supported. </p>
/// <ul>
/// <li> <p> <code>at</code> expression - <code>at(yyyy-mm-ddThh:mm:ss)</code> </p> </li>
/// <li> <p> <code>rate</code> expression - <code>rate(unit value)</code> </p> </li>
/// <li> <p> <code>cron</code> expression - <code>cron(fields)</code> </p> </li>
/// </ul>
/// <p> You can use <code>at</code> expressions to create one-time schedules that invoke a target once, at the time and in the time zone, that you specify. You can use <code>rate</code> and <code>cron</code> expressions to create recurring schedules. Rate-based schedules are useful when you want to invoke a target at regular intervals, such as every 15 minutes or every five days. Cron-based schedules are useful when you want to invoke a target periodically at a specific time, such as at 8:00 am (UTC+0) every 1st day of the month. </p>
/// <p> A <code>cron</code> expression consists of six fields separated by white spaces: <code>(minutes hours day_of_month month day_of_week year)</code>. </p>
/// <p> A <code>rate</code> expression consists of a <i>value</i> as a positive integer, and a <i>unit</i> with the following options: <code>minute</code> | <code>minutes</code> | <code>hour</code> | <code>hours</code> | <code>day</code> | <code>days</code> </p>
/// <p> For more information and examples, see <a href="https://docs.aws.amazon.com/scheduler/latest/UserGuide/schedule-types.html">Schedule types on EventBridge Scheduler</a> in the <i>EventBridge Scheduler User Guide</i>. </p>
pub fn set_schedule_expression(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.schedule_expression = input;
self
}
/// <p>The date, in UTC, after which the schedule can begin invoking its target. Depending on the schedule's recurrence expression, invocations might occur on, or after, the <code>StartDate</code> you specify. EventBridge Scheduler ignores <code>StartDate</code> for one-time schedules.</p>
pub fn start_date(mut self, input: aws_smithy_types::DateTime) -> Self {
self.start_date = Some(input);
self
}
/// <p>The date, in UTC, after which the schedule can begin invoking its target. Depending on the schedule's recurrence expression, invocations might occur on, or after, the <code>StartDate</code> you specify. EventBridge Scheduler ignores <code>StartDate</code> for one-time schedules.</p>
pub fn set_start_date(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.start_date = input;
self
}
/// <p>The date, in UTC, before which the schedule can invoke its target. Depending on the schedule's recurrence expression, invocations might stop on, or before, the <code>EndDate</code> you specify. EventBridge Scheduler ignores <code>EndDate</code> for one-time schedules.</p>
pub fn end_date(mut self, input: aws_smithy_types::DateTime) -> Self {
self.end_date = Some(input);
self
}
/// <p>The date, in UTC, before which the schedule can invoke its target. Depending on the schedule's recurrence expression, invocations might stop on, or before, the <code>EndDate</code> you specify. EventBridge Scheduler ignores <code>EndDate</code> for one-time schedules.</p>
pub fn set_end_date(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.end_date = input;
self
}
/// <p>The description of the schedule.</p>
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.description = Some(input.into());
self
}
/// <p>The description of the schedule.</p>
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.description = input;
self
}
/// <p>The timezone in which the scheduling expression is evaluated.</p>
pub fn schedule_expression_timezone(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.schedule_expression_timezone = Some(input.into());
self
}
/// <p>The timezone in which the scheduling expression is evaluated.</p>
pub fn set_schedule_expression_timezone(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.schedule_expression_timezone = input;
self
}
/// <p>Specifies whether the schedule is enabled or disabled.</p>
pub fn state(mut self, input: crate::model::ScheduleState) -> Self {
self.state = Some(input);
self
}
/// <p>Specifies whether the schedule is enabled or disabled.</p>
pub fn set_state(
mut self,
input: std::option::Option<crate::model::ScheduleState>,
) -> Self {
self.state = input;
self
}
/// <p>The time at which the schedule was created.</p>
pub fn creation_date(mut self, input: aws_smithy_types::DateTime) -> Self {
self.creation_date = Some(input);
self
}
/// <p>The time at which the schedule was created.</p>
pub fn set_creation_date(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.creation_date = input;
self
}
/// <p>The time at which the schedule was last modified.</p>
pub fn last_modification_date(mut self, input: aws_smithy_types::DateTime) -> Self {
self.last_modification_date = Some(input);
self
}
/// <p>The time at which the schedule was last modified.</p>
pub fn set_last_modification_date(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.last_modification_date = input;
self
}
/// <p>The ARN for a customer managed KMS Key that is be used to encrypt and decrypt your data.</p>
pub fn kms_key_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.kms_key_arn = Some(input.into());
self
}
/// <p>The ARN for a customer managed KMS Key that is be used to encrypt and decrypt your data.</p>
pub fn set_kms_key_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.kms_key_arn = input;
self
}
/// <p>The schedule target.</p>
pub fn target(mut self, input: crate::model::Target) -> Self {
self.target = Some(input);
self
}
/// <p>The schedule target.</p>
pub fn set_target(mut self, input: std::option::Option<crate::model::Target>) -> Self {
self.target = input;
self
}
/// <p>Allows you to configure a time window during which EventBridge Scheduler invokes the schedule.</p>
pub fn flexible_time_window(mut self, input: crate::model::FlexibleTimeWindow) -> Self {
self.flexible_time_window = Some(input);
self
}
/// <p>Allows you to configure a time window during which EventBridge Scheduler invokes the schedule.</p>
pub fn set_flexible_time_window(
mut self,
input: std::option::Option<crate::model::FlexibleTimeWindow>,
) -> Self {
self.flexible_time_window = input;
self
}
/// Consumes the builder and constructs a [`GetScheduleOutput`](crate::output::GetScheduleOutput).
pub fn build(self) -> crate::output::GetScheduleOutput {
crate::output::GetScheduleOutput {
arn: self.arn,
group_name: self.group_name,
name: self.name,
schedule_expression: self.schedule_expression,
start_date: self.start_date,
end_date: self.end_date,
description: self.description,
schedule_expression_timezone: self.schedule_expression_timezone,
state: self.state,
creation_date: self.creation_date,
last_modification_date: self.last_modification_date,
kms_key_arn: self.kms_key_arn,
target: self.target,
flexible_time_window: self.flexible_time_window,
}
}
}
}
impl GetScheduleOutput {
/// Creates a new builder-style object to manufacture [`GetScheduleOutput`](crate::output::GetScheduleOutput).
pub fn builder() -> crate::output::get_schedule_output::Builder {
crate::output::get_schedule_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UntagResourceOutput {}
/// See [`UntagResourceOutput`](crate::output::UntagResourceOutput).
pub mod untag_resource_output {
/// A builder for [`UntagResourceOutput`](crate::output::UntagResourceOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`UntagResourceOutput`](crate::output::UntagResourceOutput).
pub fn build(self) -> crate::output::UntagResourceOutput {
crate::output::UntagResourceOutput {}
}
}
}
impl UntagResourceOutput {
/// Creates a new builder-style object to manufacture [`UntagResourceOutput`](crate::output::UntagResourceOutput).
pub fn builder() -> crate::output::untag_resource_output::Builder {
crate::output::untag_resource_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TagResourceOutput {}
/// See [`TagResourceOutput`](crate::output::TagResourceOutput).
pub mod tag_resource_output {
/// A builder for [`TagResourceOutput`](crate::output::TagResourceOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`TagResourceOutput`](crate::output::TagResourceOutput).
pub fn build(self) -> crate::output::TagResourceOutput {
crate::output::TagResourceOutput {}
}
}
}
impl TagResourceOutput {
/// Creates a new builder-style object to manufacture [`TagResourceOutput`](crate::output::TagResourceOutput).
pub fn builder() -> crate::output::tag_resource_output::Builder {
crate::output::tag_resource_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListTagsForResourceOutput {
/// <p>The list of tags associated with the specified resource.</p>
#[doc(hidden)]
pub tags: std::option::Option<std::vec::Vec<crate::model::Tag>>,
}
impl ListTagsForResourceOutput {
/// <p>The list of tags associated with the specified resource.</p>
pub fn tags(&self) -> std::option::Option<&[crate::model::Tag]> {
self.tags.as_deref()
}
}
/// See [`ListTagsForResourceOutput`](crate::output::ListTagsForResourceOutput).
pub mod list_tags_for_resource_output {
/// A builder for [`ListTagsForResourceOutput`](crate::output::ListTagsForResourceOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) tags: std::option::Option<std::vec::Vec<crate::model::Tag>>,
}
impl Builder {
/// Appends an item to `tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>The list of tags associated with the specified resource.</p>
pub fn tags(mut self, input: crate::model::Tag) -> Self {
let mut v = self.tags.unwrap_or_default();
v.push(input);
self.tags = Some(v);
self
}
/// <p>The list of tags associated with the specified resource.</p>
pub fn set_tags(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Tag>>,
) -> Self {
self.tags = input;
self
}
/// Consumes the builder and constructs a [`ListTagsForResourceOutput`](crate::output::ListTagsForResourceOutput).
pub fn build(self) -> crate::output::ListTagsForResourceOutput {
crate::output::ListTagsForResourceOutput { tags: self.tags }
}
}
}
impl ListTagsForResourceOutput {
/// Creates a new builder-style object to manufacture [`ListTagsForResourceOutput`](crate::output::ListTagsForResourceOutput).
pub fn builder() -> crate::output::list_tags_for_resource_output::Builder {
crate::output::list_tags_for_resource_output::Builder::default()
}
}