This class acts as a tagged union. Only one of the ``is_*`` methods will return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. :ivar CreateFolderBatchResult CreateFolderBatchJobStatus.complete: The batch create folder has
| 603 | CreateFolderBatchError_validator = bv.Union(CreateFolderBatchError) |
| 604 | |
| 605 | class CreateFolderBatchJobStatus(async_.PollResultBase): |
| 606 | """ |
| 607 | This class acts as a tagged union. Only one of the ``is_*`` methods will |
| 608 | return true. To get the associated value of a tag (if one exists), use the |
| 609 | corresponding ``get_*`` method. |
| 610 | |
| 611 | :ivar CreateFolderBatchResult CreateFolderBatchJobStatus.complete: The batch |
| 612 | create folder has finished. |
| 613 | :ivar CreateFolderBatchError CreateFolderBatchJobStatus.failed: The batch |
| 614 | create folder has failed. |
| 615 | """ |
| 616 | |
| 617 | _catch_all = 'other' |
| 618 | # Attribute is overwritten below the class definition |
| 619 | other = None |
| 620 | |
| 621 | @classmethod |
| 622 | def complete(cls, val): |
| 623 | """ |
| 624 | Create an instance of this class set to the ``complete`` tag with value |
| 625 | ``val``. |
| 626 | |
| 627 | :param CreateFolderBatchResult val: |
| 628 | :rtype: CreateFolderBatchJobStatus |
| 629 | """ |
| 630 | return cls('complete', val) |
| 631 | |
| 632 | @classmethod |
| 633 | def failed(cls, val): |
| 634 | """ |
| 635 | Create an instance of this class set to the ``failed`` tag with value |
| 636 | ``val``. |
| 637 | |
| 638 | :param CreateFolderBatchError val: |
| 639 | :rtype: CreateFolderBatchJobStatus |
| 640 | """ |
| 641 | return cls('failed', val) |
| 642 | |
| 643 | def is_complete(self): |
| 644 | """ |
| 645 | Check if the union tag is ``complete``. |
| 646 | |
| 647 | :rtype: bool |
| 648 | """ |
| 649 | return self._tag == 'complete' |
| 650 | |
| 651 | def is_failed(self): |
| 652 | """ |
| 653 | Check if the union tag is ``failed``. |
| 654 | |
| 655 | :rtype: bool |
| 656 | """ |
| 657 | return self._tag == 'failed' |
| 658 | |
| 659 | def is_other(self): |
| 660 | """ |
| 661 | Check if the union tag is ``other``. |
| 662 |