MinioClient { public static Builder builder() { return new Builder(); } private  MinioClient(
      HttpUrl baseUrl,
      String region,
      boolean isAwsHost,
      boolean isAcceleratedHost,
      boolean isDualStackHost,
      boolean useVirtualStyle,
      String accessKey,
      String secretKey,
      OkHttpClient httpClient); private  MinioClient(MinioClient client); @Deprecated  MinioClient(String endpoint); @Deprecated  MinioClient(URL url); @Deprecated  MinioClient(HttpUrl url); @Deprecated  MinioClient(String endpoint, String accessKey, String secretKey); @Deprecated  MinioClient(String endpoint, String accessKey, String secretKey, String region); @Deprecated  MinioClient(URL url, String accessKey, String secretKey); @Deprecated  MinioClient(HttpUrl url, String accessKey, String secretKey); @Deprecated  MinioClient(String endpoint, int port, String accessKey, String secretKey); @Deprecated  MinioClient(String endpoint, String accessKey, String secretKey, boolean secure); @Deprecated  MinioClient(String endpoint, int port, String accessKey, String secretKey, boolean secure); @Deprecated  MinioClient(
      String endpoint, int port, String accessKey, String secretKey, String region, boolean secure); @Deprecated  MinioClient(
      String endpoint,
      Integer port,
      String accessKey,
      String secretKey,
      String region,
      Boolean secure,
      OkHttpClient httpClient); @Deprecated ObjectStat statObject(String bucketName, String objectName); @Deprecated ObjectStat statObject(
      String bucketName, String objectName, ServerSideEncryptionCustomerKey ssec); ObjectStat statObject(StatObjectArgs args); String getObjectUrl(String bucketName, String objectName); @Deprecated InputStream getObject(String bucketName, String objectName); @Deprecated InputStream getObject(
      String bucketName, String objectName, ServerSideEncryptionCustomerKey ssec); @Deprecated InputStream getObject(String bucketName, String objectName, long offset); @Deprecated InputStream getObject(String bucketName, String objectName, long offset, Long length); @Deprecated InputStream getObject(
      String bucketName,
      String objectName,
      Long offset,
      Long length,
      ServerSideEncryptionCustomerKey ssec); InputStream getObject(GetObjectArgs args); @Deprecated void getObject(String bucketName, String objectName, String fileName); @Deprecated void getObject(
      String bucketName, String objectName, ServerSideEncryptionCustomerKey ssec, String fileName); void downloadObject(DownloadObjectArgs args); @Deprecated void copyObject(
      String bucketName,
      String objectName,
      Map<String, String> headerMap,
      ServerSideEncryption sse,
      String srcBucketName,
      String srcObjectName,
      ServerSideEncryption srcSse,
      CopyConditions copyConditions); ObjectWriteResponse copyObject(CopyObjectArgs args); @Deprecated void composeObject(
      String bucketName,
      String objectName,
      List<ComposeSource> sources,
      Map<String, String> headerMap,
      ServerSideEncryption sse); ObjectWriteResponse composeObject(ComposeObjectArgs args); @Deprecated String getPresignedObjectUrl(
      Method method,
      String bucketName,
      String objectName,
      Integer expires,
      Map<String, String> reqParams); String getPresignedObjectUrl(GetPresignedObjectUrlArgs args); @Deprecated String presignedGetObject(
      String bucketName, String objectName, Integer expires, Map<String, String> reqParams); @Deprecated String presignedGetObject(String bucketName, String objectName, Integer expires); @Deprecated String presignedGetObject(String bucketName, String objectName); @Deprecated String presignedPutObject(String bucketName, String objectName, Integer expires); @Deprecated String presignedPutObject(String bucketName, String objectName); Map<String, String> presignedPostPolicy(PostPolicy policy); @Deprecated void removeObject(String bucketName, String objectName); void removeObject(RemoveObjectArgs args); @Deprecated Iterable<Result<DeleteError>> removeObjects(
      final String bucketName, final Iterable<String> objectNames); Iterable<Result<DeleteError>> removeObjects(RemoveObjectsArgs args); @Deprecated Iterable<Result<Item>> listObjects(final String bucketName); @Deprecated Iterable<Result<Item>> listObjects(final String bucketName, final String prefix); @Deprecated Iterable<Result<Item>> listObjects(
      final String bucketName, final String prefix, final boolean recursive); @Deprecated Iterable<Result<Item>> listObjects(
      final String bucketName,
      final String prefix,
      final boolean recursive,
      final boolean useVersion1); @Deprecated Iterable<Result<Item>> listObjects(
      final String bucketName,
      final String prefix,
      final boolean recursive,
      final boolean includeUserMetadata,
      final boolean useVersion1); Iterable<Result<Item>> listObjects(ListObjectsArgs args); List<Bucket> listBuckets(); @Deprecated boolean bucketExists(String bucketName); boolean bucketExists(BucketExistsArgs args); @Deprecated void makeBucket(String bucketName); @Deprecated void makeBucket(String bucketName, String region); @Deprecated void makeBucket(String bucketName, String region, boolean objectLock); void makeBucket(MakeBucketArgs args); @Deprecated void enableVersioning(String bucketName); void enableVersioning(EnableVersioningArgs args); @Deprecated void disableVersioning(String bucketName); void disableVersioning(DisableVersioningArgs args); boolean isVersioningEnabled(IsVersioningEnabledArgs args); @Deprecated void setDefaultRetention(String bucketName, ObjectLockConfiguration config); void setDefaultRetention(SetDefaultRetentionArgs args); void deleteDefaultRetention(DeleteDefaultRetentionArgs args); @Deprecated ObjectLockConfiguration getDefaultRetention(String bucketName); ObjectLockConfiguration getDefaultRetention(GetDefaultRetentionArgs args); @Deprecated void setObjectRetention(
      String bucketName,
      String objectName,
      String versionId,
      Retention config,
      boolean bypassGovernanceMode); void setObjectRetention(SetObjectRetentionArgs args); @Deprecated Retention getObjectRetention(String bucketName, String objectName, String versionId); Retention getObjectRetention(GetObjectRetentionArgs args); @Deprecated void enableObjectLegalHold(String bucketName, String objectName, String versionId); void enableObjectLegalHold(EnableObjectLegalHoldArgs args); @Deprecated void disableObjectLegalHold(String bucketName, String objectName, String versionId); void disableObjectLegalHold(DisableObjectLegalHoldArgs args); @Deprecated boolean isObjectLegalHoldEnabled(String bucketName, String objectName, String versionId); boolean isObjectLegalHoldEnabled(IsObjectLegalHoldEnabledArgs args); @Deprecated void removeBucket(String bucketName); void removeBucket(RemoveBucketArgs args); @Deprecated void putObject(
      String bucketName, String objectName, String filename, PutObjectOptions options); @Deprecated void putObject(
      String bucketName, String objectName, InputStream stream, PutObjectOptions options); ObjectWriteResponse putObject(PutObjectArgs args); ObjectWriteResponse uploadObject(UploadObjectArgs args); @Deprecated String getBucketPolicy(String bucketName); String getBucketPolicy(GetBucketPolicyArgs args); @Deprecated void setBucketPolicy(String bucketName, String policy); void setBucketPolicy(SetBucketPolicyArgs args); void deleteBucketPolicy(DeleteBucketPolicyArgs args); @Deprecated void setBucketLifeCycle(String bucketName, String lifeCycle); void setBucketLifeCycle(SetBucketLifeCycleArgs args); @Deprecated void deleteBucketLifeCycle(String bucketName); void deleteBucketLifeCycle(DeleteBucketLifeCycleArgs args); @Deprecated String getBucketLifeCycle(String bucketName); String getBucketLifeCycle(GetBucketLifeCycleArgs args); @Deprecated NotificationConfiguration getBucketNotification(String bucketName); NotificationConfiguration getBucketNotification(GetBucketNotificationArgs args); @Deprecated void setBucketNotification(
      String bucketName, NotificationConfiguration notificationConfiguration); void setBucketNotification(SetBucketNotificationArgs args); @Deprecated void removeAllBucketNotification(String bucketName); void deleteBucketNotification(DeleteBucketNotificationArgs args); @Deprecated Iterable<Result<Upload>> listIncompleteUploads(String bucketName); @Deprecated Iterable<Result<Upload>> listIncompleteUploads(String bucketName, String prefix); @Deprecated Iterable<Result<Upload>> listIncompleteUploads(
      String bucketName, String prefix, boolean recursive); Iterable<Result<Upload>> listIncompleteUploads(ListIncompleteUploadsArgs args); @Deprecated void removeIncompleteUpload(String bucketName, String objectName); void removeIncompleteUpload(RemoveIncompleteUploadArgs args); @Deprecated CloseableIterator<Result<NotificationRecords>> listenBucketNotification(
      String bucketName, String prefix, String suffix, String[] events); CloseableIterator<Result<NotificationRecords>> listenBucketNotification(
      ListenBucketNotificationArgs args); @Deprecated SelectResponseStream selectObjectContent(
      String bucketName,
      String objectName,
      String sqlExpression,
      InputSerialization is,
      OutputSerialization os,
      boolean requestProgress,
      Long scanStartRange,
      Long scanEndRange,
      ServerSideEncryptionCustomerKey ssec); SelectResponseStream selectObjectContent(SelectObjectContentArgs args); void setBucketEncryption(SetBucketEncryptionArgs args); SseConfiguration getBucketEncryption(GetBucketEncryptionArgs args); void deleteBucketEncryption(DeleteBucketEncryptionArgs args); Tags getBucketTags(GetBucketTagsArgs args); void setBucketTags(SetBucketTagsArgs args); void deleteBucketTags(DeleteBucketTagsArgs args); Tags getObjectTags(GetObjectTagsArgs args); void setObjectTags(SetObjectTagsArgs args); void deleteObjectTags(DeleteObjectTagsArgs args); void setTimeout(long connectTimeout, long writeTimeout, long readTimeout); @SuppressFBWarnings(value = "SIC", justification = "Should not be used in production anyways.") void ignoreCertCheck(); @SuppressWarnings("unused") void setAppInfo(String name, String version); void traceOn(OutputStream traceStream); void traceOff(); void enableAccelerateEndpoint(); void disableAccelerateEndpoint(); void enableDualStackEndpoint(); void disableDualStackEndpoint(); void enableVirtualStyleEndpoint(); void disableVirtualStyleEndpoint(); static Builder builder();  }
@Test(expected = IllegalArgumentException.class) public void testEndpoint3() throws MinioException { MinioClient.builder().endpoint("minio-.example.com").build(); Assert.fail("exception should be thrown"); }
@Test(expected = IllegalArgumentException.class) public void testEndpoint4() throws MinioException { MinioClient.builder().endpoint("-minio.example.com").build(); Assert.fail("exception should be thrown"); }
@Test(expected = IllegalArgumentException.class) public void testEndpoint5() throws MinioException { MinioClient.builder().endpoint("minio..example.com").build(); Assert.fail("exception should be thrown"); }
@Test(expected = IllegalArgumentException.class) public void testEndpoint6() throws MinioException { MinioClient.builder().endpoint("minio._.com").build(); Assert.fail("exception should be thrown"); }
@Test(expected = IllegalArgumentException.class) public void testEndpoint7() throws MinioException { MinioClient.builder().endpoint("https: Assert.fail("exception should be thrown"); }
@Test(expected = IllegalArgumentException.class) public void testPort1() throws MinioException { MinioClient.builder().endpoint("play.min.io", 0, false).build(); Assert.fail("exception should be thrown"); }
@Test(expected = IllegalArgumentException.class) public void testPort2() throws MinioException { MinioClient.builder().endpoint("play.min.io", 70000, false).build(); Assert.fail("exception should be thrown"); }
@Test(expected = IllegalArgumentException.class) public void testEndpoint1() throws MinioException { MinioClient.builder().endpoint((String) null).build(); Assert.fail("exception should be thrown"); }
@Test(expected = IllegalArgumentException.class) public void testEndpoint2() throws MinioException { MinioClient.builder().endpoint("http: Assert.fail("exception should be thrown"); }