/*
* Fastly API
*
* Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/)
*
*/
/// NetworkProtectPrefixListCreate : Attributes accepted when creating a prefix list.
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct NetworkProtectPrefixListCreate {
/// A human-readable name, unique within the customer.
#[serde(rename = "name")]
pub name: String,
#[serde(rename = "family")]
pub family: crate::models::NetworkProtectPrefixListFamily,
/// Complete request contents. At most 1000 entries may be submitted; bare addresses are canonicalized and CIDRs are masked by the backend.
#[serde(rename = "addresses")]
pub addresses: Vec<String>,
}
impl NetworkProtectPrefixListCreate {
/// Attributes accepted when creating a prefix list.
pub fn new(name: String, family: crate::models::NetworkProtectPrefixListFamily, addresses: Vec<String>) -> NetworkProtectPrefixListCreate {
NetworkProtectPrefixListCreate {
name,
family,
addresses,
}
}
}