Class FileAttribute
- java.lang.Object
-
- com.intercom.api.resources.unstable.types.FileAttribute
-
public final class FileAttribute extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFileAttribute.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FileAttribute.Builderbuilder()booleanequals(java.lang.Object other)java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()java.util.Optional<java.lang.String>getContentType()java.util.Optional<java.lang.Integer>getFilesize()java.util.Optional<java.lang.Integer>getHeight()java.util.Optional<java.lang.String>getName()java.util.Optional<java.lang.String>getType()java.util.Optional<java.lang.String>getUrl()java.util.Optional<java.lang.Integer>getWidth()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getType
public java.util.Optional<java.lang.String> getType()
-
getName
public java.util.Optional<java.lang.String> getName()
- Returns:
- The name of the file
-
getUrl
public java.util.Optional<java.lang.String> getUrl()
- Returns:
- The url of the file. This is a temporary URL and will expire after 30 minutes.
-
getContentType
public java.util.Optional<java.lang.String> getContentType()
- Returns:
- The type of file
-
getFilesize
public java.util.Optional<java.lang.Integer> getFilesize()
- Returns:
- The size of the file in bytes
-
getWidth
public java.util.Optional<java.lang.Integer> getWidth()
- Returns:
- The width of the file in pixels, if applicable
-
getHeight
public java.util.Optional<java.lang.Integer> getHeight()
- Returns:
- The height of the file in pixels, if applicable
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static FileAttribute.Builder builder()
-
-