package com.social.media.domain.campaign.valueobject;

import lombok.EqualsAndHashCode;
import lombok.Getter;

/**
 * Automation Campaign Identity Value Object
 */
@Getter
@EqualsAndHashCode
public class AutomationCampaignId {
    
    private final Long value;
    
    public AutomationCampaignId(Long value) {
        if (value == null || value <= 0) {
            throw new IllegalArgumentException("Campaign ID must be positive");
        }
        this.value = value;
    }
    
    public static AutomationCampaignId of(Long value) {
        return new AutomationCampaignId(value);
    }
    
    @Override
    public String toString() {
        return "AutomationCampaignId{" + value + "}";
    }
}
