public class ApiApp extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ApiApp.Builder
Builder for
ApiApp . |
Modifier and Type | Field and Description |
---|---|
protected String |
appId |
protected String |
appName |
protected boolean |
isAppFolder |
protected Date |
linked |
protected String |
publisher |
protected String |
publisherUrl |
Constructor and Description |
---|
ApiApp(String appId,
String appName,
boolean isAppFolder)
Information on linked third party applications
|
ApiApp(String appId,
String appName,
boolean isAppFolder,
String publisher,
String publisherUrl,
Date linked)
Information on linked third party applications
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAppId()
The application unique id
|
String |
getAppName()
The application name
|
boolean |
getIsAppFolder()
Whether the linked application uses a dedicated folder
|
Date |
getLinked()
The time this application was linked
|
String |
getPublisher()
The application publisher name
|
String |
getPublisherUrl()
The publisher's URL
|
int |
hashCode() |
static ApiApp.Builder |
newBuilder(String appId,
String appName,
boolean isAppFolder)
Returns a new builder for creating an instance of this class.
|
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final String appId
protected final String appName
protected final String publisher
protected final String publisherUrl
protected final Date linked
protected final boolean isAppFolder
public ApiApp(String appId, String appName, boolean isAppFolder, String publisher, String publisherUrl, Date linked)
Use newBuilder
to create instances of this class without
specifying values for all optional fields.
appId
- The application unique id. Must not be null
.appName
- The application name. Must not be null
.isAppFolder
- Whether the linked application uses a dedicated
folder.publisher
- The application publisher name.publisherUrl
- The publisher's URL.linked
- The time this application was linked.IllegalArgumentException
- If any argument does not meet its
preconditions.public ApiApp(String appId, String appName, boolean isAppFolder)
The default values for unset fields will be used.
appId
- The application unique id. Must not be null
.appName
- The application name. Must not be null
.isAppFolder
- Whether the linked application uses a dedicated
folder.IllegalArgumentException
- If any argument does not meet its
preconditions.public String getAppId()
null
.public String getAppName()
null
.public boolean getIsAppFolder()
public String getPublisher()
null
if not present.public String getPublisherUrl()
null
if not present.public Date getLinked()
null
if not present.public static ApiApp.Builder newBuilder(String appId, String appName, boolean isAppFolder)
appId
- The application unique id. Must not be null
.appName
- The application name. Must not be null
.isAppFolder
- Whether the linked application uses a dedicated
folder.IllegalArgumentException
- If any argument does not meet its
preconditions.public String toStringMultiline()
The returned String may contain newlines.