public class BoxTermsOfService.Info extends BoxResource.Info
| Constructor and Description |
|---|
Info()
Constructs an empty Info object.
|
Info(String json)
Constructs an Info object by parsing information from a JSON string.
|
| Modifier and Type | Method and Description |
|---|---|
Date |
getCreatedAt() |
BoxEnterprise |
getEnterprise() |
Date |
getModifiedAt() |
BoxResource |
getResource()
Gets the resource associated with this Info.
|
BoxTermsOfService.TermsOfServiceStatus |
getStatus()
TermsOfServiceStatus can be "enabled" or "disabled".
|
String |
getText() |
BoxTermsOfService.TermsOfServiceType |
getTosType()
TermsOfServiceType can be "managed" or "external".
|
String |
getType()
The type is terms_of_service.
|
void |
setStatus(BoxTermsOfService.TermsOfServiceStatus status)
Sets the status of the terms of service in order to enable or disable it.
|
void |
setText(String text)
Sets the text of the terms of service.
|
getIDclearPendingChanges, getJson, getPendingChanges, getPendingChangesAsJsonObject, getPendingJSONObjectpublic Info()
public BoxResource getResource()
getResource in class BoxResource.Infopublic BoxTermsOfService.TermsOfServiceStatus getStatus()
public void setStatus(BoxTermsOfService.TermsOfServiceStatus status)
status - the new status of the terms of service.public BoxTermsOfService.TermsOfServiceType getTosType()
public BoxEnterprise getEnterprise()
public void setText(String text)
text - the new text of the terms of service.public Date getCreatedAt()
public Date getModifiedAt()