public class Corpus extends GenericModel
ConceptInsights
service.Modifier and Type | Class and Description |
---|---|
static class |
Corpus.Access
Corpus access.
|
Modifier and Type | Field and Description |
---|---|
static Corpus |
IBM_RESEARCHERS
The Constant IBM_RESEARCHERS.
|
static Corpus |
TED_TALKS
The Constant TED_TALKS.
|
Constructor and Description |
---|
Corpus()
Instantiates a new corpus.
|
Corpus(String accountId,
String name)
Instantiates a new corpus.
|
Modifier and Type | Method and Description |
---|---|
void |
addAccountPermissions(AccountPermission accountPermission)
Adds an
AccountPermission . |
Corpus.Access |
getAccess()
Gets the access.
|
List<AccountPermission> |
getAccountPermissions()
Gets the accountPermissions.
|
String |
getExpiresOn()
Gets the expires on.
|
String |
getId()
Gets the id.
|
String |
getName()
Gets the name.
|
Integer |
getTtlInHours()
Gets the time to live in hours.
|
void |
setAccess(Corpus.Access access)
Sets the access.
|
void |
setAccountPermissions(List<AccountPermission> accountPermissions)
Sets the accountPermissions.
|
void |
setExpiresOn(String expiresOn)
Sets the expires on.
|
void |
setId(String id)
Sets the id.
|
void |
setName(String name)
Sets the name.
|
void |
setTtlInHours(Integer ttlInHours)
Sets the time to live in hours.
|
Corpus |
withName(String name)
With name.
|
equals, hashCode, toString
public static final Corpus IBM_RESEARCHERS
public static final Corpus TED_TALKS
public Integer getTtlInHours()
public void setTtlInHours(Integer ttlInHours)
ttlInHours
- the new time to live in hourspublic String getExpiresOn()
public void setExpiresOn(String expiresOn)
expiresOn
- the new expires onpublic Corpus.Access getAccess()
public List<AccountPermission> getAccountPermissions()
public String getId()
public String getName()
public void setAccess(Corpus.Access access)
access
- The accesspublic void setAccountPermissions(List<AccountPermission> accountPermissions)
accountPermissions
- The accountPermissionspublic void addAccountPermissions(AccountPermission accountPermission)
AccountPermission
.accountPermission
- the account permissionpublic void setId(String id)
id
- The idpublic void setName(String name)
name
- The nameCopyright © 2015–2016. All rights reserved.