// Get bucket notifications - this works only with AWS endpoint
        public async static Task Run(Minio.MinioClient minio,
                                     string bucketName = "my-bucket-name")
        {
            try
            {
                Console.Out.WriteLine("Running example for API: GetBucketNotificationsAsync");
                BucketNotification notifications = await minio.GetBucketNotificationsAsync(bucketName);

                Console.Out.WriteLine("Notifications is " + notifications.ToXML() + " for bucket " + bucketName);
                Console.Out.WriteLine();
            }
            catch (Exception e)
            {
                Console.Out.WriteLine("Error parsing bucket notifications - make sure that you are running this call against AWS end point: " + e.Message);
            }
        }
        // Get bucket notifications - this works only with AWS endpoint
        public async static Task Run(MinioClient minio,
                                     string bucketName = "my-bucket-name")
        {
            try
            {
                Console.WriteLine("Running example for API: GetBucketNotificationsAsync");
                GetBucketNotificationsArgs args = new GetBucketNotificationsArgs()
                                                  .WithBucket(bucketName);
                BucketNotification notifications = await minio.GetBucketNotificationsAsync(args);

                Console.WriteLine($"Notifications is {notifications.ToXML()} for bucket {bucketName}");
                Console.WriteLine();
            }
            catch (Exception e)
            {
                Console.WriteLine($"Error parsing bucket notifications - make sure that you are running this call against AWS end point: {e.Message}");
                Console.WriteLine(e.StackTrace);
            }
        }