//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_class!(
    /// [Apple's documentation](https://developer.apple.com/documentation/cloudkit/ckrecordzoneid?language=objc)
    #[unsafe(super(NSObject))]
    #[derive(Debug, PartialEq, Eq, Hash)]
    pub struct CKRecordZoneID;
);

extern_conformance!(
    unsafe impl NSCoding for CKRecordZoneID {}
);

extern_conformance!(
    unsafe impl NSCopying for CKRecordZoneID {}
);

unsafe impl CopyingHelper for CKRecordZoneID {
    type Result = Self;
}

extern_conformance!(
    unsafe impl NSObjectProtocol for CKRecordZoneID {}
);

extern_conformance!(
    unsafe impl NSSecureCoding for CKRecordZoneID {}
);

impl CKRecordZoneID {
    extern_methods!(
        /// Zone names must be 255 characters or less. Most UTF-8 characters are valid.
        #[unsafe(method(init))]
        #[unsafe(method_family = init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;

        #[unsafe(method(new))]
        #[unsafe(method_family = new)]
        pub unsafe fn new() -> Retained<Self>;

        #[unsafe(method(initWithZoneName:ownerName:))]
        #[unsafe(method_family = init)]
        pub unsafe fn initWithZoneName_ownerName(
            this: Allocated<Self>,
            zone_name: &NSString,
            owner_name: &NSString,
        ) -> Retained<Self>;

        #[unsafe(method(zoneName))]
        #[unsafe(method_family = none)]
        pub unsafe fn zoneName(&self) -> Retained<NSString>;

        #[unsafe(method(ownerName))]
        #[unsafe(method_family = none)]
        pub unsafe fn ownerName(&self) -> Retained<NSString>;
    );
}
