/*
 * The Jira Cloud platform REST API
 *
 * Jira Cloud platform REST API documentation
 *
 * The version of the OpenAPI document: 1001.0.0-SNAPSHOT-48dd1e2d75e7eac65741e465279d2700f927137d
 * Contact: ecosystem@atlassian.com
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// IssueFilterForBulkPropertySet : Bulk operation filter details.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct IssueFilterForBulkPropertySet {
    /// The value of properties to perform the bulk operation on.
    #[serde(rename = "currentValue", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub current_value: Option<Option<serde_json::Value>>,
    /// List of issues to perform the bulk operation on.
    #[serde(rename = "entityIds", skip_serializing_if = "Option::is_none")]
    pub entity_ids: Option<Vec<i64>>,
    /// Whether the bulk operation occurs only when the property is present on or absent from an issue.
    #[serde(rename = "hasProperty", skip_serializing_if = "Option::is_none")]
    pub has_property: Option<bool>,
}

impl IssueFilterForBulkPropertySet {
    /// Bulk operation filter details.
    pub fn new() -> IssueFilterForBulkPropertySet {
        IssueFilterForBulkPropertySet {
            current_value: None,
            entity_ids: None,
            has_property: None,
        }
    }
}

