Skip to content

Commit 1640cdd

Browse files
author
Aman Alam
authored
Merge branch 'master' into master
2 parents b497fe5 + 1497300 commit 1640cdd

21 files changed

+491
-278
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package com.akamai;
2+
3+
import com.akamai.builders.APIEventDu;
4+
import com.akamai.builders.APIEventMkDir;
5+
import com.akamai.builders.APIEventMtime;
6+
7+
public class APIEventBuilder {
8+
public static APIEventMkDir mkdir() {
9+
return new APIEventMkDir();
10+
}
11+
12+
public static APIEventDu du() {
13+
return new APIEventDu();
14+
}
15+
16+
public static APIEventMtime mtime() {
17+
return new APIEventMtime();
18+
}
19+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package com.akamai.builders;
2+
3+
import com.akamai.netstorage.APIEventBean;
4+
5+
public class APIEventDelete extends APIEventBean {
6+
public APIEventDelete() {
7+
super("delete");
8+
}
9+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.akamai.builders;
2+
3+
public class APIEventDir extends APIEventWithFormat {
4+
public APIEventDir() {
5+
super("dir");
6+
}
7+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package com.akamai.builders;
2+
3+
import com.akamai.netstorage.APIEventBean;
4+
5+
public class APIEventDownload extends APIEventBean {
6+
public APIEventDownload() {
7+
super("download");
8+
}
9+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.akamai.builders;
2+
3+
public class APIEventDu extends APIEventWithFormat {
4+
public APIEventDu() {
5+
super("du");
6+
}
7+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package com.akamai.builders;
2+
3+
import com.akamai.netstorage.APIEventBean;
4+
5+
public class APIEventMkDir extends APIEventBean {
6+
public APIEventMkDir() {
7+
super("mkdir");
8+
}
9+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package com.akamai.builders;
2+
3+
import com.akamai.netstorage.APIEventBean;
4+
import com.akamai.netstorage.parameter.DateValueFormatter;
5+
import com.akamai.netstorage.parameter.Parameter;
6+
7+
import java.util.Date;
8+
9+
public class APIEventMtime extends APIEventBean {
10+
@Parameter(name = "mtime", formatter = DateValueFormatter.class)
11+
private Date mtime;
12+
13+
public APIEventMtime() {
14+
super("mtime");
15+
}
16+
17+
public APIEventMtime withMtime(Date mtime) {
18+
this.mtime = mtime;
19+
return this;
20+
}
21+
22+
public Date getMtime() {
23+
return mtime;
24+
}
25+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package com.akamai.builders;
2+
3+
import com.akamai.netstorage.APIEventBean;
4+
import com.akamai.netstorage.parameter.Parameter;
5+
6+
public class APIEventQuickDelete extends APIEventBean {
7+
@Parameter(name = "quick-delete")
8+
private final String quickDelete;
9+
10+
public APIEventQuickDelete() {
11+
super("quick-delete");
12+
this.quickDelete = "imreallyreallysure";
13+
}
14+
15+
public String getQuickDelete() {
16+
return quickDelete;
17+
}
18+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package com.akamai.builders;
2+
3+
import com.akamai.netstorage.APIEventBean;
4+
5+
public class APIEventRename extends APIEventBean {
6+
private String destination;
7+
8+
public APIEventRename() {
9+
super("rename");
10+
}
11+
12+
public APIEventBean to(String destination) {
13+
this.destination = destination;
14+
return this;
15+
}
16+
17+
public String getDestination() {
18+
return destination;
19+
}
20+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package com.akamai.builders;
2+
3+
import com.akamai.netstorage.APIEventBean;
4+
5+
public class APIEventRmdir extends APIEventBean {
6+
public APIEventRmdir() {
7+
super("rmdir");
8+
}
9+
}

0 commit comments

Comments
 (0)