Please solve the programming task below using a self-contained code snippet in a markdown code block.

You are given an integer num. You can swap two digits at most once to get the maximum valued number.
Return the maximum valued number you can get.
 
Please complete the following python code precisely:
```python
class Solution:
    def maximumSwap(self, num: int) -> int:
```