Package com.dropbox.core.v2.team
Class ApiApp
- java.lang.Object
-
- com.dropbox.core.v2.team.ApiApp
-
public class ApiApp extends java.lang.Object
Information on linked third party applications.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ApiApp.Builder
Builder forApiApp
.
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
appId
protected java.lang.String
appName
protected boolean
isAppFolder
protected java.util.Date
linked
protected java.lang.String
publisher
protected java.lang.String
publisherUrl
-
Constructor Summary
Constructors Constructor Description ApiApp(java.lang.String appId, java.lang.String appName, boolean isAppFolder)
Information on linked third party applications.ApiApp(java.lang.String appId, java.lang.String appName, boolean isAppFolder, java.lang.String publisher, java.lang.String publisherUrl, java.util.Date linked)
Information on linked third party applications.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getAppId()
The application unique id.java.lang.String
getAppName()
The application name.boolean
getIsAppFolder()
Whether the linked application uses a dedicated folder.java.util.Date
getLinked()
The time this application was linked.java.lang.String
getPublisher()
The application publisher name.java.lang.String
getPublisherUrl()
The publisher's URL.int
hashCode()
static ApiApp.Builder
newBuilder(java.lang.String appId, java.lang.String appName, boolean isAppFolder)
Returns a new builder for creating an instance of this class.java.lang.String
toString()
java.lang.String
toStringMultiline()
Returns a String representation of this object formatted for easier readability.
-
-
-
Field Detail
-
appId
@Nonnull protected final java.lang.String appId
-
appName
@Nonnull protected final java.lang.String appName
-
publisher
@Nullable protected final java.lang.String publisher
-
publisherUrl
@Nullable protected final java.lang.String publisherUrl
-
linked
@Nullable protected final java.util.Date linked
-
isAppFolder
protected final boolean isAppFolder
-
-
Constructor Detail
-
ApiApp
public ApiApp(@Nonnull java.lang.String appId, @Nonnull java.lang.String appName, boolean isAppFolder, @Nullable java.lang.String publisher, @Nullable java.lang.String publisherUrl, @Nullable java.util.Date linked)
Information on linked third party applications.Use
newBuilder(java.lang.String,java.lang.String,boolean)
to create instances of this class without specifying values for all optional fields.- Parameters:
appId
- The application unique id. Must not benull
.appName
- The application name. Must not benull
.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.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
ApiApp
public ApiApp(@Nonnull java.lang.String appId, @Nonnull java.lang.String appName, boolean isAppFolder)
Information on linked third party applications.The default values for unset fields will be used.
- Parameters:
appId
- The application unique id. Must not benull
.appName
- The application name. Must not benull
.isAppFolder
- Whether the linked application uses a dedicated folder.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
-
Method Detail
-
getAppId
@Nonnull public java.lang.String getAppId()
The application unique id.- Returns:
- value for this field, never
null
.
-
getAppName
@Nonnull public java.lang.String getAppName()
The application name.- Returns:
- value for this field, never
null
.
-
getIsAppFolder
public boolean getIsAppFolder()
Whether the linked application uses a dedicated folder.- Returns:
- value for this field.
-
getPublisher
@Nullable public java.lang.String getPublisher()
The application publisher name.- Returns:
- value for this field, or
null
if not present.
-
getPublisherUrl
@Nullable public java.lang.String getPublisherUrl()
The publisher's URL.- Returns:
- value for this field, or
null
if not present.
-
getLinked
@Nullable public java.util.Date getLinked()
The time this application was linked.- Returns:
- value for this field, or
null
if not present.
-
newBuilder
public static ApiApp.Builder newBuilder(java.lang.String appId, java.lang.String appName, boolean isAppFolder)
Returns a new builder for creating an instance of this class.- Parameters:
appId
- The application unique id. Must not benull
.appName
- The application name. Must not benull
.isAppFolder
- Whether the linked application uses a dedicated folder.- Returns:
- builder for this class.
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toStringMultiline
public java.lang.String toStringMultiline()
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Returns:
- Formatted, multiline String representation of this object
-
-