amplify-swift/AmplifyPlugins/API/Tests/APIHostApp/AWSAPIPluginFunctionalTests/Models/ScalarContainer.swift

87 lines
2.4 KiB
Swift

// swiftlint:disable all
import Amplify
import Foundation
public struct ScalarContainer: Model {
public let id: String
public var myString: String?
public var myInt: Int?
public var myDouble: Double?
public var myBool: Bool?
public var myDate: Temporal.Date?
public var myTime: Temporal.Time?
public var myDateTime: Temporal.DateTime?
public var myTimeStamp: Int?
public var myEmail: String?
public var myJSON: String?
public var myPhone: String?
public var myURL: String?
public var myIPAddress: String?
public var createdAt: Temporal.DateTime?
public var updatedAt: Temporal.DateTime?
public init(id: String = UUID().uuidString,
myString: String? = nil,
myInt: Int? = nil,
myDouble: Double? = nil,
myBool: Bool? = nil,
myDate: Temporal.Date? = nil,
myTime: Temporal.Time? = nil,
myDateTime: Temporal.DateTime? = nil,
myTimeStamp: Int? = nil,
myEmail: String? = nil,
myJSON: String? = nil,
myPhone: String? = nil,
myURL: String? = nil,
myIPAddress: String? = nil) {
self.init(id: id,
myString: myString,
myInt: myInt,
myDouble: myDouble,
myBool: myBool,
myDate: myDate,
myTime: myTime,
myDateTime: myDateTime,
myTimeStamp: myTimeStamp,
myEmail: myEmail,
myJSON: myJSON,
myPhone: myPhone,
myURL: myURL,
myIPAddress: myIPAddress,
createdAt: nil,
updatedAt: nil)
}
internal init(id: String = UUID().uuidString,
myString: String? = nil,
myInt: Int? = nil,
myDouble: Double? = nil,
myBool: Bool? = nil,
myDate: Temporal.Date? = nil,
myTime: Temporal.Time? = nil,
myDateTime: Temporal.DateTime? = nil,
myTimeStamp: Int? = nil,
myEmail: String? = nil,
myJSON: String? = nil,
myPhone: String? = nil,
myURL: String? = nil,
myIPAddress: String? = nil,
createdAt: Temporal.DateTime? = nil,
updatedAt: Temporal.DateTime? = nil) {
self.id = id
self.myString = myString
self.myInt = myInt
self.myDouble = myDouble
self.myBool = myBool
self.myDate = myDate
self.myTime = myTime
self.myDateTime = myDateTime
self.myTimeStamp = myTimeStamp
self.myEmail = myEmail
self.myJSON = myJSON
self.myPhone = myPhone
self.myURL = myURL
self.myIPAddress = myIPAddress
self.createdAt = createdAt
self.updatedAt = updatedAt
}
}