"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.DescribeTerminalSessionsResponseBody = exports.DescribeTerminalSessionsResponseBodySessions = exports.DescribeTerminalSessionsResponseBodySessionsSession = exports.DescribeTerminalSessionsResponseBodySessionsSessionConnections = exports.DescribeTerminalSessionsResponseBodySessionsSessionConnectionsConnection = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class DescribeTerminalSessionsResponseBodySessionsSessionConnectionsConnection extends $dara.Model {
    static names() {
        return {
            closedReason: 'ClosedReason',
            endTime: 'EndTime',
            failedDetail: 'FailedDetail',
            instanceId: 'InstanceId',
            startTime: 'StartTime',
            status: 'Status',
        };
    }
    static types() {
        return {
            closedReason: 'string',
            endTime: 'string',
            failedDetail: 'string',
            instanceId: 'string',
            startTime: 'string',
            status: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeTerminalSessionsResponseBodySessionsSessionConnectionsConnection = DescribeTerminalSessionsResponseBodySessionsSessionConnectionsConnection;
class DescribeTerminalSessionsResponseBodySessionsSessionConnections extends $dara.Model {
    static names() {
        return {
            connection: 'Connection',
        };
    }
    static types() {
        return {
            connection: { 'type': 'array', 'itemType': DescribeTerminalSessionsResponseBodySessionsSessionConnectionsConnection },
        };
    }
    validate() {
        if (Array.isArray(this.connection)) {
            $dara.Model.validateArray(this.connection);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeTerminalSessionsResponseBodySessionsSessionConnections = DescribeTerminalSessionsResponseBodySessionsSessionConnections;
class DescribeTerminalSessionsResponseBodySessionsSession extends $dara.Model {
    static names() {
        return {
            clientIP: 'ClientIP',
            connections: 'Connections',
            creationTime: 'CreationTime',
            identityType: 'IdentityType',
            portNumber: 'PortNumber',
            principalId: 'PrincipalId',
            sessionId: 'SessionId',
            targetServer: 'TargetServer',
            username: 'Username',
        };
    }
    static types() {
        return {
            clientIP: 'string',
            connections: DescribeTerminalSessionsResponseBodySessionsSessionConnections,
            creationTime: 'string',
            identityType: 'string',
            portNumber: 'number',
            principalId: 'string',
            sessionId: 'string',
            targetServer: 'string',
            username: 'string',
        };
    }
    validate() {
        if (this.connections && typeof this.connections.validate === 'function') {
            this.connections.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeTerminalSessionsResponseBodySessionsSession = DescribeTerminalSessionsResponseBodySessionsSession;
class DescribeTerminalSessionsResponseBodySessions extends $dara.Model {
    static names() {
        return {
            session: 'Session',
        };
    }
    static types() {
        return {
            session: { 'type': 'array', 'itemType': DescribeTerminalSessionsResponseBodySessionsSession },
        };
    }
    validate() {
        if (Array.isArray(this.session)) {
            $dara.Model.validateArray(this.session);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeTerminalSessionsResponseBodySessions = DescribeTerminalSessionsResponseBodySessions;
class DescribeTerminalSessionsResponseBody extends $dara.Model {
    static names() {
        return {
            nextToken: 'NextToken',
            requestId: 'RequestId',
            sessions: 'Sessions',
        };
    }
    static types() {
        return {
            nextToken: 'string',
            requestId: 'string',
            sessions: DescribeTerminalSessionsResponseBodySessions,
        };
    }
    validate() {
        if (this.sessions && typeof this.sessions.validate === 'function') {
            this.sessions.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeTerminalSessionsResponseBody = DescribeTerminalSessionsResponseBody;
//# sourceMappingURL=DescribeTerminalSessionsResponseBody.js.map