-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
56 changed files
with
3,187 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
51 changes: 51 additions & 0 deletions
51
src/main/java/com/baidubce/services/doc/model/CreateDocumentFromBosRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
package com.baidubce.services.doc.model; | ||
|
||
import com.baidubce.auth.BceCredentials; | ||
import com.baidubce.model.AbstractBceRequest; | ||
|
||
/** | ||
* Created by baidu on 15/12/30. | ||
*/ | ||
public class CreateDocumentFromBosRequest extends AbstractBceRequest { | ||
private String bucket = null; | ||
private String object = null; | ||
private String title = null; | ||
private String format = null; | ||
private String notification = null; | ||
|
||
public CreateDocumentFromBosRequest withRequestCredentials(BceCredentials credentials) { | ||
this.setRequestCredentials(credentials); | ||
return this; | ||
} | ||
|
||
public String getBucket() { return this.bucket; } | ||
|
||
public void setBucket(String bucket) { | ||
this.bucket = bucket; | ||
} | ||
|
||
public String getObject() { return this.object; } | ||
|
||
public void setObject(String object) { | ||
this.object = object; | ||
} | ||
|
||
public String getFormat() { return this.format; } | ||
|
||
public void setFormat(String format) { | ||
this.format = format; | ||
} | ||
|
||
public String getNotification() { return this.notification; } | ||
|
||
public void setNotification(String notification) { | ||
this.notification = notification; | ||
} | ||
|
||
public String getTitle() { return this.title; } | ||
|
||
public void setTitle(String title) { | ||
this.title = title; | ||
} | ||
|
||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/com/baidubce/services/doc/model/CreateDocumentFromBosResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.baidubce.services.doc.model; | ||
|
||
import com.baidubce.model.AbstractBceResponse; | ||
|
||
/** | ||
* Created by baidu on 15/12/31. | ||
*/ | ||
public class CreateDocumentFromBosResponse extends AbstractBceResponse { | ||
private String documentId; | ||
|
||
public void setDocumentId(String documentId) { | ||
this.documentId = documentId; | ||
} | ||
|
||
public String getDocumentId() { return this.documentId; } | ||
} |
46 changes: 46 additions & 0 deletions
46
src/main/java/com/baidubce/services/doc/model/CreateDocumentRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package com.baidubce.services.doc.model; | ||
|
||
import com.baidubce.auth.BceCredentials; | ||
import com.baidubce.model.AbstractBceRequest; | ||
|
||
import java.io.File; | ||
|
||
/** | ||
* Created by baidu on 15/12/30. | ||
*/ | ||
public class CreateDocumentRequest extends AbstractBceRequest { | ||
private File file = null; | ||
private String title = null; | ||
private String format = null; | ||
private String notification = null; | ||
|
||
public CreateDocumentRequest withRequestCredentials(BceCredentials credentials) { | ||
this.setRequestCredentials(credentials); | ||
return this; | ||
} | ||
|
||
public File getFile() { return this.file; } | ||
|
||
public void setFile(File file) { | ||
this.file = file; | ||
} | ||
|
||
public String getFormat() { return this.format; } | ||
|
||
public void setFormat(String format) { | ||
this.format = format; | ||
} | ||
|
||
public String getNotification() { return this.notification; } | ||
|
||
public void setNotification(String notification) { | ||
this.notification = notification; | ||
} | ||
|
||
public String getTitle() { return this.title; } | ||
|
||
public void setTitle(String title) { | ||
this.title = title; | ||
} | ||
|
||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/com/baidubce/services/doc/model/CreateDocumentResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.baidubce.services.doc.model; | ||
|
||
import com.baidubce.model.AbstractBceResponse; | ||
|
||
/** | ||
* Created by baidu on 15/12/31. | ||
*/ | ||
public class CreateDocumentResponse extends AbstractBceResponse { | ||
private String documentId; | ||
|
||
public void setDocumentId(String documentId) { | ||
this.documentId = documentId; | ||
} | ||
|
||
public String getDocumentId() { return this.documentId; } | ||
} |
72 changes: 72 additions & 0 deletions
72
src/main/java/com/baidubce/services/doc/model/CreateNotificationRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/* | ||
* Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on | ||
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations under the License. | ||
*/ | ||
|
||
package com.baidubce.services.doc.model; | ||
|
||
import com.baidubce.auth.BceCredentials; | ||
import com.baidubce.model.AbstractBceRequest; | ||
|
||
public class CreateNotificationRequest extends AbstractBceRequest { | ||
|
||
/** | ||
* 通知名称 | ||
**/ | ||
private String name = null; | ||
|
||
/** | ||
* 通知消息接收地址 | ||
**/ | ||
private String endpoint = null; | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public CreateNotificationRequest withName(String name) { | ||
this.name = name; | ||
return this; | ||
} | ||
|
||
public String getEndpoint() { | ||
return endpoint; | ||
} | ||
|
||
public void setEndpoint(String endpoint) { | ||
this.endpoint = endpoint; | ||
} | ||
|
||
public CreateNotificationRequest withEndpoint(String endpoint) { | ||
this.endpoint = endpoint; | ||
return this; | ||
} | ||
|
||
|
||
public CreateNotificationRequest withRequestCredentials(BceCredentials credentials) { | ||
this.setRequestCredentials(credentials); | ||
return this; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
final StringBuilder sb = new StringBuilder(); | ||
sb.append("class CreateNotificationRequest {\n"); | ||
sb.append(" name: ").append(name).append("\n"); | ||
sb.append(" endpoint: ").append(endpoint).append("\n"); | ||
sb.append("}\n"); | ||
return sb.toString(); | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
src/main/java/com/baidubce/services/doc/model/CreateNotificationResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on | ||
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations under the License. | ||
*/ | ||
|
||
package com.baidubce.services.doc.model; | ||
|
||
import com.baidubce.model.AbstractBceResponse; | ||
|
||
public class CreateNotificationResponse extends AbstractBceResponse { | ||
@Override | ||
public String toString() { | ||
final StringBuilder sb = new StringBuilder(); | ||
sb.append("class CreateNotificationResponse {\n"); | ||
sb.append("}\n"); | ||
return sb.toString(); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/main/java/com/baidubce/services/doc/model/DeleteDocumentRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.baidubce.services.doc.model; | ||
|
||
import com.baidubce.auth.BceCredentials; | ||
import com.baidubce.model.AbstractBceRequest; | ||
|
||
/** | ||
* Created by baidu on 15/12/30. | ||
*/ | ||
public class DeleteDocumentRequest extends AbstractBceRequest { | ||
|
||
private String documentId = null; | ||
|
||
public DeleteDocumentRequest withRequestCredentials(BceCredentials credentials) { | ||
this.setRequestCredentials(credentials); | ||
return this; | ||
} | ||
|
||
public String getDocumentId() { return this.documentId; } | ||
|
||
public void setDocumentId(String documentId) { | ||
this.documentId = documentId; | ||
} | ||
|
||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/com/baidubce/services/doc/model/DeleteDocumentResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.baidubce.services.doc.model; | ||
|
||
import com.baidubce.model.AbstractBceResponse; | ||
|
||
/** | ||
* Created by baidu on 15/12/31. | ||
*/ | ||
public class DeleteDocumentResponse extends AbstractBceResponse { | ||
|
||
} |
51 changes: 51 additions & 0 deletions
51
src/main/java/com/baidubce/services/doc/model/DeleteNotificationRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
* Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on | ||
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations under the License. | ||
*/ | ||
|
||
package com.baidubce.services.doc.model; | ||
|
||
import com.baidubce.auth.BceCredentials; | ||
import com.baidubce.model.AbstractBceRequest; | ||
|
||
public class DeleteNotificationRequest extends AbstractBceRequest { | ||
/** | ||
* 通知名称 | ||
**/ | ||
private String name = null; | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public DeleteNotificationRequest withName(String name) { | ||
this.name = name; | ||
return this; | ||
} | ||
|
||
public DeleteNotificationRequest withRequestCredentials(BceCredentials credentials) { | ||
this.setRequestCredentials(credentials); | ||
return this; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
final StringBuilder sb = new StringBuilder(); | ||
sb.append("class DeleteNotificationRequest {\n"); | ||
sb.append(" name: ").append(name).append("\n"); | ||
sb.append("}\n"); | ||
return sb.toString(); | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
src/main/java/com/baidubce/services/doc/model/DeleteNotificationResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on | ||
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations under the License. | ||
*/ | ||
|
||
package com.baidubce.services.doc.model; | ||
|
||
import com.baidubce.model.AbstractBceResponse; | ||
|
||
public class DeleteNotificationResponse extends AbstractBceResponse { | ||
@Override | ||
public String toString() { | ||
final StringBuilder sb = new StringBuilder(); | ||
sb.append("class DeleteNotificationResponse {\n"); | ||
sb.append("}\n"); | ||
return sb.toString(); | ||
} | ||
} |
Oops, something went wrong.