public class AudienceRestrictingSharedFolder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected LinkAudience |
audience |
protected java.lang.String |
name |
protected java.lang.String |
sharedFolderId |
Constructor and Description |
---|
AudienceRestrictingSharedFolder(java.lang.String sharedFolderId,
java.lang.String name,
LinkAudience audience)
Information about the shared folder that prevents the link audience for
this link from being more restrictive.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
LinkAudience |
getAudience()
The link audience of the shared folder.
|
java.lang.String |
getName()
The name of the shared folder.
|
java.lang.String |
getSharedFolderId()
The ID of the shared folder.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final java.lang.String sharedFolderId
protected final java.lang.String name
protected final LinkAudience audience
public AudienceRestrictingSharedFolder(java.lang.String sharedFolderId, java.lang.String name, LinkAudience audience)
sharedFolderId
- The ID of the shared folder. Must match pattern
"[-_0-9a-zA-Z:]+
" and not be null
.name
- The name of the shared folder. Must not be null
.audience
- The link audience of the shared folder. Must not be
null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.lang.String getSharedFolderId()
null
.public java.lang.String getName()
null
.public LinkAudience getAudience()
null
.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.