public class GetSharedLinkMetadataArg extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GetSharedLinkMetadataArg.Builder
Builder for
GetSharedLinkMetadataArg . |
Modifier and Type | Field and Description |
---|---|
protected String |
linkPassword |
protected String |
path |
protected String |
url |
Constructor and Description |
---|
GetSharedLinkMetadataArg(String url)
The default values for unset fields will be used.
|
GetSharedLinkMetadataArg(String url,
String path,
String linkPassword)
Use
newBuilder to create instances of this class without
specifying values for all optional fields. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getLinkPassword()
If the shared link has a password, this parameter can be used.
|
String |
getPath()
If the shared link is to a folder, this parameter can be used to retrieve
the metadata for a specific file or sub-folder in this folder.
|
String |
getUrl()
URL of the shared link.
|
int |
hashCode() |
static GetSharedLinkMetadataArg.Builder |
newBuilder(String url)
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 url
protected final String path
protected final String linkPassword
public GetSharedLinkMetadataArg(String url, String path, String linkPassword)
newBuilder
to create instances of this class without
specifying values for all optional fields.url
- URL of the shared link. Must not be null
.path
- If the shared link is to a folder, this parameter can be
used to retrieve the metadata for a specific file or sub-folder in
this folder. A relative path should be used. Must match pattern
"/(.|[\\r\\n])*
".linkPassword
- If the shared link has a password, this parameter
can be used.IllegalArgumentException
- If any argument does not meet its
preconditions.public GetSharedLinkMetadataArg(String url)
url
- URL of the shared link. Must not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.public String getUrl()
null
.public String getPath()
null
if not present.public String getLinkPassword()
null
if not present.public static GetSharedLinkMetadataArg.Builder newBuilder(String url)
url
- URL of the shared link. Must not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.public String toStringMultiline()
The returned String may contain newlines.