Search Results for

    Show / Hide Table of Contents

    Class S3Object

    Inheritance
    object
    S3Object
    Implements
    IUploadedFile
    IAIResource
    IData
    IHasId<string>
    IHasName
    IDeprecatable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.AmazonAws.S3
    Assembly: Glitch9.AIDevKit.Provider.AmazonAws.dll
    Syntax
    public class S3Object : IUploadedFile, IAIResource, IData, IHasId<string>, IHasName, IDeprecatable

    Properties

    | Edit this page View Source

    Api

    Declaration
    public Api Api { get; }
    Property Value
    Type Description
    Api
    | Edit this page View Source

    Body

    Declaration
    public byte[] Body { get; set; }
    Property Value
    Type Description
    byte[]
    | Edit this page View Source

    ByteSize

    Gets the file size in bytes. This value is useful for validating upload/download limits and storage usage.

    Declaration
    public int ByteSize { get; set; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    CreatedAt

    Declaration
    public UnixTime? CreatedAt { get; set; }
    Property Value
    Type Description
    UnixTime?
    | Edit this page View Source

    ExpiresAt

    Gets the file expiration timestamp, if the provider defines one. Returns null when the file has no expiration policy.

    Declaration
    public UnixTime? ExpiresAt { get; set; }
    Property Value
    Type Description
    UnixTime?
    | Edit this page View Source

    Id

    Declaration
    public string Id { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Metadata

    Declaration
    public Dictionary<string, string> Metadata { get; set; }
    Property Value
    Type Description
    Dictionary<string, string>
    | Edit this page View Source

    MimeType

    Gets the MIME type associated with the file. This can be used to select preview, parsing, or processing paths.

    Declaration
    public MimeType MimeType { get; set; }
    Property Value
    Type Description
    MimeType
    | Edit this page View Source

    Name

    Gets the name of this object.

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    Create(string, string, byte[], Dictionary<string, string>)

    Declaration
    public static S3Object Create(string key, string name, byte[] binaryData, Dictionary<string, string> responseHeaders)
    Parameters
    Type Name Description
    string key
    string name
    byte[] binaryData
    Dictionary<string, string> responseHeaders
    Returns
    Type Description
    S3Object
    | Edit this page View Source

    GetMetadata()

    Declaration
    public SerializableMetadata GetMetadata()
    Returns
    Type Description
    SerializableMetadata

    Implements

    IUploadedFile
    IAIResource
    IData
    IHasId<TId>
    IHasName
    IDeprecatable

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    CoreLibTypeExtensions.GetNameOrDash(IData)
    CoreLibTypeExtensions.GetIdOrNull(IHasId<string>)
    CoreLibTypeExtensions.IsNullOrEmptyId(IHasId<string>)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation